All vulnerabilities

Servers and applications

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) or possibly execute arbitrary code via a crafted tar file that triggers a heap-based buffer overflow.

Severity
High 7.5
Published
7 Jul 2012
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
5.4.4
Exploit chance
42% in the next 30 daysHigher than 98% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
CWE-189
Attack
Over the network · No login needed
Attacker can
Read some data · Change some data · Slow it down
CVSS vector
AV:N/AC:L/Au:N/C:P/I:P/A:P
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • Every version up to 5.3.13
  • From 5.4.0 before 5.4.4

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2012-2386
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2012-2386