CVE-2026-40492: Vulnerability in HappySeaFox Sail

Critical. SAIL is a cross-platform library for loading and saving images with support for animation, metadata, and ICC profiles. Prior to commit 36aa5c7ec8a2bb35f6fb867a1177a6f141156b02, the XWD codec resolves pixel format based on pixmap_depth but the byte-swap code uses bits_per_pixel independently. When pixmap_depth=8 (BPP8_INDEXED, 1 byte/pixel buffer) but bits_per_pixel=32, the byte-swap loop accesses memory as...

CWE-787

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
Unknown
Fix
None recorded
Patch deadline
No deadline set

Details

Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-787
Published
18 Apr 2026
Last change
26 Oct 2026

Affected products

Affected versions and the first fixed release

  • HappySeaFox Sail Version < 36aa5c7ec8a2bb35f6fb867a1177a6f141156b02. No fixed version recorded

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related