It isn't a firefox bug about .jpg files, they can be crafted to try and run other malware (not browser dependant), which is why it is essential that .jpg files be scanned by the web shield.
If anything firefox with NoScript and RequestPolicy (cross Site Scripting protection) add-ons is less vulnerable to these types of exploit/attack.