imagecodecs Stack Buffer Overflow via jpegsof3_decode()
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-121 and the CVSS impact.
Summary
imagecodecs from 2023.1.23 through 2026.10.10 by cgohlke contains a stack-based buffer overflow in the lossless JPEG Define Huffman Table parser in decode_jpegsof3(). A crafted lossless JPEG whose DHT symbol counts wrap an 8-bit sum overflows the 32-entry HufVal and HufSz stack arrays. An unauthenticated local user can crash the calling process by supplying the crafted file, causing a denial of service (CWE-121).
Written with Claude Haiku 5.5 from the sources below · 2026-11-02
Description from the CNA
imagecodecs 2023.1.23 through 2026.10.10 contains a stack-based buffer overflow vulnerability in the lossless JPEG Define Huffman Table parser in decode_jpegsof3(). Attackers can supply a crafted lossless JPEG whose DHT symbol counts wrap an 8-bit sum, overflowing the 32-entry HufVal and HufSz stack arrays and crashing the calling process.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
The sources list no fixed version for imagecodecs.
Written with Claude Haiku 5.5 from the sources below · 2026-11-02
Vendor assessments
Timeline
- 2026-11-01 Threatist record created from CVE-2026-120252
- 2026-11-01 Alias added: GHSA-89vm-wj4q-hr3r
- 2026-11-02 Priority changed: MEDIUM → LOW
- 2026-11-02 CISA SSVC decision points changed
- 2026-11-02 Affected versions changed · Red Hat
- 2026-11-02 CVSS score added · Red Hat
References
More cgohlke vulnerabilities
- TI-2026-83576 Infinite loop in imagecodecs CCITT Group 4 decoder CVSS 4.0MEDIUM 6.8
Sources
- CVE-2026-120252 · CVE Program
- CVE-2026-120252 · NVD
- FIRST EPSS
- GHSA-89vm-wj4q-hr3r · GitHub Advisory Database · CC BY 4.0
- CVE-2026-120252 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences