Back
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…
High7.5EPSS 42.5%
- Published
- Updated
- Reserved
- Assigned by
- redhat
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 42.5% · top 1.3% of all CVEs (3 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
Affected products
n/a
- affected n/a
References (9)
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=158d8a6b088662ce9d31e0c777c6ebe90efdc854 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://bugzilla.redhat.com/show_bug.cgi?id=823594 (opens in a new tab)x_refsource_CONFIRMx_transferred
- SUSE-SU-2012:0840 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- https://bugs.php.net/bug.php?id=61065 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://www.php.net/ChangeLog-5.php (opens in a new tab)x_refsource_CONFIRMx_transferred
- APPLE-SA-2012-09-19-2 (opens in a new tab)vendor-advisoryx_refsource_APPLEx_transferred
- http://support.apple.com/kb/HT5501 (opens in a new tab)x_refsource_CONFIRMx_transferred
- [oss-security] 20120522 Re: CVE request: PHP Phar - arbitrary code execution (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://0x1byte.blogspot.com/2011/04/php-phar-extension-heap-overflow.html (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2012-2386)Record last updated .