Vulnerability in pillow (CVE-2026-42311)
Summary
Vulnerability in pillow (CVE-2026-42311). Successful exploitation can lead to full system takeover. Mitigation: upgrade to 12.2.0 or later.
Original description
The description as published by the source.
Impact
Processing a malicious PSD file could lead to memory corruption, potentially resulting in a crash or arbitrary code execution.
Patches
Patched version: 12.2.0
Pillow 12.1.1 addressed CVE-2026-25990 by adding checks for tile extents in PSD image decoding/encoding to prevent an out-of-bounds write. However, the bounds checks computed tile extent sums using types susceptible to integer overflow, meaning a PSD image with carefully chosen tile dimensions could produce values that wrap around and bypass the checks, still triggering an out-of-bounds write in src/decode.c and src/encode.c. The fix avoids adding extents together before comparison.
Workarounds
Use any version but affected versions: >= 10.3.0, < 12.2.0
Resources
- Fix: https://github.com/python-pillow/Pillow/pull/9520
- Original issue: CVE-2026-25990 (Pillow 12.1.1)
Source: NIST National Vulnerability Database NVD GitHub Advisory
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-42311 has been found in pillow.
Successful exploitation can lead to full system takeover. CVSS score: 7.8/10.
What to do: upgrade pillow to 12.2.0 or later.
If unsure, ask your IT team or search "pillow CVE-2026-42311" on the vendor's site.
CVE-2026-42311 (pillow) — CWE-190 / CVSS v3 7.8
Attack vector: local / unauthenticated
Patched: 12.2.0 — apply immediately
Workaround: Use any version but affected versions: >= 10.3.0, < 12.2.0
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-190) exists in pillow.
Check the vendor advisory for the affected versions of pillow.
Severity: High (CVSS 7.8/10). Successful exploitation can lead to full system takeover.
Update to 12.2.0.
Workaround: Use any version but affected versions: >= 10.3.0, < 12.2.0
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'pillow' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1Identify exposure identify
grep -r 'pillow' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
pillowを grep し、稼働しているサービス・バージョンを把握する。 -
2Apply temporary workaround mitigate
Use any version but affected versions: >= 10.3.0, < 12.2.0パッチが適用されるまでの応急処置として、Use any version but affected versions: >= 10.3.0, < 12.2.0 を実施。回避策の副作用 (機能低下) を確認した上で。
-
3Apply patch patch
Upgrade pillow to 12.2.0ステージング環境で 12.2.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
4Post-deployment verification verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Debian DEBIAN-CVE-2026-42311 pillow
- Ubuntu UBUNTU-CVE-2026-42311 pillow
References
- advisory nvd.nist.gov
- package github.com
- patch security-advisories@github.com
- patch security-advisories@github.com
- patch security-advisories@github.com
- web security-advisories@github.com
- web github.com
- web github.com