MTIby Motiontic
Colour theme
VulnerabilityCVE-2026-42144

CImg Library: Integer overflow in PNM size check bypasses memory guard (_load_pnm)

Not on CISA KEVCVSS 6.1 (v3.1)
  • Overview

Summary

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

See the full record, free

  • Every source, score and reference in one place
  • Timeline and related records
  • Watch an entry and get an alert when it changes

Sources and credits

  • CVE List Source: CVE Program (cve.org)