Vulnerability in Greyclab Cimg
CVE-2026-42146
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…
EPSS: 0.000 (5.3th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H.
Affected products
- Greyclab Cimg — versions < c3aacf5b96ac1e54b7af1957c6737dbf3949f6d3
Weakness classification (CWE)
References
- https://github.com/GreycLab/CImg/commit/c3aacf5b96ac1e54b7af1957c6737dbf3949f6d3 (x_refsource_MISC)
- https://github.com/GreycLab/CImg/issues/477 (x_refsource_MISC)
- https://github.com/GreycLab/CImg/releases/tag/v.3.7.5 (x_refsource_MISC)
- https://github.com/GreycLab/CImg/security/advisories/GHSA-g54r-qmgx-c6fv (x_refsource_CONFIRM)
Frequently asked questions
- What is CVE-2026-42146?
- CVE-2026-42146 is a medium-severity vulnerability in Greyclab Cimg, classified under CWE-789. CVSS score: 5.5/10. Published 2026-05-04.
- How severe is CVE-2026-42146?
- Medium severity. CVSS v3 base score is 5.5 out of 10.