Skip to content
Heist/ feed
UnratedFix available

DEBIAN-CVE-2026-40494

Type: advisorySource: OSV1 source record

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 the end of a heap buffer. Commit 45d48d1f2e8e0d73e80bc1fd5310cb57f4547302 patches the issue.

Announced Group revision 1
Original source ↗

DEBIAN-CVE-2026-40494

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:DEBIAN-CVE-2026-40494

sail

Source reference: /affected/0/package/name

Affected versions
0.9.10-1

Source reference: /affected/0/versions

0.9.10-2

Source reference: /affected/0/versions

0.9.10-3

Source reference: /affected/0/versions

0.9.8-1

Source reference: /affected/0/versions

0.9.8-1+deb13u1

Source reference: /affected/0/versions

0.9.9-1

Source reference: /affected/0/versions

1.2.0-1

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

sail

Source reference: /affected/1/package/name

Affected versions
0.9.10-1

Source reference: /affected/1/versions

0.9.8-1

Source reference: /affected/1/versions

0.9.9-1

Source reference: /affected/1/versions

Fixed versions
0.9.10-2

Source reference: /affected/1/ranges

Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "sail",
      "purl": "pkg:deb/debian/sail?arch=source&distro=trixie",
      "ecosystem": "Debian:13"
    },
    "versions": [
      "0.9.10-1",
      "0.9.10-2",
      "0.9.10-3",
      "0.9.8-1",
      "0.9.8-1+deb13u1",
      "0.9.9-1",
      "1.2.0-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40494.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  },
  {
    "ranges": [
      {
        "type": "ECOSYSTEM",
        "events": [
          {
            "introduced": "0"
          },
          {
            "fixed": "0.9.10-2"
          }
        ]
      }
    ],
    "package": {
      "name": "sail",
      "purl": "pkg:deb/debian/sail?arch=source&distro=forky",
      "ecosystem": "Debian:14"
    },
    "versions": [
      "0.9.10-1",
      "0.9.8-1",
      "0.9.9-1"
    ],
    "database_specific": {
      "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-40494.json"
    },
    "ecosystem_specific": {
      "urgency": "not yet assigned"
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#56882 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement