# CVE-2026-120252: imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode()

- Severity: Medium 6.8 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-02)
- Published: 2026-11-01T00:57:15.614Z
- Modified: 2026-11-02T19:14:53.030Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- cgohlke imagecodecs: from 2023.1.23 up to 2026.10.10

## Every score

- VulnCheck: CVSS:4.0 6.8 Medium `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`
- VulnCheck: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H`

## References

- <https://github.com/cgohlke/imagecodecs/issues/157> (issue-tracking)
- <https://github.com/cgohlke/imagecodecs/blob/v2026.10.10/3rdparty/jpegsof3/jpegsof3.cpp#L394> (technical-description)
- <https://github.com/cgohlke/imagecodecs> (product)
- <https://www.vulncheck.com/advisories/imagecodecs-2023.1.23-through-2026.10.10-stack-buffer-overflow-via-jpegsof3-decode> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-120252](https://www.cve.org/CVERecord?id=CVE-2026-120252), CVE Terms of Use, modified 2026-11-02
- NVD: [CVE-2026-120252](https://nvd.nist.gov/vuln/detail/CVE-2026-120252), Public domain, modified 2026-11-02

---

Page: https://cve.day/CVE-2026-120252 · Whole record: https://cve.day/CVE-2026-120252.json · Rebuilt by cve.day 2026-11-25T22:59:48.087Z
