CVE-2016-4009

Source
https://cve.org/CVERecord?id=CVE-2016-4009
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-4009.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2016-4009
Aliases
Downstream
Related
Published
2016-04-13T16:59:25.353Z
Modified
2026-04-11T03:43:46.076045Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/python-pillow/pillow

Affected ranges

Type
GIT
Repo
https://github.com/python-pillow/pillow
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "3.1.0"
        }
    ]
}

Affected versions

1.*
1.0
1.2
1.7.7
1.7.8
2.*
2.0.0
2.1.0
2.2.0
2.2.1
2.3.0
2.5.0
2.7.0
2.8.0
2.8.1
2.9.0
2.9.0.dev0
2.9.0.dev1
2.9.0.dev2
3.*
3.1.0
3.1.0-rc1

Database specific

vanir_signatures
[
    {
        "id": "CVE-2016-4009-887ea3b7",
        "target": {
            "file": "libImaging/Resample.c"
        },
        "signature_version": "v1",
        "source": "https://github.com/python-pillow/pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e",
        "deprecated": false,
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "249392201170125350440898696531716901244",
                "11202227587953824529638588905880424058",
                "160024393064123553677550538001732590219",
                "152923593847819400325982600685847468786",
                "133896275041027215488050480160794937903",
                "188299484084202681145575477904912448110"
            ]
        },
        "signature_type": "Line"
    },
    {
        "id": "CVE-2016-4009-e59d23a3",
        "target": {
            "file": "libImaging/Resample.c",
            "function": "ImagingResampleHorizontal"
        },
        "signature_version": "v1",
        "source": "https://github.com/python-pillow/pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e",
        "deprecated": false,
        "digest": {
            "length": 4789.0,
            "function_hash": "24739840428488294126398128952243479434"
        },
        "signature_type": "Function"
    }
]
vanir_signatures_modified
"2026-04-11T03:43:46Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-4009.json"