medium6.8
CVE-2026-120252
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_jpegso…
Impact
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.
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Cgohlke | Imagecodecs | Version 2023.1.23 ≤2026.10.10 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-89vm-wj4q-hr3r
- https://nvd.nist.gov/vuln/detail/CVE-2026-120252
- https://github.com/cgohlke/imagecodecs/issues/157
- https://github.com/cgohlke/imagecodecs
- https://github.com/cgohlke/imagecodecs/blob/v2026.10.10/3rdparty/jpegsof3/jpegsof3.cpp#L394
- https://www.vulncheck.com/advisories/imagecodecs-2023.1.23-through-2026.10.10-stack-buffer-overflow-via-jpegsof3-decode