SecurityContext

CVE-2012-2386: PHP - Integer Overflow

  • Cve: CVE-2012-2386
  • Name: PHP - Integer Overflow
  • 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.
  • Impact: Attackers can cause application crashes or execute arbitrary code, leading to potential full system compromise.
  • Remediation: Update PHP to version 5.3.14, 5.4.4, or later versions where the issue is fixed.
  • Vulnerability type: integer_overflow
  • Vulnerability impact: denial_of_service, remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:P/A:P
  • Epss score: 0.4211
  • Epss percentile: 0.98725
  • Assignee: [email protected]
  • Published at: 2012-07-07T10:21:13Z
  • Age in days: 5253
  • Modified at: 2026-06-16T23:41:27Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 9
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2012-2386
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements

Cwe

IdName
CWE-189—

Hackerone

  • Reports: 3
  • Rank: 3235

Public exploits

UrlSourceAdded date
http://0x1byte.blogspot.com/2011/04/php-phar-extension-heap-overflow.htmlnvd2012-07-07

References

Same in every row:

  • Source: nvd
UrlTags
http://www.php.net/ChangeLog-5.phpVendor Advisory
https://bugs.php.net/bug.php?id=61065Vendor Advisory
http://0x1byte.blogspot.com/2011/04/php-phar-extension-heap-overflow.htmlExploit, Third Party Advisory
http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.htmlMailing List, Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.htmlMailing List, Third Party Advisory
http://openwall.com/lists/oss-security/2012/05/22/10Mailing List, Third Party Advisory
http://support.apple.com/kb/HT5501Third Party Advisory
https://bugzilla.redhat.com/show_bug.cgi?id=823594Issue Tracking, Third Party Advisory
http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=158d8a6b088662ce9d31e0c777c6ebe90efdc854

Products

ProductAffectedPlatform boundSourcesUrl
php:php>= 5.4.0, < 5.4.4; <= 5.3.13nonvd/v1/products/php/php

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2012-07-07
  • Remote: yes
  • Hackerone reports: 3
  • Exposed hosts: 6175026
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since