CVE-2026-40493
Last modified
CVE-2026-40493 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 c930284445ea3ff94451ccd7a57c999eca3bc979, the PSD codec computes bytes-per-pixel (`bpp`) from raw header fields `channels * depth`, but the pixel buffer is allocated based on the resolved pixel format. EPSS estimates a 0.37% 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 c930284445ea3ff94451ccd7a57c999eca3bc979, the PSD codec computes bytes-per-pixel (`bpp`) from raw header fields `channels * depth`, but the pixel buffer is allocated based on the resolved pixel format. For LAB mode with `channels=3, depth=16`, `bpp = (3*16+7)/8 = 6`, but the format `BPP40_CIE_LAB` allocates only 5 bytes per pixel. Every pixel write overshoots, causing a deterministic heap buffer overflow on every row. Commit c930284445ea3ff94451ccd7a57c999eca3bc979 contains a patch.
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-40493?
How severe is CVE-2026-40493?
How do I fix CVE-2026-40493?
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-40488Magento Long Term Support (LTS) is an unofficial, community-…8.8
- 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-40494SAIL 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
Are you affected by CVE-2026-40493?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
