Uncontrolled Memory Allocation Affecting cimg package, versions *


Severity

Recommended
low

Based on Debian security rating.

Threat Intelligence

EPSS
0.18% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIAN11-CIMG-16420243
  • published5 May 2026
  • disclosed4 May 2026

Introduced: 4 May 2026

CVE-2026-42146  (opens in a new tab)
CWE-789  (opens in a new tab)

How to fix?

There is no fixed version for Debian:11 cimg.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cimg package and not the cimg package as distributed by Debian. See How to fix? for Debian:11 relevant fixed versions and status.

CImg Library is a C++ library for image processing. Prior to commit c3aacf5, the nb_colors field read from the BMP file header is used directly to compute an allocation size without validating it against the remaining file size. A crafted BMP file with a large nb_colors value triggers an out-of-memory condition, crashing any application that uses CImg to load untrusted BMP files. This issue has been patched via commit c3aacf5.