CVE-2026-42311

NameCVE-2026-42311
DescriptionPillow is a Python imaging library. From version 10.3.0 to before version 12.2.0, processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution. This issue has been patched in version 12.2.0.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pillow (PTS)bullseye8.1.2+dfsg-0.3+deb11u2fixed
bullseye (security)8.1.2+dfsg-0.3+deb11u3fixed
bookworm, bookworm (security)9.4.0-1.1+deb12u1fixed
trixie (security), trixie11.1.0-5+deb13u2vulnerable
forky, sid12.2.0-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pillowsourcebullseye(not affected)
pillowsourcebookworm(not affected)
pillowsource(unstable)12.2.0-1

Notes

[bookworm] - pillow <not-affected> (Vulnerable code introduced later)
[bullseye] - pillow <not-affected> (Vulnerable code introduced later)
https://github.com/python-pillow/Pillow/security/advisories/GHSA-pwv6-vv43-88gr
https://github.com/python-pillow/Pillow/pull/9520
Fixed by (merge): https://github.com/python-pillow/Pillow/commit/58f9a1d166dcb0c274807d4423522d205b0c35ea (12.2.0)
Introduced by: https://github.com/python-pillow/Pillow/commit/c2907dc04967109391a77eea00f7d583a0a0395f (10.3.0)

Search for package or bug name: Reporting problems