CVE Explorer
CVE-2026-40494
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 th
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"sail","vendor":"HappySeaFox","versions":[{"status":"affected","version":"< 45d48d1f2e8e0d73e80bc1fd5310cb57f4547302"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:845d72d34a46eb69155099f676bc4047c9a4dc4331f13242372c439d473df27e · sha256:23448cdf9c9678c8… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:845d72d34a46eb69155099f676bc4047c9a4dc4331f13242372c439d473df27e · sha256:23448cdf9c9678c8… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-787","description":"CWE-787: Out-of-bounds Write","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:845d72d34a46eb69155099f676bc4047c9a4dc4331f13242372c439d473df27e · sha256:23448cdf9c9678c8… · /containers/cna/problemTypes/0/descriptions/0
Source references
2 source assertions{"name":"https://github.com/HappySeaFox/sail/commit/45d48d1f2e8e0d73e80bc1fd5310cb57f4547302","tags":["x_refsource_MISC"],"url":"https://github.com/HappySeaFox/sail/commit/45d48d1f2e8e0d73e80bc1fd5310cb57f4547302"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:845d72d34a46eb69155099f676bc4047c9a4dc4331f13242372c439d473df27e · sha256:23448cdf9c9678c8… · /containers/cna/references/1
{"name":"https://github.com/HappySeaFox/sail/security/advisories/GHSA-cp2j-rwh4-r46f","tags":["x_refsource_CONFIRM"],"url":"https://github.com/HappySeaFox/sail/security/advisories/GHSA-cp2j-rwh4-r46f"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:845d72d34a46eb69155099f676bc4047c9a4dc4331f13242372c439d473df27e · sha256:23448cdf9c9678c8… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.