{"id":"CVE-2012-2386","url":"https://www.cyber-defence.io/tools/cve/CVE-2012-2386","generatedAt":"2026-10-27T17:56:34.821Z","title":"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…","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.","published":"2012-07-07T10:21:13.000Z","lastModified":"2026-06-16T23:41:28.000Z","status":"Modified","sourceIdentifier":"secalert@redhat.com","cvss":{"version":"2.0","score":7.5,"severity":"HIGH","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P"},"cwe":["CWE-189"],"affected":["php/php"],"epss":{"score":0.42481,"percentile":0.98696,"date":"2026-10-26","history":[]},"kev":{"listed":false},"exploits":{"count":1,"verified":false,"firstPublished":"2011-04-22","source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[{"edbId":17201,"kind":"exploit","title":"PHP 'phar' Extension 1.1.1 - Heap Overflow","url":"https://www.exploit-db.com/exploits/17201","sourceUrl":"https://gitlab.com/exploit-database/exploitdb/-/blob/main/exploits/multiple/dos/17201.php","file":"exploits/multiple/dos/17201.php","published":"2011-04-22","added":"2011-04-22","updated":"2015-04-22","author":"Alexander Gavrun","type":"dos","platform":"multiple","port":null,"verified":false,"codes":["OSVDB-72399","CVE-2012-2386"],"tags":null,"aliases":"poc.phar.tar","applicationUrl":null,"screenshotUrl":null,"referenceUrl":null}]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 42.5%, higher than 99% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"http://0x1byte.blogspot.com/2011/04/php-phar-extension-heap-overflow.html","tags":["Exploit","Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=158d8a6b088662ce9d31e0c777c6ebe90efdc854","source":"secalert@redhat.com"},{"url":"http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html","tags":["Mailing List","Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.html","tags":["Mailing List","Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"http://openwall.com/lists/oss-security/2012/05/22/10","tags":["Mailing List","Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"http://support.apple.com/kb/HT5501","tags":["Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"http://www.php.net/ChangeLog-5.php","tags":["Vendor Advisory"],"source":"secalert@redhat.com"},{"url":"https://bugs.php.net/bug.php?id=61065","tags":["Vendor Advisory"],"source":"secalert@redhat.com"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=823594","tags":["Issue Tracking","Third Party Advisory"],"source":"secalert@redhat.com"},{"url":"http://0x1byte.blogspot.com/2011/04/php-phar-extension-heap-overflow.html","tags":["Exploit","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=158d8a6b088662ce9d31e0c777c6ebe90efdc854","source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.html","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://openwall.com/lists/oss-security/2012/05/22/10","tags":["Mailing List","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://support.apple.com/kb/HT5501","tags":["Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://www.php.net/ChangeLog-5.php","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugs.php.net/bug.php?id=61065","tags":["Vendor Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=823594","tags":["Issue Tracking","Third Party Advisory"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2012-2386","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}