{"id":"CVE-2026-120252","state":"PUBLISHED","title":"imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode()","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.","publishedAt":"2026-11-01T00:57:15.614Z","updatedAt":"2026-11-02T17:44:19.013Z","severity":{"score":6.8,"label":"Medium","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["cgohlke imagecodecs"],"affected":[{"vendor":"cgohlke","product":"imagecodecs","packageURL":"pkg:pypi/imagecodecs","defaultStatus":"unaffected","versions":[{"version":"2023.1.23","status":"affected","lessThanOrEqual":"2026.10.10","versionType":"custom"}],"repo":"https://github.com/cgohlke/imagecodecs"}],"references":["https://github.com/cgohlke/imagecodecs/issues/157","https://github.com/cgohlke/imagecodecs/blob/v2026.10.10/3rdparty/jpegsof3/jpegsof3.cpp#L394","https://github.com/cgohlke/imagecodecs","https://www.vulncheck.com/advisories/imagecodecs-2023.1.23-through-2026.10.10-stack-buffer-overflow-via-jpegsof3-decode"],"weaknesses":["CWE-121"],"ingestedAt":"2026-11-02T17:48:06.278Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/120xxx/CVE-2026-120252.json","commit":"2b0a62234f262c89a922fe05df6dd9c0c4a1fe04","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-120252","state":"PUBLISHED","datePublished":"2026-11-01T00:57:15.614Z","dateUpdated":"2026-11-02T17:44:19.013Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-10-31T22:06:00.916Z"},"containers":{"cna":{"title":"imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"cgohlke","product":"imagecodecs","packageURL":"pkg:pypi/imagecodecs","defaultStatus":"unaffected","versions":[{"version":"2023.1.23","status":"affected","lessThanOrEqual":"2026.10.10","versionType":"custom"}],"repo":"https://github.com/cgohlke/imagecodecs"}],"references":[{"url":"https://github.com/cgohlke/imagecodecs/issues/157","tags":["issue-tracking"],"name":"GitHub Issue #157"},{"url":"https://github.com/cgohlke/imagecodecs/blob/v2026.10.10/3rdparty/jpegsof3/jpegsof3.cpp#L394","tags":["technical-description"]},{"url":"https://github.com/cgohlke/imagecodecs","tags":["product"]},{"url":"https://www.vulncheck.com/advisories/imagecodecs-2023.1.23-through-2026.10.10-stack-buffer-overflow-via-jpegsof3-decode","name":"VulnCheck Advisory: imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode()","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"LOCAL","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.8,"baseSeverity":"MEDIUM"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-121","lang":"en","description":"Stack-based Buffer Overflow","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-11-01T00:57:15.614Z"},"datePublic":"2026-10-10T00:00:00.000Z","credits":[{"lang":"en","value":"Dilanka Kaushal Hewage (r3vpwnx)","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-02T17:04:10.719726Z","id":"CVE-2026-120252","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-02T17:44:19.013Z"}}]}}}