Public Date:
823594: CVE-2012-2386 php: Integer overflow leading to heap-buffer overflow in the Phar extension

The MITRE CVE dictionary describes this issue as:

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.

Find out more about CVE-2012-2386 from the MITRE CVE dictionary dictionary and NIST NVD.


This issue did not affect the version of php as shipped with Red Hat Enterprise Linux 5 as it did not include support for phar extension yet. This issue was addressed in php53 package for Red Hat Enterprise Linux 5 via RHSA-2012:1047 and in php package for Red Hat Enterprise Linux 6 via RHSA-2012:1046.

CVSS v2 metrics

NOTE: The following CVSS v2 metrics and score provided are preliminary and subject to review.

Base Score 6.8
Base Metrics AV:N/AC:M/Au:N/C:P/I:P/A:P
Access Vector Network
Access Complexity Medium
Authentication None
Confidentiality Impact Partial
Integrity Impact Partial
Availability Impact Partial

Find out more about Red Hat support for the Common Vulnerability Scoring System (CVSS).

Red Hat Security Errata

Platform Errata Release Date
Red Hat Enterprise Linux version 5 (php53) RHSA-2012:1047 2012-06-27
Red Hat Enterprise Linux version 6 (php) RHSA-2012:1046 2012-06-27

Affected Packages State

Platform Package State
Red Hat Enterprise Linux 5 php Not affected