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.
Published: 2026-11-01
Score: 6.8 Medium
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Patch
AI Analysis

Impact

The imagecodecs library from versions 2023.1.23 through 2026.10.10 contains a stack-based buffer overflow in the lossless JPEG Define Huffman Table parser within the decode_jpegsof3() function. When an attacker supplies a crafted lossless JPEG image whose DHT symbol counts wrap an 8‑bit sum, the 32-entry HufVal and HufSz arrays overflow, corrupting local stack memory and provoking a crash of the process that called the parser. The CVE description does not indicate code execution; the impact is limited to denial of service.

Affected Systems

Any environment that imports the cgohlke:imagecodecs Python package in the affected version range, from 2023.1.23 to 2026.10.10, and uses the jpegsof3_decode() function to process lossless JPEG files, is at risk. The vulnerability is independent of the operating system or Python interpreter version.

Risk and Exploitability

The CVSS score of 6.8 classifies the defect as medium severity. Because an EPSS score is not provided and the issue is not listed in the CISA KEV catalog, the probability of widespread exploitation remains uncertain. The likely attack vector is the delivery of a malicious lossless JPEG image to any running application that decodes such files, either locally or via a remote file upload, which will result in the application crashing. No evidence from the CVE details suggests advanced exploitation possibilities.

Generated by OpenCVE AI on November 1, 2026 at 02:51 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the imagecodecs package to a release newer than 2026.10.10 where the overflow has been resolved.
  • If an immediate upgrade cannot be performed, limit the usage of jpegsof3_decode() to inputs from trusted, validated sources and add application‑level checks to verify that DHT symbol counts do not exceed expected bounds before decoding.
  • If lossless JPEG decoding is not required, disable that feature entirely or replace it with a safer implementation that includes explicit bounds validation for the HufVal and HufSz arrays.

Generated by OpenCVE AI on November 1, 2026 at 02:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 01 Nov 2026 01:00:00 +0000

Type Values Removed Values Added
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.
Title imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode()
Weaknesses CWE-121
References
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

cvssV4_0

{'score': 6.8, '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-01T00:57:15.614Z

Reserved: 2026-10-31T22:06:00.916Z

Link: CVE-2026-120252

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-01T01:17:19.287

Modified: 2026-11-01T01:17:19.287

Link: CVE-2026-120252

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-01T03:00:13Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow