CVE-2016-4009

Source
https://nvd.nist.gov/vuln/detail/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:25Z
Modified
2025-10-21T03:43:04.577179Z
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
Fixed

Affected versions

1.*

1.0
1.2
1.7.6
1.7.7
1.7.8

2.*

2.0.0
2.1.0
2.2.0
2.2.1
2.2.2
2.3.0
2.5.0
2.6.0
2.6.0-rc1
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.0.0
3.1.0
3.1.0-rc1

Database specific

vanir_signatures

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