Read the docs

imagecodecs Stack Buffer Overflow via jpegsof3_decode()

Priority LOW 29CWE-121Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
No fix listed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-121 and the CVSS impact.

Summary

imagecodecs from 2023.1.23 through 2026.10.10 by cgohlke contains a stack-based buffer overflow in the lossless JPEG Define Huffman Table parser in decode_jpegsof3(). A crafted lossless JPEG whose DHT symbol counts wrap an 8-bit sum overflows the 32-entry HufVal and HufSz stack arrays. An unauthenticated local user can crash the calling process by supplying the crafted file, causing a denial of service (CWE-121).

Written with Claude Haiku 5.5 from the sources below · 2026-11-02

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00137 3rd percentileScored 2026-11-07
Fix No fix listed No fixed version in the sources yet

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
cgohlkeimagecodecs2023.1.23 – 2026.10.10—No fix listedCNA
  • imagecodecs Vendorcgohlke Affected 2023.1.23 – 2026.10.10 Fixed in — No fix listed CNA

Remediation

The sources list no fixed version for imagecodecs.

Written with Claude Haiku 5.5 from the sources below · 2026-11-02

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-11-01 Threatist record created from CVE-2026-120252
  2. 2026-11-01 Alias added: GHSA-89vm-wj4q-hr3r
  3. 2026-11-02 Priority changed: MEDIUM → LOW
  4. 2026-11-02 CISA SSVC decision points changed
  5. 2026-11-02 Affected versions changed · Red Hat
  6. 2026-11-02 CVSS score added · Red Hat

References

  • TI-2026-83576 Infinite loop in imagecodecs CCITT Group 4 decoder CVSS 4.0MEDIUM 6.8

Sources