CVE-2026-120252 imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode()
- Exploited in the wild
- Not known
- Fix
- None listed
What is CVE-2026-120252?
CVE-2026-120252 is a medium-severity vulnerability in cgohlke imagecodecs, published on 1 Nov 2026.
Official description
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.
Weakness: CWE-121
Which versions are affected by CVE-2026-120252?
How do I fix CVE-2026-120252?
No fix has been published for CVE-2026-120252 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-120252 being exploited?
There is no known exploitation of CVE-2026-120252 in the wild and no public exploit code.
Sources
Also known as GHSA-89vm-wj4q-hr3r.