Skip to content
Heist/ feed
Back to feed
Medium

SDL_image through 3.4.8 and 2.8.12 Stack Out-of-Bounds Read in ILBM Loader

Type: advisorySources: Official CVE List

SDL_image through 3.4.8 and through 2.8.12 contains a stack out-of-bounds read vulnerability in IMG_LoadLBM_IO() in src/IMG_lbm.c that skips bitplane count validation when HAM mode is set. Attackers can supply a crafted ILBM file with more than 8 HAM bitplanes to read past the colormap stack array, causing crashes or disclosing stack memory.

Products
SDL_image
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-117557
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 13:58 UTC · Revision 1

Source evidence

SDL_image through 3.4.8 and 2.8.12 Stack Out-of-Bounds Read in ILBM Loader

core-cve · Original source

Published 27 Oct 2026, 13:07 UTC

SDL_image through 3.4.8 and through 2.8.12 contains a stack out-of-bounds read vulnerability in IMG_LoadLBM_IO() in src/IMG_lbm.c that skips bitplane count validation when HAM mode is set. Attackers can supply a crafted ILBM file with more than 8 HAM bitplanes to read past the colormap stack array, causing crashes or disclosing stack memory.

cve:CVE-2026-117557

SDL_image

Fixed versions: Not specified

Complete source record
{
  "id": "d36fb4ab34a6e711ec2a717c73d9d9681ffc1d9906bf3b9b98bac1027a9ffbc0",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-117557",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "SDL_image through 3.4.8 and 2.8.12 Stack Out-of-Bounds Read in ILBM Loader",
    "summary": "SDL_image through 3.4.8 and through 2.8.12 contains a stack out-of-bounds read vulnerability in IMG_LoadLBM_IO() in src/IMG_lbm.c that skips bitplane count validation when HAM mode is set. Attackers can supply a crafted ILBM file with more than 8 HAM bitplanes to read past the colormap stack array, causing crashes or disclosing stack memory.",
    "evidence": "cve:CVE-2026-117557",
    "products": [
      {
        "name": {
          "value": "SDL_image",
          "evidence": "/containers/cna/affected/0/product"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2026-117557",
      "aliases": [
        "CVE-2026-117557"
      ],
      "metrics": [
        {
          "format": "CVSS",
          "cvssV4_0": {
            "version": "4.0",
            "baseScore": 6.9,
            "attackVector": "LOCAL",
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N",
            "userInteraction": "PASSIVE",
            "attackComplexity": "LOW",
            "attackRequirements": "NONE",
            "privilegesRequired": "NONE",
            "subIntegrityImpact": "NONE",
            "vulnIntegrityImpact": "NONE",
            "subAvailabilityImpact": "NONE",
            "vulnAvailabilityImpact": "HIGH",
            "subConfidentialityImpact": "NONE",
            "vulnConfidentialityImpact": "LOW"
          }
        },
        {
          "format": "CVSS",
          "cvssV3_1": {
            "scope": "UNCHANGED",
            "version": "3.1",
            "baseScore": 6.1,
            "attackVector": "LOCAL",
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H",
            "integrityImpact": "NONE",
            "userInteraction": "REQUIRED",
            "attackComplexity": "LOW",
            "availabilityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "confidentialityImpact": "LOW"
          }
        }
      ],
      "affected": [
        {
          "vendor": "libsdl-org",
          "product": "SDL_image",
          "versions": [
            {
              "status": "affected",
              "version": "0",
              "versionType": "semver",
              "lessThanOrEqual": "2.8.12"
            },
            {
              "status": "affected",
              "version": "3.0.0",
              "versionType": "semver",
              "lessThanOrEqual": "3.4.8"
            }
          ],
          "defaultStatus": "unaffected"
        }
      ],
      "modified": "2026-10-27T13:07:52.419Z",
      "provider": "cve",
      "references": [
        "https://github.com/libsdl-org/SDL_image/issues/769",
        "https://github.com/libsdl-org/SDL_image",
        "https://github.com/libsdl-org/SDL_image/commit/5cfbe85f3a783417eec4d5aa0660b40c2cff5292",
        "https://github.com/libsdl-org/SDL_image/commit/9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996",
        "https://github.com/libsdl-org/SDL_image/blob/release-3.4.8/src/IMG_lbm.c#L240",
        "https://www.vulncheck.com/advisories/sdl-image-through-3.4.8-and-2.8.12-stack-out-of-bounds-read-in-ilbm-loader"
      ],
      "provider_metadata": {
        "cna": {
          "orgId": "83251b91-4cc7-4094-a5c7-464a1b83ea10",
          "shortName": "VulnCheck",
          "dateUpdated": "2026-10-27T13:07:52.419Z"
        }
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-117557",
        "evidence": "/cveMetadata/cveId"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/containers/cna/metrics"
  },
  "source_id": "core-cve",
  "document_id": 392684,
  "published_at": "2026-10-27T13:07:52.419+00:00"
}