{"id":"UBUNTU-CVE-2026-27168","details":"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-\u003estrict_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.","modified":"2026-05-20T16:24:51.171254249Z","published":"2026-02-21T00:16:00Z","upstream":["CVE-2026-27168"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-27168"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-27168"},{"type":"REPORT","url":"https://github.com/HappySeaFox/sail/security/advisories/GHSA-3g38-x2pj-mv55"}],"affected":[{"package":{"name":"sail","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/sail?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.0+repack-1","0.9.0+repack-2","0.9.0+repack-2.1","0.9.0+repack-2.1build1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.9.0+repack-2.1build1","binary_name":"libsail-c++0t64"},{"binary_name":"libsail-common0t64","binary_version":"0.9.0+repack-2.1build1"},{"binary_version":"0.9.0+repack-2.1build1","binary_name":"libsail-manip0t64"},{"binary_version":"0.9.0+repack-2.1build1","binary_name":"libsail0t64"},{"binary_name":"sail-codecs","binary_version":"0.9.0+repack-2.1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27168.json"}},{"package":{"name":"sail","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/sail?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.7-1build1","0.9.8-1","0.9.9-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.9.9-1","binary_name":"libsail-c++0t64"},{"binary_name":"libsail-common0t64","binary_version":"0.9.9-1"},{"binary_name":"libsail-manip0t64","binary_version":"0.9.9-1"},{"binary_name":"libsail0t64","binary_version":"0.9.9-1"},{"binary_name":"sail-codecs","binary_version":"0.9.9-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27168.json"}},{"package":{"name":"sail","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/sail?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.9-1","0.9.10-1"],"ecosystem_specific":{"binaries":[{"binary_version":"0.9.10-1","binary_name":"libsail-c++0t64"},{"binary_name":"libsail-common0t64","binary_version":"0.9.10-1"},{"binary_name":"libsail-manip0t64","binary_version":"0.9.10-1"},{"binary_version":"0.9.10-1","binary_name":"libsail0t64"},{"binary_version":"0.9.10-1","binary_name":"sail-codecs"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-27168.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}