CVE-2026-117555

GreycLab CImg through 4.0.6 Heap Out-of-Bounds Read via Integer Overflow in _load_bmp()

Published Oct 27, 2026 CVSS 4.0 · 6.9 Medium EPSS < 1% KEV · Not listed
Description
CImg through 4.0.6 contains a heap out-of-bounds read vulnerability in the _load_bmp() function of CImg.h caused by an integer overflow in the row byte count. Attackers can supply a crafted BMP file with a large header width that wraps dx_bytes, causing crashes or heap memory disclosure into the decoded image.

Analysis

AI-generated

Technical impact

The vulnerability is an integer overflow in CImg’s BMP loader that causes a heap out‑of‑bounds read when a BMP file has an excessively large header width. An attacker who can supply such a crafted file can cause buffer reads beyond allocated memory, potentially leaking heap data or crashing the application during image decoding.

Affected Systems

GreycLab’s CImg library up to and including version 4.0.6 is affected. Any system that imports and uses this library to process BMP images, without vetting input, is potentially vulnerable.

Risk and Exploitability

The CVSS score of 6.9 indicates moderate severity. The EPSS score below 1% suggests that exploitation is unlikely, though still possible. The vulnerability is not listed in the CISA KEV catalog, indicating no known active attacks. Based on the description, the likely attack vector is local or remote execution of the vulnerable library with a malicious BMP file; the attacker must be able to supply such a file to the application, but does not need privileged access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade CImg to a version newer than 4.0.6, ensuring the integer overflow in _load_bmp() is fixed.
  • Validate BMP header values—specifically width and byte calculations—before feeding them to the CImg loader, rejecting files that exceed reasonable bounds.
  • Process BMP files in an isolated environment with restricted permissions to limit the impact of any potential heap disclosure.

Generated by OpenCVE AI on October 30, 2026 at 14:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Greyclab
Greyclab cimg
Vendors & Products Greyclab
Greyclab cimg
Type Values Removed Values Added
Description CImg through 4.0.6 contains a heap out-of-bounds read vulnerability in the _load_bmp() function of CImg.h caused by an integer overflow in the row byte count. Attackers can supply a crafted BMP file with a large header width that wraps dx_bytes, causing crashes or heap memory disclosure into the decoded image.
Title GreycLab CImg through 4.0.6 Heap Out-of-Bounds Read via Integer Overflow in _load_bmp()
First Time appeared Cimg
Cimg cimg
Weaknesses CWE-190
CPEs cpe:2.3:a:cimg:cimg:*:*:*:*:*:*:*:*
Vendors & Products Cimg
Cimg cimg
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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 2, 2026, 7:13 PM
Reserved
Oct 27, 2026, 11:25 AM
Status
Deferred
Published
Oct 27, 2026, 2:16 PM
Modified
Nov 2, 2026, 8:17 PM
Severity
Moderate
Public date
Oct 27, 2026, 1:07 PM