{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-42144","id":"CVE-2026-42144","title":"CImg Library: Integer overflow in PNM size check bypasses memory guard (_load_pnm)","description":"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 applicat","descriptionLong":"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.","published":"2026-05-04T17:51:38.144Z","updated":"2026-10-28T11:13:24.770071845Z","reserved":"2026-04-24T17:15:21.834Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","rating":"medium","source":"github.com"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["GreycLab CImg"],"affectedProducts":[{"vendor":"GreycLab","product":"CImg","defaultStatus":null,"versions":[{"version":"< 4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d","status":"affected"}],"platforms":[]}],"packages":[],"cwes":["CWE-190"],"aliases":["GHSA-4663-63fm-44gc"],"references":[{"url":"https://github.com/GreycLab/CImg/security/advisories/GHSA-4663-63fm-44gc","tags":["x_refsource_CONFIRM","advisory"]},{"url":"https://github.com/GreycLab/CImg/issues/478","tags":["x_refsource_MISC","report"]},{"url":"https://github.com/GreycLab/CImg/commit/4ca26bce4d8c61fcd1507d5f9401b9fb1222c27d","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/GreycLab/CImg/releases/tag/v.3.7.5","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/42xxx/CVE-2026-42144.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42144","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00142,"epssPercentile":0.0362,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-42144","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42144","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-42144","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-42144","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}