CVE-2012-2386

Summary

CVECVE-2012-2386
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2012-07-07 10:21:13 UTC
Updated2026-04-29 01:13:23 UTC
DescriptionInteger 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.

Risk And Classification

Primary CVSS: v2.0 7.5 from [email protected]

AV:N/AC:L/Au:N/C:P/I:P/A:P

Problem Types: CWE-189 | n/a

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial

AV:N/AC:L/Au:N/C:P/I:P/A:P

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Php Php All All All All
Application Php Php All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
oss-security - Re: CVE request: PHP Phar - arbitrary code execution af854a3a-2127-422b-91ae-364da2661108 openwall.com Mailing List, Third Party Advisory
[security-announce] SUSE-SU-2012:0840-1: important: Security update for af854a3a-2127-422b-91ae-364da2661108 lists.opensuse.org Mailing List, Third Party Advisory
PHP: PHP 5 ChangeLog af854a3a-2127-422b-91ae-364da2661108 www.php.net Vendor Advisory
About the security content of OS X Mountain Lion v10.8.2, OS X Lion v10.7.5 and Security Update 2012-004 af854a3a-2127-422b-91ae-364da2661108 support.apple.com Third Party Advisory
Bug 823594 – CVE-2012-2386 php: Integer overflow leading to heap-buffer overflow in the Phar extension af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com Issue Tracking, Third Party Advisory
208.43.231.11 Git - php-src.git/commit af854a3a-2127-422b-91ae-364da2661108 git.php.net
PHP :: You must be logged in af854a3a-2127-422b-91ae-364da2661108 bugs.php.net Vendor Advisory
0x1byte's blog: PHP (phar extension) heap overflow af854a3a-2127-422b-91ae-364da2661108 0x1byte.blogspot.com Exploit, Third Party Advisory
APPLE-SA-2012-09-19-2 OS X Mountain Lion v10.8.2, OS X Lion v10.7.5 and Security Update 2012-004 af854a3a-2127-422b-91ae-364da2661108 lists.apple.com Mailing List, Third Party Advisory
208.43.231.11 Git - php-src.git/commit MITRE git.php.net
Red Hat Customer Portal MITRE access.redhat.com
Red Hat Customer Portal MITRE access.redhat.com
CVE-2012-2386 - Red Hat Customer Portal MITRE access.redhat.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report