CVE-2018-13785

Source
https://cve.org/CVERecord?id=CVE-2018-13785
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-13785.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2018-13785
Downstream
Related
Published
2018-07-09T13:29:00.443Z
Modified
2026-07-08T17:15:23.589504Z
Severity
  • 6.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges": [
        {
            "cpes": [
                "cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*",
                "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"
            ],
            "extracted_events": [
                {
                    "introduced": "14.04"
                },
                {
                    "last_affected": "14.04"
                },
                {
                    "introduced": "16.04"
                },
                {
                    "last_affected": "16.04"
                },
                {
                    "introduced": "17.10"
                },
                {
                    "last_affected": "17.10"
                },
                {
                    "introduced": "18.04"
                },
                {
                    "last_affected": "18.04"
                }
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "source": "CPE_STRING"
        },
        {
            "cpes": [
                "cpe:2.3:a:oracle:jdk:1.6.0:update201:*:*:*:*:*:*",
                "cpe:2.3:a:oracle:jdk:1.7.0:update191:*:*:*:*:*:*",
                "cpe:2.3:a:oracle:jdk:1.8.0:update181:*:*:*:*:*:*",
                "cpe:2.3:a:oracle:jdk:11.0.0:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "introduced": "1.6.0-update201"
                },
                {
                    "last_affected": "1.6.0-update201"
                },
                {
                    "introduced": "1.7.0-update191"
                },
                {
                    "last_affected": "1.7.0-update191"
                },
                {
                    "introduced": "1.8.0-update181"
                },
                {
                    "last_affected": "1.8.0-update181"
                },
                {
                    "introduced": "11.0.0"
                },
                {
                    "last_affected": "11.0.0"
                }
            ],
            "vendor_product": "oracle:jdk",
            "source": "CPE_STRING"
        },
        {
            "cpes": [
                "cpe:2.3:a:oracle:jre:1.6.0:update201:*:*:*:*:*:*",
                "cpe:2.3:a:oracle:jre:1.7.0:update191:*:*:*:*:*:*",
                "cpe:2.3:a:oracle:jre:1.8.0:update181:*:*:*:*:*:*",
                "cpe:2.3:a:oracle:jre:11.0.0:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "introduced": "1.6.0-update201"
                },
                {
                    "last_affected": "1.6.0-update201"
                },
                {
                    "introduced": "1.7.0-update191"
                },
                {
                    "last_affected": "1.7.0-update191"
                },
                {
                    "introduced": "1.8.0-update181"
                },
                {
                    "last_affected": "1.8.0-update181"
                },
                {
                    "introduced": "11.0.0"
                },
                {
                    "last_affected": "11.0.0"
                }
            ],
            "vendor_product": "oracle:jre",
            "source": "CPE_STRING"
        },
        {
            "cpes": [
                "cpe:2.3:o:redhat:enterprise_linux_desktop:6.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:redhat:enterprise_linux_desktop:7.0:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "introduced": "6.0"
                },
                {
                    "last_affected": "6.0"
                },
                {
                    "introduced": "7.0"
                },
                {
                    "last_affected": "7.0"
                }
            ],
            "vendor_product": "redhat:enterprise_linux_desktop",
            "source": "CPE_STRING"
        },
        {
            "cpes": [
                "cpe:2.3:o:redhat:enterprise_linux_server:6.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:redhat:enterprise_linux_server:7.0:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "introduced": "6.0"
                },
                {
                    "last_affected": "6.0"
                },
                {
                    "introduced": "7.0"
                },
                {
                    "last_affected": "7.0"
                }
            ],
            "vendor_product": "redhat:enterprise_linux_server",
            "source": "CPE_STRING"
        },
        {
            "cpes": [
                "cpe:2.3:o:redhat:enterprise_linux_workstation:6.0:*:*:*:*:*:*:*",
                "cpe:2.3:o:redhat:enterprise_linux_workstation:7.0:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
                {
                    "introduced": "6.0"
                },
                {
                    "last_affected": "6.0"
                },
                {
                    "introduced": "7.0"
                },
                {
                    "last_affected": "7.0"
                }
            ],
            "vendor_product": "redhat:enterprise_linux_workstation",
            "source": "CPE_STRING"
        }
    ]
}
References

Affected packages

Git / github.com/pnggroup/libpng

Affected ranges

Type
GIT
Repo
https://github.com/pnggroup/libpng
Events
Database specific
{
    "cpe": "cpe:2.3:a:libpng:libpng:1.6.34:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "1.6.34"
        },
        {
            "last_affected": "1.6.34"
        }
    ],
    "source": [
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

1.*
1.6.34
v1.*
v1.6.34
v1.6.35beta01

Database specific

vanir_signatures_modified
"2026-07-08T17:15:23Z"
vanir_signatures
[
    {
        "target": {
            "function": "png_check_chunk_length",
            "file": "pngrutil.c"
        },
        "id": "CVE-2018-13785-a84a3113",
        "digest": {
            "function_hash": "282460725215391584583494778972512461376",
            "length": 987.0
        },
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Function",
        "source": "https://github.com/pnggroup/libpng/commit/8a05766cb74af05c04c53e6c9d60c13fc4d59bf2"
    },
    {
        "target": {
            "file": "pngrutil.c"
        },
        "id": "CVE-2018-13785-f0bc505a",
        "digest": {
            "line_hashes": [
                "107966026133260924818778745914586419456",
                "256164953430444557586735334527917876014",
                "73440847196266064536662526583930052559",
                "135968293059614300638946458008389177687",
                "325492539394967073006475273665072020765",
                "106295171231175941086144928405087290842",
                "18891773824478661748387439301515208175"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "signature_version": "v1",
        "signature_type": "Line",
        "source": "https://github.com/pnggroup/libpng/commit/8a05766cb74af05c04c53e6c9d60c13fc4d59bf2"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-13785.json"