{"cve":"CVE-2026-96778","nvd":{"published":"2026-10-21T21:20:33.093","modified":"2026-10-22T16:46:48.920","status":"Undergoing Analysis","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.","cvss_v4":{"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":7.7},"cvss_v3":null,"cwes":["CWE-787"],"references":["https://github.com/python-pillow/Pillow/commit/02561b8dc6117d5670d4b469fecdd02c70854f9b","https://github.com/python-pillow/Pillow/pull/10124","https://github.com/python-pillow/Pillow/releases/tag/13.0.0","https://github.com/python-pillow/Pillow/security/advisories/GHSA-g7cr-3p24-7wf7"],"products":[],"source":"nvd","synced_at":"2026-10-23T16:39:28.036610720+00:00"},"epss":{"cve":"CVE-2026-96778","score":0.00504,"percentile":0.42795,"date":"2026-10-26"},"kev":null,"osv":[{"id":"GHSA-g7cr-3p24-7wf7","url":"https://osv.dev/vulnerability/GHSA-g7cr-3p24-7wf7","summary":"Pillow: Heap buffer overflow writing JPEG comment after ICC profile fills buffer","modified":"2026-10-22T16:15:47.504236729Z","packages":[{"ecosystem":"PyPI","name":"pillow","purl":"pkg:pypi/pillow","ranges":[">=9.4.0 <13.0.0"],"fixed":["13.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}