Description
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.
Published: 2026-10-27
Score: 6.9 Medium
EPSS: n/a
KEV: No
Impact: Information Disclosure
Action: Update SDL_image
AI Analysis

Impact

SDL_image up to versions 3.4.8 and 2.8.12 has a stack out‑of‑bounds read flaw in the ILBM loader that neglects to validate the HAM bitplane count when HAM mode is enabled. A crafted ILBM file containing more than eight HAM bitplanes can cause the loader to read past the colormap stack array, which may crash the application or expose sensitive stack contents to an attacker. Consequently, the vulnerability supports information disclosure and can lead to denial of service.

Affected Systems

The flaw affects the SDL_image library distributed by libsdl-org. Specifically, any installation of SDL_image 3.x versions up to and including 3.4.8, and SDL_image 2.x versions up to and including 2.8.12, is vulnerable. Applications that embed these versions and process ILBM files are potentially impacted.

Risk and Exploitability

The vulnerability is rated with a CVSS score of 6.9, indicating a moderate severity level. The EPSS score is unavailable, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities catalog. The likely attack vector is local or remote code that supplies a malicious ILBM image file to an application using the affected SDL_image library; this may result in a crash or the disclosure of stack data. The presence of the EPSS as not available does not diminish the potential impact if an attacker can supply the crafted input.

Generated by OpenCVE AI on October 27, 2026 at 14:23 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SDL_image to the latest release that incorporates the fixed handling of HAM bitplanes (e.g., any version newer than 3.4.8 for the 3.x line or newer than 2.8.12 for the 2.x line).
  • If an immediate upgrade is not possible, block or strictly sandbox ILBM file loading for untrusted input or replace the loader with a version that performs explicit bounds checking and rejects ILBM files with a HAM bitplane count exceeding eight.
  • As a temporary measure, add defensive checks to ensure the HAM bitplane count is never greater than eight before accessing the colormap stack array, or wrap the ILBM parsing routine in a memory‑safe environment that enforces bounds safety.

Generated by OpenCVE AI on October 27, 2026 at 14:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 27 Oct 2026 13:45:00 +0000

Type Values Removed Values Added
Description 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.
Title SDL_image through 3.4.8 and 2.8.12 Stack Out-of-Bounds Read in ILBM Loader
First Time appeared Libsdl
Libsdl sdl Image
Weaknesses CWE-125
CPEs cpe:2.3:a:libsdl:sdl_image:*:*:*:*:*:*:*:*
Vendors & Products Libsdl
Libsdl sdl Image
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H'}

cvssV4_0

{'score': 6.9, 'vector': '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'}


Subscriptions

Libsdl Sdl Image
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-27T13:07:52.419Z

Reserved: 2026-10-27T11:25:21.355Z

Link: CVE-2026-117557

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-27T14:16:37.590

Modified: 2026-10-27T14:16:37.590

Link: CVE-2026-117557

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-27T14:45:03Z

Weaknesses