{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "2.8.12"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "introduced": "3.0.0"
                  },
                  {
                    "last_affected": "3.4.8"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "5cfbe85f3a783417eec4d5aa0660b40c2cff5292"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "range": [
                  {
                    "fixed": "9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5cfbe85f3a783417eec4d5aa0660b40c2cff5292"
            },
            {
              "fixed": "9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996"
            }
          ],
          "repo": "https://github.com/libsdl-org/sdl_image",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-125"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/117xxx/CVE-2026-117557.json"
  },
  "details": "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.",
  "id": "CVE-2026-117557",
  "modified": "2026-11-05T21:16:05.363528594Z",
  "published": "2026-10-27T13:07:52.419Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/117xxx/CVE-2026-117557.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-117557"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/sdl-image-through-3.4.8-and-2.8.12-stack-out-of-bounds-read-in-ilbm-loader"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/libsdl-org/SDL_image/issues/769"
    },
    {
      "type": "FIX",
      "url": "https://github.com/libsdl-org/SDL_image/commit/5cfbe85f3a783417eec4d5aa0660b40c2cff5292"
    },
    {
      "type": "FIX",
      "url": "https://github.com/libsdl-org/SDL_image/commit/9c0622c36cf01e9ecba4bfdd6c4aa2b21c8cf996"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/libsdl-org/SDL_image"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/libsdl-org/SDL_image/blob/release-3.4.8/src/IMG_lbm.c#L240"
    },
    {
      "type": "EVIDENCE",
      "url": "https://hackmd.io/@haindpwn/sdl-image-lbm-ham-oob-read"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "SDL_image through 3.4.8 and 2.8.12 Stack Out-of-Bounds Read in ILBM Loader"
}