🛡️ CVE-2026-42146 on Ubuntu — cimg
Description
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.
Distribution advisory
This page covers CVE-2026-42146 as tracked by Ubuntu, for the package cimg. No fixed version has been recorded for this distribution yet.
How this vulnerability can be exploited
This issue can be reached with local access to the system, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.
Affected software and timeline
Affected software: cimg. Published on 4 May 2026 and last revised on 20 May 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.
References
ubuntu.com (Report)
www.cve.org (Report)
github.com (Report)
github.com (Report)
CVE-2026-42146 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| cimg | — | — |
References
Similar Threats
- Unknown DEBIAN-CVE-2026-47667
- Unknown UBUNTU-CVE-2026-47667
- Unknown DEBIAN-CVE-2026-42144
- Unknown DEBIAN-CVE-2026-42146
- Unknown UBUNTU-CVE-2026-42144
Vulnerability Monitoring
Track new vulnerabilities in cimg
UBUNTU-CVE-2026-42146 is rated CVSS 5.5 Medium. BotEraser monitors your WordPress installation and notifies you when software you use appears in our vulnerability database.
Set Up Free Alerts →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.