CVE-2018-13785: Integer Overflow

Published Jul 9, 2018
·
Updated

In libpng 1.6.34, a wrong calculation of rowfactor in the pngcheckchunklength function (pngrutil.c) may trigger an integer overflow and resultant divide-by-zero while processing a crafted PNG file, leading to a denial of service.

Other sources

libpng through version 1.6.34 is vulnerable to an integer overflow and resultant divide-by-zero in the pngrutil.c:pngcheckchunklength() function. An attacker could exploit this to cause a denial of service via crafted PNG file.

Upstream Bug:

https://sourceforge.net/p/libpng/bugs/278/

Upstream Patch:

https://github.com/glennrp/libpng/commit/8a05766cb74af05c04c53e6c9d60c13fc4d59bf2

Red Hat

Affected Software

20 affected componentsFixes available
libpng LIBPNG=1.6.34
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10
Canonical Ubuntu Linux=18.04
Oracle JDK=1.6.0-update201
Oracle JDK=1.7.0-update191
Oracle JDK=1.8.0-update181
Oracle JDK=11.0.0
Oracle JRE=1.6.0-update201
Oracle JRE=1.7.0-update191
Oracle JRE=1.8.0-update181
Oracle JRE=11.0.0
redhat Enterprise Linux Desktop=6.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Server=6.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Workstation=6.0
redhat Enterprise Linux Workstation=7.0
debian/libpng1.6
1.6.37-31.6.37-3+deb11u41.6.39-2+deb12u51.6.48-1+deb13u51.6.58-1

Event History

Jul 9, 2018
CVE Published
via MITRE·01:00 PM
Data Sourced
via MITRE·01:00 PM
Description
Data Sourced
via NVD·01:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Jul 11, 2018
Data Sourced
via Red Hat·01:31 AM
DescriptionSeverityAffected Software
Jan 11, 2024
Data Sourced
via Launchpad·10:50 PM
Description
Feb 19, 2026
Data Sourced
via Ubuntu·03:52 PM
RemedyDescriptionSeverityAffected Software
May 17, 2026
Data Sourced
via Debian·03:27 AM
DescriptionAffected 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-2018-13785?

CVE-2018-13785 is a vulnerability in libpng 1.6.34 that may trigger an integer overflow and resultant divide-by-zero while processing a crafted PNG file, leading to a denial of service.

2

What is the severity of CVE-2018-13785?

The severity of CVE-2018-13785 is medium with a CVSS score of 6.5.

3

How does CVE-2018-13785 affect libpng?

CVE-2018-13785 affects libpng version 1.6.34.

4

How can I fix CVE-2018-13785?

To fix CVE-2018-13785, update libpng to version 1.6.36-6, 1.6.37-3, 1.6.39-2, or 1.6.40-2.

5

Where can I find more information about CVE-2018-13785?

You can find more information about CVE-2018-13785 at the following references: [Reference 1](https://sourceforge.net/p/libpng/bugs/278/), [Reference 2](https://github.com/glennrp/libpng/commit/8a05766cb74af05c04c53e6c9d60c13fc4d59bf2), [Reference 3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=1599944).

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