{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-42146","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","state":"PUBLISHED","assignerShortName":"GitHub_M","dateReserved":"2026-04-24T17:15:21.834Z","datePublished":"2026-05-04T17:53:23.830Z","dateUpdated":"2026-05-06T13:44:14.581Z"},"containers":{"cna":{"title":"CImg Library: Uncontrolled memory allocation via nb_colors field in _load_bmp","problemTypes":[{"descriptions":[{"cweId":"CWE-789","lang":"en","description":"CWE-789: Memory Allocation with Excessive Size Value","type":"CWE"}]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","version":"3.1"}}],"references":[{"name":"https://github.com/GreycLab/CImg/security/advisories/GHSA-g54r-qmgx-c6fv","tags":["x_refsource_CONFIRM"],"url":"https://github.com/GreycLab/CImg/security/advisories/GHSA-g54r-qmgx-c6fv"},{"name":"https://github.com/GreycLab/CImg/issues/477","tags":["x_refsource_MISC"],"url":"https://github.com/GreycLab/CImg/issues/477"},{"name":"https://github.com/GreycLab/CImg/commit/c3aacf5b96ac1e54b7af1957c6737dbf3949f6d3","tags":["x_refsource_MISC"],"url":"https://github.com/GreycLab/CImg/commit/c3aacf5b96ac1e54b7af1957c6737dbf3949f6d3"},{"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"}],"affected":[{"vendor":"GreycLab","product":"CImg","versions":[{"version":"< c3aacf5b96ac1e54b7af1957c6737dbf3949f6d3","status":"affected"}]}],"providerMetadata":{"orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M","dateUpdated":"2026-05-04T17:53:23.830Z"},"descriptions":[{"lang":"en","value":"CImg Library is a C++ library for image processing. Prior to commit c3aacf5, the nb_colors field read from the BMP file header is used directly to compute an allocation size without validating it against the remaining file size. A crafted BMP file with a large nb_colors value triggers an out-of-memory condition, crashing any application that uses CImg to load untrusted BMP files. This issue has been patched via commit c3aacf5."}],"source":{"advisory":"GHSA-g54r-qmgx-c6fv","discovery":"UNKNOWN"}},"adp":[{"references":[{"url":"https://github.com/GreycLab/CImg/issues/477","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-05-06T13:43:28.189688Z","id":"CVE-2026-42146","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2026-05-06T13:44:14.581Z"}}]}}