php: Integer overflow leading to heap-buffer overflow in the Phar extension
Published Jul 7, 2012
7.5
HIGHCVSS 2.0
EPSS 42.48%
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.
Affected products
No data.
No data.
Red Hat Enterprise Linux 5
php53-0:5.3.3-13.el5_8
Fixed · RHSA-2012:1047
Red Hat Enterprise Linux 6
php-0:5.3.3-14.el6_3
Fixed · RHSA-2012:1046
Red Hat Enterprise Linux 5
php
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | php53-0:5.3.3-13.el5_8 | Fixed | RHSA-2012:1047 |
| Red Hat Enterprise Linux 6 | php-0:5.3.3-14.el6_3 | Fixed | RHSA-2012:1046 |
| Red Hat Enterprise Linux 5 | php | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
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.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (26 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 42.48% (0.42481) | 98.67th | v5 (v2026.06.15) |
| Jun 15, 2026 | 42.48% (0.42481) | 98.52th | v5 (v2026.06.15) |
| May 29, 2026 | 23.92% (0.23918) | 96.12th | v4 (v2025.03.14) |
| Mar 8, 2026 | 28.35% (0.28352) | 96.42th | v4 (v2025.03.14) |
| Dec 28, 2025 | 27.17% (0.27171) | 96.21th | v4 (v2025.03.14) |
| Dec 27, 2025 | 24.34% (0.24336) | 95.93th | v4 (v2025.03.14) |
| Dec 12, 2025 | 27.17% (0.27171) | 96.20th | v4 (v2025.03.14) |
| Oct 28, 2025 | 23.12% (0.23120) | 95.68th | v4 (v2025.03.14) |
| Oct 27, 2025 | 24.34% (0.24336) | 95.85th | v4 (v2025.03.14) |
| Oct 1, 2025 | 22.63% (0.22626) | 95.68th | v4 (v2025.03.14) |
| Aug 6, 2025 | 24.34% (0.24336) | 95.86th | v4 (v2025.03.14) |
| Mar 30, 2025 | 14.70% (0.14705) | 93.92th | v4 (v2025.03.14) |
| Mar 29, 2025 | 16.77% (0.16768) | 91.61th | v4 (v2025.03.14) |
| Mar 17, 2025 | 13.29% (0.13289) | 93.61th | v4 (v2025.03.14) |
| Feb 25, 2025 | 18.62% (0.18618) | 96.29th | v3 (v2023.03.01) |
| Jan 5, 2025 | 15.30% (0.15300) | 95.86th | v3 (v2023.03.01) |
| Dec 17, 2024 | 7.89% (0.07892) | 94.23th | v3 (v2023.03.01) |
| Nov 13, 2024 | 11.88% (0.11877) | 95.51th | v3 (v2023.03.01) |
| Mar 7, 2023 | 8.51% (0.08512) | 93.40th | v3 (v2023.03.01) |
| Mar 6, 2023 | 35.20% (0.35205) | 97.82th | v2 (v2022.01.01) |
| Feb 13, 2023 | 35.20% (0.35205) | 97.80th | v2 (v2022.01.01) |
| Feb 3, 2023 | 12.57% (0.12567) | 95.36th | v2 (v2022.01.01) |
| Dec 22, 2022 | 35.20% (0.35205) | 97.79th | v2 (v2022.01.01) |
| Sep 21, 2022 | 34.70% (0.34699) | 97.71th | v2 (v2022.01.01) |
| Jun 20, 2022 | 35.49% (0.35493) | 97.70th | v2 (v2022.01.01) |
| Feb 4, 2022 | 36.80% (0.36795) | 97.00th | v2 (v2022.01.01) |
References (12)
- http://0x1byte.blogspot.com/2011/04/php-phar-extension-heap-overflow.html x_refsource_MISCExploitThird Party Advisory
- http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=158d8a6b088662ce9d31e0c777c6ebe90efdc854 x_refsource_CONFIRM
- http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html vendor-advisoryx_refsource_APPLEMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://openwall.com/lists/oss-security/2012/05/22/10 mailing-listx_refsource_MLISTMailing ListThird Party Advisory
- http://support.apple.com/kb/HT5501 x_refsource_CONFIRMThird Party Advisory
- http://www.php.net/ChangeLog-5.php x_refsource_CONFIRMVendor Advisory
- https://access.redhat.com/security/cve/CVE-2012-2386 Vendor Advisory
- https://bugs.php.net/bug.php?id=61065 x_refsource_CONFIRMVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=823594 x_refsource_CONFIRMIssue TrackingThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2012-2386
- https://www.cve.org/CVERecord?id=CVE-2012-2386
Change history (0)
No recorded changes yet.