{
    "id": "CVE-2012-2386",
    "published": "2012-07-07 10:21:13",
    "last_modified": "2026-06-16 23:41:27",
    "cvss_score": "7.5",
    "cvss_severity": "HIGH",
    "cvss_version": "2.0",
    "cvss_vector": "AV:N/AC:L/Au:N/C:P/I:P/A:P",
    "cwe": "CWE-189",
    "description": "Integer overflow in the phar_parse_tarfile function in tar.c in the phar extension in PHP before 5.3.14 and 5.4.x before 5.4.4 allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted tar file that triggers a heap-based buffer overflow.",
    "epss_score": "0.42481",
    "epss_percentile": "0.98661",
    "kev": 0,
    "kev_due": null,
    "has_exploit": 1,
    "updated_at": "2026-09-28 18:17:10",
    "priority": {
        "rank": 2,
        "label": "Patch early",
        "why": "A public exploit exists."
    },
    "products": [
        {
            "vendor": "php",
            "product": "php"
        }
    ],
    "kev_detail": null,
    "exploits": [
        {
            "source": "exploit-db",
            "ref_id": "17201",
            "title": "PHP 'phar' Extension 1.1.1 - Heap Overflow",
            "date": "2011-04-22",
            "url": "https://www.exploit-db.com/exploits/17201"
        }
    ],
    "refs_list": [
        "http://0x1byte.blogspot.com/2011/04/php-phar-extension-heap-overflow.html",
        "http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=158d8a6b088662ce9d31e0c777c6ebe90efdc854",
        "http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html",
        "http://lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.html",
        "http://openwall.com/lists/oss-security/2012/05/22/10",
        "http://support.apple.com/kb/HT5501",
        "http://www.php.net/ChangeLog-5.php",
        "https://bugs.php.net/bug.php?id=61065",
        "https://bugzilla.redhat.com/show_bug.cgi?id=823594",
        "http://0x1byte.blogspot.com/2011/04/php-phar-extension-heap-overflow.html",
        "http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=158d8a6b088662ce9d31e0c777c6ebe90efdc854",
        "http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html",
        "http://lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.html",
        "http://openwall.com/lists/oss-security/2012/05/22/10",
        "http://support.apple.com/kb/HT5501",
        "http://www.php.net/ChangeLog-5.php",
        "https://bugs.php.net/bug.php?id=61065",
        "https://bugzilla.redhat.com/show_bug.cgi?id=823594"
    ]
}