CVE Explorer
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 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 4ca
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"product":"CImg","vendor":"GreycLab","versions":[{"status":"affected","version":"< 4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:e2703f406f9ff67bec6467de130d12e9250e72cb9bef37e5afa989cea63cd76e · sha256:a36c28c32f6ff1c8… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":6.1,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","version":"3.1"},"metric_type":"cvssV3_1"}
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:e2703f406f9ff67bec6467de130d12e9250e72cb9bef37e5afa989cea63cd76e · sha256:a36c28c32f6ff1c8… · /containers/cna/metrics/0/cvssV3_1
CWE assertions
1 source assertion{"cweId":"CWE-190","description":"CWE-190: Integer Overflow or Wraparound","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:e2703f406f9ff67bec6467de130d12e9250e72cb9bef37e5afa989cea63cd76e · sha256:a36c28c32f6ff1c8… · /containers/cna/problemTypes/0/descriptions/0
Source references
4 source assertions{"name":"https://github.com/GreycLab/CImg/commit/4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d","tags":["x_refsource_MISC"],"url":"https://github.com/GreycLab/CImg/commit/4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e2703f406f9ff67bec6467de130d12e9250e72cb9bef37e5afa989cea63cd76e · sha256:a36c28c32f6ff1c8… · /containers/cna/references/2
{"name":"https://github.com/GreycLab/CImg/issues/478","tags":["x_refsource_MISC"],"url":"https://github.com/GreycLab/CImg/issues/478"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e2703f406f9ff67bec6467de130d12e9250e72cb9bef37e5afa989cea63cd76e · sha256:a36c28c32f6ff1c8… · /containers/cna/references/1
{"name":"https://github.com/GreycLab/CImg/releases/tag/v.3.7.5","tags":["x_refsource_MISC"],"url":"https://github.com/GreycLab/CImg/releases/tag/v.3.7.5"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e2703f406f9ff67bec6467de130d12e9250e72cb9bef37e5afa989cea63cd76e · sha256:a36c28c32f6ff1c8… · /containers/cna/references/3
{"name":"https://github.com/GreycLab/CImg/security/advisories/GHSA-4663-63fm-44gc","tags":["x_refsource_CONFIRM"],"url":"https://github.com/GreycLab/CImg/security/advisories/GHSA-4663-63fm-44gc"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:e2703f406f9ff67bec6467de130d12e9250e72cb9bef37e5afa989cea63cd76e · sha256:a36c28c32f6ff1c8… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.