PT-2026-36893 · Cimg · Cimg

·

CVE-2026-42146

·

Published

2026-05-04

·

Updated

2026-05-04

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions CImg Library versions prior to commit c3aacf5
Description An issue exists in the processing of BMP files where the nb colors field from the file header is used to calculate allocation size without validation against the actual remaining file size. A specially crafted BMP file containing a large nb colors value can trigger an out-of-memory condition, leading to a crash of any application utilizing the library to load untrusted BMP files.
Recommendations Update to the version containing commit c3aacf5.

Exploit

Fix

DoS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-42146
GHSA-G54R-QMGX-C6FV

Affected Products

Cimg