{"id":"CVE-2026-42144","published":"2026-05-04T17:51:38Z","modified":"2026-05-05T14:14:38Z","title":"CImg Library: Integer overflow in PNM size check bypasses memory guard (_load_pnm)","vendor":"GreycLab","product":"CImg","tier":"tail","description":{"text":"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 file with large dimension values causes the overflow to wrap around, allocating an undersized buffer and potentially triggering a heap buffer overflow. Any application using CImg to load untrusted image files is affected. This issue has been patched via commit 4ca26bc.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00201,"percentile":0.05673,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://github.com/GreycLab/CImg/security/advisories/GHSA-4663-63fm-44gc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/GreycLab/CImg/issues/478","tags":["x_refsource_MISC"]},{"url":"https://github.com/GreycLab/CImg/commit/4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d","tags":["x_refsource_MISC"]},{"url":"https://github.com/GreycLab/CImg/releases/tag/v.3.7.5","tags":["x_refsource_MISC"]}],"priority":{"score":5.4,"factors":[{"name":"EPSS percentile","points":1.13},{"name":"CVSS severity","points":4.27}]},"vendorSlug":"greyclab","affectedVersions":[{"vendor":"GreycLab","product":"CImg","versions":["< 4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-05T13:07:54.801471Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-27075","exploited":false,"provenance":"source"}}