CVE-2020-25693
published 2020-12-03CVE-2020-25693: A flaw was found in CImg in versions prior to 2.9.3. Integer overflows leading to heap buffer overflows in load_pnm() can be triggered by a specially crafted…
PriorityP340high8.1CVSS 3.1
AVNACLPRNUIRSUCHINAH
EPSS
1.47%
71.1th percentile
A flaw was found in CImg in versions prior to 2.9.3. Integer overflows leading to heap buffer overflows in load_pnm() can be triggered by a specially crafted input file processed by CImg, which can lead to an impact to application availability or data integrity.
Affected
10 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| cimg | cimg | < 2.9.3 | 2.9.3 |
| cimg | cimg | — | — |
| cimg | cimg | >= 0 < 2.9.4+dfsg-2 | 2.9.4+dfsg-2 |
| cimg | cimg | >= 0 < 2.9.4+dfsg-2 | 2.9.4+dfsg-2 |
| cimg | cimg | >= 0 < 2.9.4+dfsg-2 | 2.9.4+dfsg-2 |
| cimg | cimg | >= 0 < 2.9.4+dfsg-2 | 2.9.4+dfsg-2 |
| debian | cimg | < cimg 2.9.4+dfsg-2 (bookworm) | cimg 2.9.4+dfsg-2 (bookworm) |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
| fedoraproject | fedora | — | — |
CVSS provenance
nvdv3.18.1HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H
nvdv2.05.8MEDIUMAV:N/AC:M/Au:N/C:P/I:N/A:P
osv8.1HIGH
vendor_debian8.1HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-vp99-jwhh-r3xw: A flaw was found in CImg in versions prior to 2
ghsa_unreviewed·2022-05-24
CVE-2020-25693 [HIGH] CWE-787 GHSA-vp99-jwhh-r3xw: A flaw was found in CImg in versions prior to 2
A flaw was found in CImg in versions prior to 2.9.3. Integer overflows leading to heap buffer overflows in load_pnm() can be triggered by a specially crafted input file processed by CImg, which can lead to an impact to application availability or data integrity.
OSV
CVE-2020-25693: A flaw was found in CImg in versions prior to 2
osv·2020-12-03·CVSS 8.1
CVE-2020-25693 [HIGH] CVE-2020-25693: A flaw was found in CImg in versions prior to 2
A flaw was found in CImg in versions prior to 2.9.3. Integer overflows leading to heap buffer overflows in load_pnm() can be triggered by a specially crafted input file processed by CImg, which can lead to an impact to application availability or data integrity.
Debian
CVE-2020-25693: cimg - A flaw was found in CImg in versions prior to 2.9.3. Integer overflows leading t...
vendor_debian·2020·CVSS 8.1
CVE-2020-25693 [HIGH] CVE-2020-25693: cimg - A flaw was found in CImg in versions prior to 2.9.3. Integer overflows leading t...
A flaw was found in CImg in versions prior to 2.9.3. Integer overflows leading to heap buffer overflows in load_pnm() can be triggered by a specially crafted input file processed by CImg, which can lead to an impact to application availability or data integrity.
Scope: local
bookworm: resolved (fixed in 2.9.4+dfsg-2)
bullseye: resolved (fixed in 2.9.4+dfsg-2)
forky: resolved (fixed in 2.9.4+dfsg-2)
sid: resolved (fixed in 2.9.4+dfsg-2)
trixie: resolved (fixed in 2.9.4+dfsg-2)
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2020-25693 CImg: multiple integer overflows leading to heap-based buffer-overflows
bugzilla·2020-10-30·CVSS 8.1
CVE-2020-25693 [HIGH] CVE-2020-25693 CImg: multiple integer overflows leading to heap-based buffer-overflows
CVE-2020-25693 CImg: multiple integer overflows leading to heap-based buffer-overflows
The CImg.h image library uses an unsafe pattern that is prone to integer overflows to calculate the required heap buffer allocation size. The resulting small heap buffers can be trivially overwritten by a malformed image input. This has been demonstrated at least with the load_pnm() image parsing function.
References:
https://github.com/dtschump/CImg/pull/295
https://bugs.launchpad.net/ubuntu/+source/cimg/+bug/1900983
Discussion:
Acknowledgments:
Name: Kai Dietrich
---
Created CImg tracking bugs for this issue:
Affects: fedora-all [bug 1893378]
---
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat pro
Bugzilla
CVE-2020-25693 CImg: multiple integer overflows leading to heap-based buffer-overflows [fedora-all]
bugzilla·2020-10-30·CVSS 8.1
CVE-2020-25693 [HIGH] CVE-2020-25693 CImg: multiple integer overflows leading to heap-based buffer-overflows [fedora-all]
CVE-2020-25693 CImg: multiple integer overflows leading to heap-based buffer-overflows [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects multi
https://bugzilla.redhat.com/show_bug.cgi?id=1893377https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ERBZALTF7LXN2LZLPGAUSVMV53GHHTUC/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MJ5Q7NNUPXATTBUKHFKIYYAV5GJDYCZL/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QZ3NPLYXZWEL7HETIFZVCXEZZ2WYYRWA/https://bugzilla.redhat.com/show_bug.cgi?id=1893377https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ERBZALTF7LXN2LZLPGAUSVMV53GHHTUC/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MJ5Q7NNUPXATTBUKHFKIYYAV5GJDYCZL/https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QZ3NPLYXZWEL7HETIFZVCXEZZ2WYYRWA/
2020-12-03
Published