CVE-2026-96778
Last modified
CVE-2026-96778 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. Pillow is a Python imaging library. From 9.4.0 until 13.0.0, ImagingJpegEncode() in src/libImaging/JpegEncode.c can call jpeg_write_marker() for a JPEG COM comment when an ICC profile has exactly filled the 65536-byte encoder buffer. EPSS estimates a 0.50% chance of exploitation in the next 30 days.
Description
Pillow is a Python imaging library. From 9.4.0 until 13.0.0, ImagingJpegEncode() in src/libImaging/JpegEncode.c can call jpeg_write_marker() for a JPEG COM comment when an ICC profile has exactly filled the 65536-byte encoder buffer. libjpeg writes one byte before checking the exhausted free_in_buffer counter, which then wraps and permits the attacker-controlled comment and subsequent compressed image data to overwrite adjacent heap memory. Re-saving an untrusted image as JPEG while preserving its ICC profile and forwarded comment can crash the process and may enable code execution in suitable runtime and heap layouts. This issue is fixed in version 13.0.0.
Metrics
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Python | Pillow | >= 9.4.0, < 13.0.0 |
References
- https://github.com/python-pillow/Pillow/pull/10124Issue Tracking
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2026-96778?
How severe is CVE-2026-96778?
How do I fix CVE-2026-96778?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-96770All published s2s-proxy versions through 0.2.2 are affected.…9.3
- CVE-2026-96772A security flaw has been discovered in Intelliants Subrion C…5.3
- CVE-2026-96773A weakness has been identified in Intelliants Subrion CMS up…4.3
- CVE-2026-96774A vulnerability was found in SPON Communications IP Network …5.3
- CVE-2026-96775MLflow's dspy flavor, versions >= 2.0, applies the MLFLOW_A…8.8
- CVE-2026-96777A vulnerability was determined in Forma LMS up to 4.1.43. Th…6.3
- CVE-2026-9678Impact: Undici's cache interceptor incorrectly classifies so…5.9
- CVE-2026-96780figlet.js is a FIG driver written in JavaScript that aims to…8.2
- CVE-2026-9679Impact: undici's cookie parser in parseSetCookie percent-dec…5.9
- CVE-2026-96795Horilla is an HR and CRM software. Prior to 2.0.0, HorillaLi…8.8
- CVE-2026-9680Improper exposure of the MCP server in alibabacloud-rds-open…5.8
- CVE-2026-96803A vulnerability was identified in java110 MicroCommunity up …7.3
Are you affected by CVE-2026-96778?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
