CVE-2026-117555

NameCVE-2026-117555
DescriptionCImg through 4.0.6 contains a heap out-of-bounds read vulnerability in the _load_bmp() function of CImg.h caused by an integer overflow in the row byte count. Attackers can supply a crafted BMP file with a large header width that wraps dx_bytes, causing crashes or heap memory disclosure into the decoded image.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
cimg (PTS)bookworm3.2.1+dfsg-1vulnerable
trixie3.5.2+dfsg-1+deb13u1vulnerable
forky, sid4.0.4+dfsg-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
cimgsource(unstable)(unfixed)unimportant

Notes

https://github.com/GreycLab/CImg/issues/495
Fixed by: https://github.com/GreycLab/CImg/commit/b9ed613d9984f9caa1617b97e1db7e429cf14fd5 (v.4.0.7)
Crash in CLI tool, no security impact

Search for package or bug name: Reporting problems