CVE-2026-120252
imagecodecs 2023.1.23 through 2026.10.10 contains a stack-based …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/cgohlke/imagecodecs
- github.com/cgohlke/imagecodecs/blob/v2026.10.10/3rdparty/jpegsof3/jpegsof3.cpp#L394
- github.com/cgohlke/imagecodecs/issues/157
- www.vulncheck.com/advisories/imagecodecs-2023.1.23-through-2026.10.10-stack-buffer-overflo
- nvd.nist.gov/vuln/detail/CVE-2026-120252
- cve.org/CVERecord?id=CVE-2026-120252
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.