Integer overflow in Greyclab Cimg

CVE-2026-42144

CImg Library is a C++ library for image processing. Prior to commit 4ca26bc, there is an integer overflow vulnerability in the W*H*D size computation inside _load_pnm() that can bypass the memory allocation guard. A crafted PNM/PGM/PPM fil…

Vulnerability class: Integer Overflow

EPSS: 0.000 (5.3th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.1 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H.

Affected products

  • Greyclab Cimg — versions < 4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2026-42144?
CVE-2026-42144 is a medium-severity vulnerability in Greyclab Cimg, classified under Integer Overflow or Wraparound. CVSS score: 6.1/10. Published 2026-05-04.
How severe is CVE-2026-42144?
Medium severity. CVSS v3 base score is 6.1 out of 10.