Read the docs

Pillow heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO

Priority HIGH 75CWE-122Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Attack requirements
Present
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Partial Red Hat: 8 fixed, 9 without a fix

Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-122 and the CVSS impact.

Summary

Pillow from 2.0.0 before 13.0.0 has a heap buffer overflow and stale-heap disclosure in _tiffWriteProc when compressed TIFF is saved via libtiff to a target without a usable fileno(), such as BytesIO. The callback sizes its allocation from the prior buffer size, not the current write position, so an attacker-controlled out-of-line TIFF tag or retained ICC profile can be copied past the allocation after libtiff seeks forward. The overflow can crash the process or allow code execution, and unwritten alignment gaps in compressed output over 64 KiB can also disclose stale heap bytes without a crafted tag. File paths and targets with real file descriptors are unaffected.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

Description from the CNA

Pillow is a Python imaging library. From 2.0.0 until 13.0.0, Pillow has a heap buffer overflow and stale-heap disclosure in _tiffWriteProc when saving compressed TIFF data through libtiff to a target without a usable fileno(), such as BytesIO. The callback sizes its allocation from the prior buffer size instead of the current write position, allowing an attacker-controlled out-of-line TIFF tag or retained ICC profile to be copied beyond the allocation after libtiff seeks forward. This overflow can crash the process and may allow code execution. Independently, unwritten alignment gaps in compressed TIFF output larger than 64 KiB can disclose stale heap bytes without a crafted tag. File paths and targets with real file descriptors are unaffected. This issue is fixed in version 13.0.0.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01019 63rd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Partial Pillow (python-pillow): 13.0.0Pillow (PyPI): 13.0.0Red Hat: 11 advisoriesRed Hat: 8 fixed, 9 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
python-pillowPillow2.0.0 to before 13.0.013.0.0Patch availableCNA
—Pillow (PyPI)2.0.0 to before 13.0.013.0.0Patch availableGHSA-332p-7hrc-92wf
  • Pillow Vendorpython-pillow Affected 2.0.0 to before 13.0.0 Fixed in 13.0.0 Patch available CNA
  • Pillow (PyPI) Vendor— Affected 2.0.0 to before 13.0.0 Fixed in 13.0.0 Patch available GHSA-332p-7hrc-92wf

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*2.0.0 to before 13.0.0Vulnerablepython-pillow
  • cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* Versions 2.0.0 to before 13.0.0 Vulnerable ·python-pillow

Remediation

Upgrade Pillow to version 13.0.0 or later. Red Hat has published python-pillow fixes for Red Hat Enterprise Linux AppStream (v. 8) and CRB (v. 8) in RHSA-2026:93077.

Written with Claude Haiku 5.5 from the sources below · 2026-11-06

  • Fix · CNA Pillow (python-pillow) Fixed in 13.0.0
  • Fix · GHSA-332p-7hrc-92wf Pillow (PyPI) Fixed in 13.0.0 Advisory →

Red Hat 11 advisories

  • RHSA-2026:95655 Released 2026-11-05 · Red Hat rating Critical
    Satellite 6.16 EUS security update
    • Red Hat Satellite 6.16 for RHEL 8 openvox-agent-8.32.0-1.el8sat, openvox-server-8.18.0-1.el8sat, python-brotli-1.2.1-1.el8pc +11
    • Red Hat Satellite 6.16 for RHEL 9 openvox-agent-8.32.0-1.el9sat, openvox-server-8.18.0-1.el9sat, python-brotli-1.2.1-1.el9pc +11
  • RHSA-2026:95657 Released 2026-11-05 · Red Hat rating Critical
    Satellite 6.18 security update
    • Red Hat Satellite 6.18 for RHEL 9 openvox-agent-8.32.0-1.el9sat, openvox-server-8.18.0-1.el9sat, python3.12-brotli-1.2.1-1.el9pc +4
  • RHSA-2026:95656 Released 2026-11-05 · Red Hat rating Critical
    Satellite 6.17 security update
    • Red Hat Satellite 6.17 for RHEL 9 openvox-agent-8.32.0-1.el9sat, openvox-server-8.18.0-1.el9sat, python-brotli-1.2.1-1.el9pc +9
