CVE-2016-10160

Source
https://cve.org/CVERecord?id=CVE-2016-10160
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-10160.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2016-10160
Downstream
Related
Published
2017-01-24T21:59:00.227Z
Modified
2026-02-11T07:02:26.005624Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Off-by-one error in the pharparsepharfile function in ext/phar/phar.c in PHP before 5.6.30 and 7.0.x before 7.0.15 allows remote attackers to cause a denial of service (memory corruption) or possibly execute arbitrary code via a crafted PHAR archive with an alias mismatch.

References

Affected packages

Git / github.com/php/php-src

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-10160.json"
vanir_signatures
[
    {
        "id": "CVE-2016-10160-12d1fca6",
        "signature_type": "Function",
        "digest": {
            "function_hash": "291942526429879441159894536430346133521",
            "length": 2665.0
        },
        "signature_version": "v1",
        "source": "https://github.com/php/php-src/commit/9abbc3cc6d0f448435ca38bef694f671bf7303d8",
        "target": {
            "function": "_gd2GetHeader",
            "file": "ext/gd/libgd/gd_gd2.c"
        },
        "deprecated": false
    },
    {
        "id": "CVE-2016-10160-8d672808",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "261047710016479752139056947476062666898",
                "288684070520142348767897615574607424242",
                "112445893259989087932568962075639758748",
                "60755477067856805034010718087238629256",
                "249922762173586031901652948315750808437",
                "38755955305146916992902222194245576125",
                "250980629975730852784574285116812435575",
                "336350558396583384843201543601166535943"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/php/php-src/commit/b28b8b2fee6dfa6fcd13305c581bb835689ac3be",
        "target": {
            "file": "ext/phar/phar.c"
        },
        "deprecated": false
    },
    {
        "id": "CVE-2016-10160-a887e78f",
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "268808390959611610380382661363715926383",
                "332457077737297600470842301867489262455",
                "183820387990733455444215637150999073887",
                "296117839669516092864788658433251533836"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/php/php-src/commit/9abbc3cc6d0f448435ca38bef694f671bf7303d8",
        "target": {
            "file": "ext/gd/libgd/gd_gd2.c"
        },
        "deprecated": false
    }
]