CVE-2026-120252
published medium CVSS 4.0 · 6.8imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| cgohlke | — | imagecodecs2023.1.23 through 2026.10.10 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 5.5 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| cgohlke | imagecodecs | 2023.1.23 through 2026.10.10 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-121 Stack-based Buffer Overflow
References
4- https://github.com/cgohlke/imagecodecs
- https://github.com/cgohlke/imagecodecs/blob/v2026.10.10/3rdparty/jpegsof3/jpegsof3.cpp#L394
- GitHub Issue #157 https://github.com/cgohlke/imagecodecs/issues/157
- VulnCheck Advisory: imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode() https://www.vulncheck.com/advisories/imagecodecs-2023.1.23-through-2026.10.10-stack-buffer-overflow-via-jpegsof3-decode
Provider assertions
2VulnCheck · cna
imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4bda80462e7fad0692e92898a8d279040dc6907afc3f3017e678f3fea950fcce
- Ingested
- 02 Nov 2026, 17:45:15 UTC
- Source record
- Official CVE record