PT-2026-33587 · Sail · Sail

Published

2026-04-18

·

Updated

2026-04-20

·

CVE-2026-40494

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions SAIL versions prior to commit 45d48d1f2e8e0d73e80bc1fd5310cb57f4547302
Description SAIL is a cross-platform library used for loading and saving images, supporting animation, metadata, and ICC profiles. The TGA codec's RLE decoder in tga.c contains an asymmetric bounds check. While the run-packet path correctly clamps the repeat count to the remaining buffer space, the raw-packet path lacks an equivalent check. This allows writing up to 496 bytes of attacker-controlled data beyond the end of a heap buffer.
Recommendations Update to the version containing commit 45d48d1f2e8e0d73e80bc1fd5310cb57f4547302.

Fix

Memory Corruption

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-40494

Affected Products

Sail