CVEfocus › CVE database › CVE-2018-13785

CVE-2018-13785

CVSS 6.5 MediumEPSS 4.3% (higher than 91% of CVEs)Published 2018-07-09Updated 2026-05-29Assigner: mitre

In libpng 1.6.34, a wrong calculation of row_factor in the png_check_chunk_length 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.

CWE-190CWE-369

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

37Fixed
7Will not fix
14Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 18.04libpng1.6Fixed1.6.34-1ubuntu0.18.04.1UBUNTU-CVE-2018-13785
Ubuntu 16.04libpngNot affected
vulnerable_code_not_present
Ubuntu 16.04libpng1.6Not affected
vulnerable_code_not_present
Debian 14libpng1.6Fixed1.6.34-2DEBIAN-CVE-2018-13785
Debian 13libpng1.6Fixed1.6.34-2DEBIAN-CVE-2018-13785
Debian 12libpng1.6Fixed1.6.34-2DEBIAN-CVE-2018-13785
Red Hat Enterprise Linux 8libpngNot affected
Red Hat Enterprise Linux 8libpng-develNot affected
Red Hat Enterprise Linux 8libpng12Not affected
Red Hat Enterprise Linux 7libpngNot affected
Red Hat Enterprise Linux 7libpng-develNot affected
Red Hat Enterprise Linux 7libpng-staticNot affected
Red Hat Enterprise Linux 7libpng12Not affected
Red Hat Enterprise Linux 7libpng12-develNot affected
Red Hat Enterprise Linux 6java-1.6.0-ibmWill not fix
Will not fix
Red Hat Enterprise Linux 6java-1.6.0-ibm-demoWill not fix
Will not fix
Red Hat Enterprise Linux 6java-1.6.0-ibm-develWill not fix
Will not fix
Red Hat Enterprise Linux 6java-1.6.0-ibm-javacommWill not fix
Will not fix
Red Hat Enterprise Linux 6java-1.6.0-ibm-jdbcWill not fix
Will not fix
Red Hat Enterprise Linux 6java-1.6.0-ibm-pluginWill not fix
Will not fix
Red Hat Enterprise Linux 6java-1.6.0-ibm-srcWill not fix
Will not fix
Red Hat Enterprise Linux 6libpngNot affected
Red Hat Enterprise Linux 6libpng-develNot affected
Red Hat Enterprise Linux 6libpng-staticNot affected
Red Hat Enterprise Linux 5libpngNot affected
Alpine Linux 3.24openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.23openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.22openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.21openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.20openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.19openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.18openjdk7Fixed7.201.2.6.16-r0ALPINE-CVE-2018-13785
Alpine Linux 3.18openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.17openjdk7Fixed7.201.2.6.16-r0ALPINE-CVE-2018-13785
Alpine Linux 3.17openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.16openjdk7Fixed7.201.2.6.16-r0ALPINE-CVE-2018-13785
Alpine Linux 3.16openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.15openjdk7Fixed7.201.2.6.16-r0ALPINE-CVE-2018-13785
Alpine Linux 3.15openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.14openjdk7Fixed7.201.2.6.16-r0ALPINE-CVE-2018-13785
Alpine Linux 3.14openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.13openjdk7Fixed7.201.2.6.16-r0ALPINE-CVE-2018-13785
Alpine Linux 3.13openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.12openjdk7Fixed7.201.2.6.16-r0ALPINE-CVE-2018-13785
Alpine Linux 3.12openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.11openjdk7Fixed7.201.2.6.16-r0ALPINE-CVE-2018-13785
Alpine Linux 3.11openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.10openjdk7Fixed7.201.2.6.16-r0ALPINE-CVE-2018-13785
Alpine Linux 3.10openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.9openjdk7Fixed7.201.2.6.16-r0ALPINE-CVE-2018-13785
Alpine Linux 3.9openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.8openjdk7Fixed7.201.2.6.16-r0ALPINE-CVE-2018-13785
Alpine Linux 3.8openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.7openjdk7Fixed7.201.2.6.16-r0ALPINE-CVE-2018-13785
Alpine Linux 3.7openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.6openjdk7Fixed7.201.2.6.16-r0ALPINE-CVE-2018-13785
Alpine Linux 3.6openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785
Alpine Linux 3.5openjdk8Fixed8.191.12-r0ALPINE-CVE-2018-13785

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.