CVE-2012-2386Php
High 7.5 No auth neededHigh EPSS
Follow: this CVE · Php · Php We alert you by email or Slack (account required).
- Priority
- 64
- CVSS 2.0
- 7.5
- EPSS
- 42.1% probability of exploitation in 30 days · percentile 99
- Auth required
- No
- Published
- Jul 7, 2012
- Updated
- Jun 16, 2026
- Category
- Web application · Cross-platform
- Weakness (CWE)
- CWE-189
- Vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
What happens
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.
What to do
- Apply the vendor's security update for Php.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| php | php | ≤ 5.3.13 |
| php | php | ≥ 5.4.0 < 5.4.4 |
Official sources
References
Links published by the sources. Open them with care.
- 0x1byte.blogspot.com Exploit Third Party Advisory
- git.php.net
- lists.apple.com Mailing List Third Party Advisory
- lists.opensuse.org Mailing List Third Party Advisory
- openwall.com 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