CVE-2012-2386

critical

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.

References

https://bugzilla.redhat.com/show_bug.cgi?id=823594

https://bugs.php.net/bug.php?id=61065

http://www.php.net/ChangeLog-5.php

http://support.apple.com/kb/HT5501

http://openwall.com/lists/oss-security/2012/05/22/10

http://lists.opensuse.org/opensuse-security-announce/2012-07/msg00003.html

http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html

http://git.php.net/?p=php-src.git%3Ba=commit%3Bh=158d8a6b088662ce9d31e0c777c6ebe90efdc854

Details

Source: Mitre, NVD

Published: 2012-07-07

Updated: 2023-02-13

Risk Information

CVSS v2

Base Score: 7.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

Severity: High

CVSS v3

Base Score: 9.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Severity: Critical