Vulnerabilities · 2012 · Php
CVE-2012-2386
Php vulnerability
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
Php. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- www.php.net/ChangeLog-5.php · Vendor Advisory
- bugs.php.net/bug.php?id=61065 · Vendor Advisory
- 0x1byte.blogspot.com/2011/04/php-phar-extension-heap-overflow.html · Exploit
- lists.apple.com/archives/security-announce/2012/Sep/msg00004.html · Third Party Advisory
- lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.html · Third Party Advisory
- openwall.com/lists/oss-security/2012/05/22/10 · Third Party Advisory
- support.apple.com/kb/HT5501 · Third Party Advisory
- bugzilla.redhat.com/show_bug.cgi?id=823594 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2012-2386
- cve.org/CVERecord?id=CVE-2012-2386
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.