libpng: Integer overflow and resultant divide-by-zero in pngrutil.c:png_check_chunk_length() allows for denial of service
Published Jul 9, 2018
6.5
MEDIUMCVSS 3.1
EPSS 4.41%
Description
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.
Affected products
No data.
Configuration 2
- 14.04
- 16.04
- 17.10
- 18.04
Configuration 3
Configuration 4
- 6.0
- 7.0
- 6.0
- 7.0
- 6.0
- 7.0
No data.
Oracle Java for Red Hat Enterprise Linux 6
java-1.6.0-sun-1:1.6.0.211-1jpp.1.el6
Fixed · RHSA-2018:3008
Oracle Java for Red Hat Enterprise Linux 6
java-1.7.0-oracle-1:1.7.0.201-1jpp.1.el6
Fixed · RHSA-2018:3000
Oracle Java for Red Hat Enterprise Linux 6
java-1.8.0-oracle-1:1.8.0.191-1jpp.1.el6
Fixed · RHSA-2018:3003
Oracle Java for Red Hat Enterprise Linux 7
java-1.6.0-sun-1:1.6.0.211-1jpp.1.el7
Fixed · RHSA-2018:3007
Oracle Java for Red Hat Enterprise Linux 7
java-1.7.0-oracle-1:1.7.0.201-1jpp.1.el7
Fixed · RHSA-2018:3001
Oracle Java for Red Hat Enterprise Linux 7
java-1.8.0-oracle-1:1.8.0.191-1jpp.1.el7
Fixed · RHSA-2018:3002
Red Hat Enterprise Linux 6 Supplementary
java-1.7.1-ibm-1:1.7.1.4.35-1jpp.1.el6_10
Fixed · RHSA-2018:3671
Red Hat Enterprise Linux 6 Supplementary
java-1.8.0-ibm-1:1.8.0.5.25-1jpp.1.el6_10
Fixed · RHSA-2018:3533
Red Hat Enterprise Linux 7 Supplementary
java-1.7.1-ibm-1:1.7.1.4.35-1jpp.1.el7
Fixed · RHSA-2018:3672
Red Hat Enterprise Linux 7 Supplementary
java-1.8.0-ibm-1:1.8.0.5.25-1jpp.1.el7
Fixed · RHSA-2018:3534
Red Hat Satellite 5.6
java-1.7.1-ibm-1:1.7.1.4.35-1jpp.1.el6_10
Fixed · RHSA-2018:3779
Red Hat Satellite 5.7
java-1.7.1-ibm-1:1.7.1.4.35-1jpp.1.el6_10
Fixed · RHSA-2018:3779
Red Hat Satellite 5.8
java-1.8.0-ibm-1:1.8.0.5.25-1jpp.1.el6_10
Fixed · RHSA-2018:3852
Red Hat Enterprise Linux 5
libpng
Not affected
Red Hat Enterprise Linux 6
java-1.6.0-ibm
Will not fix
Red Hat Enterprise Linux 6
libpng
Not affected
Red Hat Enterprise Linux 7
libpng
Not affected
Red Hat Enterprise Linux 7
libpng12
Not affected
Red Hat Enterprise Linux 8
libpng
Not affected
Red Hat Enterprise Linux 8
libpng12
Not affected
Red Hat Virtualization 4
libpng
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Oracle Java for Red Hat Enterprise Linux 6 | java-1.6.0-sun-1:1.6.0.211-1jpp.1.el6 | Fixed | RHSA-2018:3008 |
| Oracle Java for Red Hat Enterprise Linux 6 | java-1.7.0-oracle-1:1.7.0.201-1jpp.1.el6 | Fixed | RHSA-2018:3000 |
| Oracle Java for Red Hat Enterprise Linux 6 | java-1.8.0-oracle-1:1.8.0.191-1jpp.1.el6 | Fixed | RHSA-2018:3003 |
| Oracle Java for Red Hat Enterprise Linux 7 | java-1.6.0-sun-1:1.6.0.211-1jpp.1.el7 | Fixed | RHSA-2018:3007 |
| Oracle Java for Red Hat Enterprise Linux 7 | java-1.7.0-oracle-1:1.7.0.201-1jpp.1.el7 | Fixed | RHSA-2018:3001 |
| Oracle Java for Red Hat Enterprise Linux 7 | java-1.8.0-oracle-1:1.8.0.191-1jpp.1.el7 | Fixed | RHSA-2018:3002 |
| Red Hat Enterprise Linux 6 Supplementary | java-1.7.1-ibm-1:1.7.1.4.35-1jpp.1.el6_10 | Fixed | RHSA-2018:3671 |
| Red Hat Enterprise Linux 6 Supplementary | java-1.8.0-ibm-1:1.8.0.5.25-1jpp.1.el6_10 | Fixed | RHSA-2018:3533 |
| Red Hat Enterprise Linux 7 Supplementary | java-1.7.1-ibm-1:1.7.1.4.35-1jpp.1.el7 | Fixed | RHSA-2018:3672 |
| Red Hat Enterprise Linux 7 Supplementary | java-1.8.0-ibm-1:1.8.0.5.25-1jpp.1.el7 | Fixed | RHSA-2018:3534 |
| Red Hat Satellite 5.6 | java-1.7.1-ibm-1:1.7.1.4.35-1jpp.1.el6_10 | Fixed | RHSA-2018:3779 |
| Red Hat Satellite 5.7 | java-1.7.1-ibm-1:1.7.1.4.35-1jpp.1.el6_10 | Fixed | RHSA-2018:3779 |
| Red Hat Satellite 5.8 | java-1.8.0-ibm-1:1.8.0.5.25-1jpp.1.el6_10 | Fixed | RHSA-2018:3852 |
| Red Hat Enterprise Linux 5 | libpng | Not affected | n/a |
| Red Hat Enterprise Linux 6 | java-1.6.0-ibm | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | libpng | Not affected | n/a |
| Red Hat Enterprise Linux 7 | libpng | Not affected | n/a |
| Red Hat Enterprise Linux 7 | libpng12 | Not affected | n/a |
| Red Hat Enterprise Linux 8 | libpng | Not affected | n/a |
| Red Hat Enterprise Linux 8 | libpng12 | Not affected | n/a |
| Red Hat Virtualization 4 | libpng | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
AV:N/AC:M/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed May 29, 2026 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
- EPSS v4
Table of values (15 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 4.41% (0.04414) | 91.05th | v5 (v2026.06.15) |
| Jun 15, 2026 | 4.47% (0.04470) | 90.19th | v5 (v2026.06.15) |
| Apr 28, 2026 | 3.72% (0.03717) | 88.01th | v4 (v2025.03.14) |
| Mar 30, 2025 | 2.00% (0.02002) | 82.07th | v4 (v2025.03.14) |
| Mar 29, 2025 | 5.14% (0.05136) | 82.71th | v4 (v2025.03.14) |
| Mar 17, 2025 | 2.06% (0.02057) | 82.69th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.60% (0.00604) | 79.26th | v3 (v2023.03.01) |
| Apr 23, 2024 | 0.85% (0.00851) | 82.00th | v3 (v2023.03.01) |
| Nov 30, 2023 | 0.90% (0.00900) | 80.88th | v3 (v2023.03.01) |
| Sep 3, 2023 | 1.32% (0.01324) | 84.34th | v3 (v2023.03.01) |
| Mar 7, 2023 | 2.13% (0.02129) | 87.45th | v3 (v2023.03.01) |
| Mar 6, 2023 | 2.69% (0.02686) | 82.85th | v2 (v2022.01.01) |
| Feb 4, 2022 | 2.69% (0.02686) | 62.66th | v2 (v2022.01.01) |
| Feb 3, 2022 | 5.27% (0.05268) | 78.83th | v5 (v2026.06.15) |
| Apr 14, 2021 | 5.27% (0.05268) | 0.00th | v1 |
References (24)
- http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html x_refsource_CONFIRMPatchVendor Advisory
- http://www.securityfocus.com/bid/105599 vdb-entryx_refsource_BIDBroken LinkThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1041889 vdb-entryx_refsource_SECTRACKBroken LinkThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:3000 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3001 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3002 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3003 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3007 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3008 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3533 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3534 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3671 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3672 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3779 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3852 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2018-13785 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1599943 Issue Tracking
- https://github.com/glennrp/libpng/commit/8a05766cb74af05c04c53e6c9d60c13fc4d59bf2 x_refsource_MISCPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-13785
- https://security.gentoo.org/glsa/201908-10 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://security.netapp.com/advisory/ntap-20181018-0001/ x_refsource_CONFIRMThird Party Advisory
- https://sourceforge.net/p/libpng/bugs/278/ x_refsource_MISCThird Party Advisory
- https://usn.ubuntu.com/3712-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-13785
Change history (0)
No recorded changes yet.