Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
cgohlke imagecodecs
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

imagecodecs 2023.1.23 至 2026.10.10 版本在 函数的无损 JPEG 定义霍夫曼表(Define Huffman Table, DHT)解析器中存在基于栈的缓冲区溢出漏洞。攻击者可构造一个特制的无损 JPEG 文件,使其 DHT 符号计数在 8 位求和时发生回绕,从而导致 32 个条目的 和 栈数组溢出,最终造成调用进程崩溃。

CVSS 5.5 · Medium EPSS 0.14% · P3

Affected Version Matrix 1

VendorProduct Version RangeStatus
cgohlke imagecodecs 2023.1.23≤ 2026.10.10 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-120252

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
imagecodecs 2023.1.23 through 2026.10.10 Stack Buffer Overflow via jpegsof3_decode()
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
栈缓冲区溢出
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
cgohlke imagecodecs 2023.1.23 ~ 2026.10.10 -

II. Public POCs for CVE-2026-120252

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-120252

请登录查看更多情报信息。

Other References for CVE-2026-120252 (4)

IV. Related Vulnerabilities