CVE-2026-120252
imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode()
CVSS Score
5.5
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-121 |
| Vendor | cgohlke |
| Product | imagecodecs |
| Published | Nov 1, 2026 |
Stay Ahead of the Next One
Get instant alerts for cgohlke imagecodecs
Be the first to know when new medium vulnerabilities affecting cgohlke imagecodecs are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
Affected Versions
cgohlke / imagecodecs
2023.1.23 โค 2026.10.10
References
github.com: https://github.com/cgohlke/imagecodecs/issues/157 github.com: https://github.com/cgohlke/imagecodecs/blob/v2026.10.10/3rdparty/jpegsof3/jpegsof3.cpp#L394 github.com: https://github.com/cgohlke/imagecodecs vulncheck.com: https://www.vulncheck.com/advisories/imagecodecs-2023.1.23-through-2026.10.10-stack-buffer-overflow-via-jpegsof3-decode
Credits
Dilanka Kaushal Hewage (r3vpwnx)