Live threats

All CVEs / Python

CVE-2016-4009Python Pillow

Critical 9.8 No auth needed

Priority
75
CVSS 3.0
9.8
EPSS
7.9%
probability of exploitation in 30 days · percentile 95
Auth required
No
Published
Apr 13, 2016
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-119
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pillow.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pillow < 3.1.1 3.1.1 pip install "pillow>=3.1.1"
PyPI pillow < 3.1.1 3.1.1 pip install "pillow>=3.1.1"

Per OSV / GitHub Advisories (GHSA-hvr8-466p-75rh, PYSEC-2016-7). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pythonpillow≤ 3.1.0

Official sources

References

Links published by the sources. Open them with care.