Show 8 more Red Hat advisories
  • RHSA-2026:94738 Released 2026-11-03 · Red Hat rating Critical
    Red Hat AI Inference 3.5.3 (CUDA)
    • Red Hat AI Inference Server 3.5 registry.redhat.io/rhaii/vllm-cuda-rhel9
  • RHSA-2026:94721 Released 2026-11-03 · Red Hat rating Critical
    Red Hat AI Inference Tech Preview 3.5.3 (Gaudi)
    • Red Hat AI Inference Server 3.5 registry.redhat.io/rhaii/vllm-gaudi-rhel9
  • RHSA-2026:94717 Released 2026-11-03 · Red Hat rating Critical
    Red Hat AI Inference 3.5.3 (Spyre)
    • Red Hat AI Inference Server 3.5 registry.redhat.io/rhaii/vllm-spyre-rhel9
  • RHSA-2026:94715 Released 2026-11-03 · Red Hat rating Critical
    Red Hat AI Inference Model Optimization Tools 3.5.3 (CUDA)
    • Red Hat AI Inference Server 3.5 registry.redhat.io/rhaii/model-opt-cuda-rhel9
  • RHSA-2026:94709 Released 2026-11-03 · Red Hat rating Critical
    Red Hat AI Inference 3.5.3 (ROCm)
    • Red Hat AI Inference Server 3.5 registry.redhat.io/rhaii/vllm-rocm-rhel9
  • RHSA-2026:94702 Released 2026-11-03 · Red Hat rating Critical
    Red Hat AI Inference 3.5.3 (CPU)
    • Red Hat AI Inference Server 3.5 registry.redhat.io/rhaii/vllm-cpu-rhel9
  • RHSA-2026:93077 Released 2026-10-30 · Red Hat rating Critical
    python-pillow security update
    • Red Hat Enterprise Linux AppStream (v. 8) python-pillow-5.1.1-36.el8_10, python3-pillow-5.1.1-36.el8_10
    • Red Hat Enterprise Linux CRB (v. 8) python3-pillow-5.1.1-36.el8_10, python3-pillow-devel-5.1.1-36.el8_10, python3-pillow-doc-5.1.1-36.el8_10 +1
  • RHSA-2026:92861 Released 2026-10-29 · Red Hat rating Critical
    Satellite 6.19 security update
    • Red Hat Satellite 6.19 for RHEL 9 openvox-agent-8.31.1-1.el9sat, openvox-server-8.17.0-1.el9sat, python3.12-brotli-1.2.1-1.el9pc +6

Vendor assessments

Red Hat

Red Hat rating: Important. Red Hat's page for this CVE →

ProductStatusPlan or fix
Exploit IntelligenceAffectedNo fix yet
Lightspeed CoreAffectedNo fix yet
OpenShift LightspeedAffectedNo fix yet
Red Hat AI Inference ServerAffectedNo fix yet
Red Hat Ansible Automation Platform 2AffectedNo fix yet
Red Hat Enterprise Linux 7AffectedNo fix yet
Red Hat Enterprise Linux AI (RHEL AI) 3AffectedNo fix yet
Red Hat OpenShift AI (RHOAI)AffectedNo fix yet
Red Hat Quay 3AffectedNo fix yet
Red Hat AI Inference Server 3.5Fixed RHSA-2026:94702, RHSA-2026:94709, RHSA-2026:94715, RHSA-2026:94717, RHSA-2026:94721, RHSA-2026:94738
Red Hat Enterprise Linux AppStream (v. 8)Fixed RHSA-2026:93077
Red Hat Enterprise Linux CRB (v. 8)Fixed RHSA-2026:93077
Red Hat Satellite 6.16 for RHEL 8Fixed RHSA-2026:95655
Red Hat Satellite 6.16 for RHEL 9Fixed RHSA-2026:95655
Red Hat Satellite 6.17 for RHEL 9Fixed RHSA-2026:95656
Red Hat Satellite 6.18 for RHEL 9Fixed RHSA-2026:95657
Red Hat Satellite 6.19 for RHEL 9Fixed RHSA-2026:92861
Not affected: 8 products
  • Red Hat Ansible Automation Platform 2
  • Red Hat Lightspeed Services for OCP
  • Red Hat OpenShift AI (RHOAI)
  • Red Hat Satellite 6.16 for RHEL 8
  • Red Hat Satellite 6.16 for RHEL 9
  • Red Hat Satellite 6.17 for RHEL 9
  • Red Hat Satellite 6.18 for RHEL 9
  • Red Hat Satellite 6.19 for RHEL 9

