Categories
CVE-2026-42311 high CVSS 7.8

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

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.

❓ What is the problem

A vulnerability (CWE-190) exists in pillow.

📍 Affected scope

Check the vendor advisory for the affected versions of pillow.

🔥 Severity

Severity: High (CVSS 7.8/10). Successful exploitation can lead to full system takeover.

🔧 How to fix

Update to 12.2.0.

🛡️ Workaround

Workaround: Use any version but affected versions: >= 10.3.0, < 12.2.0

🔍 Detection

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

  1. 1
    Identify exposure identify
    grep -r 'pillow' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で pillow を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply 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 を実施。回避策の副作用 (機能低下) を確認した上で。

  3. 3
    Apply patch patch
    Upgrade pillow to 12.2.0

    ステージング環境で 12.2.0 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  4. 4
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PyPI pillow
[{"type":"ECOSYSTEM","events":[{"introduced":"10.3.0"},{"fixed":"12.2.0"}]}]
Bitnami pillow
[{"type":"SEMVER","events":[{"introduced":"10.3.0"},{"fixed":"12.2.0"}]}]
pip pillow
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.2.0"}]}]

Fix status by distribution

Fixed packages published by each distribution for this CVE

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details