{"id":"CVE-2026-120252","summary":"imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode()","details":"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.","modified":"2026-11-04T02:30:48.351926907Z","published":"2026-11-01T00:57:15.614Z","database_specific":{"cwe_ids":["CWE-121"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120252.json","cna_assigner":"VulnCheck"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120252.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120252"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/imagecodecs-2023.1.23-through-2026.10.10-stack-buffer-overflow-via-jpegsof3-decode"},{"type":"REPORT","url":"https://github.com/cgohlke/imagecodecs/issues/157"},{"type":"PACKAGE","url":"https://github.com/cgohlke/imagecodecs"},{"type":"ARTICLE","url":"https://github.com/cgohlke/imagecodecs/blob/v2026.10.10/3rdparty/jpegsof3/jpegsof3.cpp#L394"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/cgohlke/imagecodecs","events":[{"introduced":"95688564dc8312ad81ea082fe7404a537fb2ded9"},{"last_affected":"5483bfbd4406379d639b07fdd24ede55da3acaa4"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"2023.1.23"},{"last_affected":"2026.10.10"}],"source":"AFFECTED_FIELD"},{"range":[{"introduced":"2023.1.23"},{"last_affected":"2026.10.10"}],"source":"DESCRIPTION"}]}}],"versions":["v2026.10.10","v2026.8.16","v2026.6.26","v2026.6.6","v2026.5.10","v2026.3.6","v2026.1.14","v2026.1.1","v2025.11.11","v2025.8.2","v2025.3.30","v2024.12.30","v2024.9.22","v2024.6.1","v2024.1.1","v2023.9.18","v2023.9.4","v2023.8.12","v2023.7.10","v2023.7.4","v2023.3.16","v2023.1.23"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120252.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}