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)....
HighCVSS 7.5
EPSS 42.1%
PoC
- Published
- Updated
- Exploit status
- Proof-of-concept only
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.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | <= 5.3.13 | No fix listed |
| PHP | >= 5.4.0, < 5.4.4 | 5.4.4 |
References
- 0x1byte.blogspot.com exploit third-party-advisory
- git.php.net
- APPLE-SA-2012-09-19-2 mailing-list third-party-advisory vendor-advisory
- SUSE-SU-2012:0840 mailing-list third-party-advisory vendor-advisory
- [oss-security] 20120522 Re: CVE request: PHP Phar - arbitrary code execution mailing-list third-party-advisory
- support.apple.com third-party-advisory
- www.php.net vendor-advisory
- bugs.php.net vendor-advisory
- bugzilla.redhat.com issue-tracking third-party-advisory