Heap-based buffer overflow in the OJPEGVSetField function in tif_ojpeg.c for libtiff 3.6.1 and earlier, when compiled with the OJPEG_SUPPORT (old JPEG support) option, allows remote attackers to execute arbitrary code via a malformed TIFF image.
https://exchange.xforce.ibmcloud.com/vulnerabilities/17843
http://www.novell.com/linux/security/advisories/2004_38_libtiff.html
http://www.kb.cert.org/vuls/id/129910
http://www.idefense.com/application/poi/display?id=154&type=vulnerabilities