Vulnerability in PHP
CVE-2012-2386
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 · last modified .
CVSS v2 metric
CVSS v2 base score 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.421, 98.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 4 other repositories (a85tract/Lancet, Live-Hack-CVE/CVE-2012-2386, mudongliang/LinuxFlaw, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- git.php.net/
- bugzilla.redhat.com/show_bug.cgi (Third Party Advisory, Issue Tracking)
- SUSE-SU-2012:0840 (vendor-advisory, Mailing List, Third Party Advisory)
- bugs.php.net/bug.php (Vendor Advisory)
- www.php.net/ChangeLog-5.php (Vendor Advisory)
- APPLE-SA-2012-09-19-2 (vendor-advisory, Mailing List, Third Party Advisory)
- support.apple.com/kb/HT5501 (Third Party Advisory)
- [oss-security] 20120522 Re: CVE request: PHP Phar - arbitrary code execution (mailing-list, Mailing List, Third Party Advisory)
- 0x1byte.blogspot.com/2011/04/php-phar-extension-heap-overflow.html (Exploit, Third Party Advisory)