CVE-2020-25693: Integer Overflow

Published Oct 30, 2020
·
Updated

A flaw was found in CImg in versions prior to 2.9.3. Integer overflows leading to heap buffer overflows in loadpnm() can be triggered by a specially crafted input file processed by CImg, which can lead to an impact to application availability or data integrity.

Other sources

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 loadpnm() image parsing function.

References: https://github.com/dtschump/CImg/pull/295 https://bugs.launchpad.net/ubuntu/+source/cimg/+bug/1900983

Red Hat

Affected Software

5 affected componentsFixes available
CImg cimg<2.9.3
Fedoraproject Fedora=32
Fedoraproject Fedora=33
Fedoraproject Fedora=34
redhat/CImg<2.9.3
2.9.3

Event History

Dec 3, 2020
CVE Published
via MITRE·04:48 PM
Data Sourced
via MITRE·04:48 PM
DescriptionWeakness
Data Sourced
05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2020-25693?

CVE-2020-25693 is a vulnerability in CImg prior to version 2.9.3 that allows integer overflows leading to heap buffer overflows.

2

What is the severity of CVE-2020-25693?

CVE-2020-25693 has a severity rating of 8.1 (high).

3

How does CVE-2020-25693 impact application availability or data integrity?

CVE-2020-25693 can impact application availability or data integrity due to heap buffer overflows caused by integer overflows in CImg.

4

Which software versions are affected by CVE-2020-25693?

Versions of CImg prior to 2.9.3 are affected by CVE-2020-25693.

5

How can I fix CVE-2020-25693?

To fix CVE-2020-25693, update CImg to version 2.9.3 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203