CVE-2026-40494
Last modified
CVE-2026-40494 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.31% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-40494?
How severe is CVE-2026-40494?
How do I fix CVE-2026-40494?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-40489editorconfig-core-c is an EditorConfig core library for use…8.6
- CVE-2026-4049Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2026-40490The AsyncHttpClient (AHC) library allows Java applications t…6.8
- CVE-2026-40491gdown is a Google Drive public file/folder downloader. Versi…7.8
- CVE-2026-40492SAIL is a cross-platform library for loading and saving imag…9.8
- CVE-2026-40493SAIL is a cross-platform library for loading and saving imag…9.8
- CVE-2026-40495FOSSBilling is a free, open-source billing and client manage…6.9
- CVE-2026-40496FreeScout is a free self-hosted help desk and shared mailbox…9.1
- CVE-2026-40497FreeScout is a free self-hosted help desk and shared mailbox…8.1
- CVE-2026-40498FreeScout is a free self-hosted help desk and shared mailbox…9.8
- CVE-2026-40499radare2 prior to version 6.1.4 contains a command injection …7.8
- CVE-2026-40500Rejected reason: This CVE ID has been rejected or withdrawn …
Are you affected by CVE-2026-40494?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
