# CVE-2026-27168: SAIL: Heap-based Buffer Overflow in Sail-codecs-xwd

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.44%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-20T23:34:54.580Z
- Modified: 2026-06-17T10:26:47.027Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

SAIL is a cross-platform library for loading and saving images with support for animation, metadata, and ICC profiles. All versions are vulnerable to Heap-based Buffer Overflow through the XWD parser's use of the bytes_per_line value. The value os read directly from the file as the read size in io->strict_read(), and is never compared to the actual size of the destination buffer. An attacker can provide an XWD file with an arbitrarily large bytes_per_line, causing a massive write operation beyond the buffer heap allocated for the image pixels. The issue did not have a fix at the time of publication.

(As written by CVE List.)

## Affected

- HappySeaFox sail: <= 0.9.10
- sail sail: up to 0.9.10

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/HappySeaFox/sail/security/advisories/GHSA-3g38-x2pj-mv55> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2026-27168](https://www.cve.org/CVERecord?id=CVE-2026-27168), CVE Terms of Use, modified 2026-02-25
- NVD: [CVE-2026-27168](https://nvd.nist.gov/vuln/detail/CVE-2026-27168), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-27168 · Whole record: https://cve.day/CVE-2026-27168.json · Rebuilt by cve.day 2026-11-25T22:59:14.591Z
