{"id":"CVE-2026-120252","title":"imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode()","summary":"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 wra…","severity":"medium","cvss":5.5,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","cvssSource":"cna","cwe":["CWE-121"],"vendor":"cgohlke","product":"imagecodecs","affected":["imagecodecs >= 2023.1.23 <= 2026.10.10"],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-02T17:04:10.719726Z"},"published":"2026-11-01","updated":"2026-11-02","sourceUpdated":"2026-11-02T17:44:19.013Z","source":"CVEORG","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-120252","references":[{"url":"https://github.com/cgohlke/imagecodecs/issues/157","label":"GitHub Issue #157"},{"url":"https://github.com/cgohlke/imagecodecs/blob/v2026.10.10/3rdparty/jpegsof3/jpegsof3.cpp#L394"},{"url":"https://github.com/cgohlke/imagecodecs"},{"url":"https://www.vulncheck.com/advisories/imagecodecs-2023.1.23-through-2026.10.10-stack-buffer-overflow-via-jpegsof3-decode","label":"VulnCheck Advisory: imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode()"}],"tags":["cve.org"],"epss":0.00137,"epssPercentile":0.03106,"ingestedAt":"2026-11-05T19:30:42.746Z","slug":"CVE-2026-120252","body":"## Overview\n\nimagecodecs 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.\n\n## Affected\n\n- `imagecodecs >= 2023.1.23 <= 2026.10.10`\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"sunlit","depthScore":30,"depthScoreParts":{"impact":30.3,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[]}