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.
[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"249392201170125350440898696531716901244",
"11202227587953824529638588905880424058",
"160024393064123553677550538001732590219",
"152923593847819400325982600685847468786",
"133896275041027215488050480160794937903",
"188299484084202681145575477904912448110"
]
},
"target": {
"file": "libImaging/Resample.c"
},
"signature_version": "v1",
"id": "CVE-2016-4009-887ea3b7",
"deprecated": false,
"source": "https://github.com/python-pillow/pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e",
"signature_type": "Line"
},
{
"digest": {
"function_hash": "24739840428488294126398128952243479434",
"length": 4789.0
},
"target": {
"file": "libImaging/Resample.c",
"function": "ImagingResampleHorizontal"
},
"signature_version": "v1",
"id": "CVE-2016-4009-e59d23a3",
"deprecated": false,
"source": "https://github.com/python-pillow/pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e",
"signature_type": "Function"
}
]