Timeline

  1. 2026-10-20 Threatist record created from CVE-2026-112393
  2. 2026-10-21 Alias added: GHSA-332p-7hrc-92wf
  3. 2026-10-21 Fix available: PyPI/[email protected] · GHSA-332p-7hrc-92wf
  4. 2026-10-21 CVSS score added · GHSA-332p-7hrc-92wf
  5. 2026-10-21 Weakness changed · GHSA-332p-7hrc-92wf
  6. 2026-10-21 5 new references · GHSA-332p-7hrc-92wf
  7. 2026-10-25 EPSS moved to the 50th–90th percentile
  8. 2026-10-26 CVSS score added · NVD
  9. 2026-10-29 Affected versions changed · Red Hat
  10. 2026-10-29 CVSS score added · Red Hat
  11. 2026-10-30 Affected versions changed · Red Hat
  12. 2026-10-30 Fix available: Red Hat Satellite 6.19 for RHEL 9 · Red Hat
  13. 2026-10-31 Fix available: RHSA-2026:92861 · Red Hat
  14. 2026-10-31 Fix available: RHSA-2026:93077 · Red Hat
  15. 2026-10-31 Fix available: Red Hat Enterprise Linux AppStream (v. 8), Red Hat Enterprise Linux CRB (v. 8) · Red Hat
  16. 2026-11-04 Fix available: RHSA-2026:94717 · Red Hat
  17. 2026-11-04 Fix available: RHSA-2026:94715 · Red Hat
  18. 2026-11-04 Fix available: RHSA-2026:94709 · Red Hat
  19. 2026-11-04 Fix available: RHSA-2026:94738 · Red Hat
  20. 2026-11-04 Fix available: RHSA-2026:94702 · Red Hat
  21. 2026-11-04 Fix available: RHSA-2026:94721 · Red Hat
  22. 2026-11-04 Fix available: Red Hat AI Inference Server 3.5 · Red Hat
  23. 2026-11-06 Fix available: Red Hat Satellite 6.16 for RHEL 8, Red Hat Satellite 6.16 for RHEL 9, Red Hat Satellite 6.17 for RHEL 9 +1 · Red Hat
  24. 2026-11-06 Fix available: RHSA-2026:95656 · Red Hat
  25. 2026-11-06 Fix available: RHSA-2026:95655 · Red Hat
  26. 2026-11-06 Fix available: RHSA-2026:95657 · Red Hat
  27. 2026-11-06 Affected versions changed · Red Hat

References

  • TI-2026-76627 Out-of-bounds read in Pillow TIFF encoder ColorMap handling CVSS 4.0HIGH 8.8
  • TI-2026-76625 Quadratic-time denial of service in Pillow PDF save_all CVSS 4.0HIGH 8.7
  • TI-2026-76605 NULL pointer dereference in Pillow's Image.merge function CVSS 4.0HIGH 8.7
  • TI-2026-76604 Out-of-bounds read in Pillow TIFF decoding leaks heap memory CVSS 4.0HIGH 8.8
  • TI-2026-76602 Double free in Pillow ImagingScaleAffine on allocation failure CVSS 4.0HIGH 8.7
  • TI-2026-76600 GIF seek in Pillow keeps rejected size, allowing denial of service CVSS 4.0HIGH 8.7
See all 110 →

Sources