DEBIAN-CVE-2026-42146

Source
https://security-tracker.debian.org/tracker/CVE-2026-42146
Import Source
https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-42146.json
JSON Data
https://api.osv.dev/v1/vulns/DEBIAN-CVE-2026-42146
Upstream
Published
2026-05-04T18:16:31Z
Modified
2026-09-14T17:03:11Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Debian:12 / cimg

Package

Name
cimg
Purl
pkg:deb/debian/cimg?arch=source&distro=bookworm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.2.1+dfsg-1
3.2.1+dfsg-2
3.5.0+dfsg-1
3.5.2+dfsg-1
3.5.2+dfsg-2
4.*
4.0.4+dfsg-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-42146.json"

Debian:13 / cimg

Package

Name
cimg
Purl
pkg:deb/debian/cimg?arch=source&distro=trixie

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.5.2+dfsg-1+deb13u1

Affected versions

3.*
3.5.2+dfsg-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-42146.json"

Debian:14 / cimg

Package

Name
cimg
Purl
pkg:deb/debian/cimg?arch=source&distro=forky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
3.5.2+dfsg-2

Affected versions

3.*
3.5.2+dfsg-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Database specific

source
"https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-42146.json"