Integer overflow in the ImagingResampleHorizontal function in libImaging/Resample.c in Pillow before 3.1.1 allows remote attackers to have unspecified impact via negative values of the new size, which triggers a heap-based buffer overflow.
{ "vanir_signatures": [ { "signature_version": "v1", "deprecated": false, "signature_type": "Line", "id": "CVE-2016-4009-887ea3b7", "target": { "file": "libImaging/Resample.c" }, "digest": { "line_hashes": [ "249392201170125350440898696531716901244", "11202227587953824529638588905880424058", "160024393064123553677550538001732590219", "152923593847819400325982600685847468786", "133896275041027215488050480160794937903", "188299484084202681145575477904912448110" ], "threshold": 0.9 }, "source": "https://github.com/python-pillow/pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e" }, { "signature_version": "v1", "deprecated": false, "signature_type": "Function", "id": "CVE-2016-4009-e59d23a3", "target": { "function": "ImagingResampleHorizontal", "file": "libImaging/Resample.c" }, "digest": { "function_hash": "24739840428488294126398128952243479434", "length": 4789.0 }, "source": "https://github.com/python-pillow/pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e" } ] }