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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2026-40494— SAIL has heap buffer overflow in TGA RLE decoder — raw packet path missing bounds check

CVSS 9.8 · Critical EPSS 0.06% · P17
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-40494

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
SAIL has heap buffer overflow in TGA RLE decoder — raw packet path missing bounds check
Source: NVD (National Vulnerability Database)
Vulnerability Description
SAIL is a cross-platform library for loading and saving images with support for animation, metadata, and ICC profiles. Prior to commit 45d48d1f2e8e0d73e80bc1fd5310cb57f4547302, the TGA codec's RLE decoder in `tga.c` has an asymmetric bounds check vulnerability. The run-packet path (line 297) correctly clamps the repeat count to the remaining buffer space, but the raw-packet path (line 305-311) has no equivalent bounds check. This allows writing up to 496 bytes of attacker-controlled data past the end of a heap buffer. Commit 45d48d1f2e8e0d73e80bc1fd5310cb57f4547302 patches the issue.
Source: NVD (National Vulnerability Database)
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: NVD (National Vulnerability Database)
Vulnerability Type
跨界内存写
Source: NVD (National Vulnerability Database)
Vulnerability Title
SAIL 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
SAIL是SAIL开源的一款图像解码库。 SAIL存在安全漏洞,该漏洞源于TGA编解码器的RLE解码器存在不对称边界检查,可能导致堆缓冲区溢出。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Shenlong Deep Dive — AI Deep Analysis

10-question deep dive: root cause, exploitation, mitigation, urgency. Read summary free, full version requires login.

Affected Products

VendorProductAffected VersionsCPESubscribe
HappySeaFoxsail < 45d48d1f2e8e0d73e80bc1fd5310cb57f4547302 -

II. Public POCs for CVE-2026-40494

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-40494

登录查看更多情报信息。

Same Patch Batch · HappySeaFox · 2026-04-18 · 3 CVEs total

CVE-2026-404939.8 CRITICALSAIL has heap buffer overflow in PSD decoder — bpp mismatch in LAB 16-bit mode
CVE-2026-404929.8 CRITICALSAIL has heap buffer overflow in XWD decoder — bits_per_pixel vs pixmap_depth type confusi

IV. Related Vulnerabilities

V. Comments for CVE-2026-40494

No comments yet


Leave a comment