CVE-2016-2554: Buffer Overflow

Published Feb 8, 2016
·
Updated

A stack overflow vulnerability was reported that may occur when decompressing tar archives due to phartarwriteheaders() potentially copying non-terminated linknames from entries parsed by pharparsetarfile().

Upstream bug:

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

Upstream patch:

https://git.php.net/?p=php-src.git;a=commit;h=07c7df68bd68bbe706371fccc77c814ebb335d9e

Other sources

Fixed bug (Stack overflow when decompressing tar archives). (CVE-2016-2554)

PHP

Stack-based buffer overflow in ext/phar/tar.c in PHP before 5.5.32, 5.6.x before 5.6.18, and 7.x before 7.0.3 allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted TAR archive.

Ubuntu

Affected Software

41 affected componentsFixes available
debian/php5
debian/php5.6
debian/php7.0
redhat/php<5.6.18
5.6.18
redhat/php<5.5.32
5.5.32
ubuntu/php5<5.3.10-1ubuntu3.22
5.3.10-1ubuntu3.22
ubuntu/php5<5.5.9+dfsg-1ubuntu4.16
5.5.9+dfsg-1ubuntu4.16
ubuntu/php5<5.6.18+dfsg-1
5.6.18+dfsg-1
ubuntu/php5<5.6.11+dfsg-1ubuntu3.2
5.6.11+dfsg-1ubuntu3.2
ubuntu/php7.0<7.0.3-1
7.0.3-1
PHP PHP=7.0.0
PHP PHP=7.0.1
PHP PHP=7.0.2
PHP PHP<=5.5.31
PHP PHP=5.6.0-alpha1
PHP PHP=5.6.0-alpha2
PHP PHP=5.6.0-alpha3
PHP PHP=5.6.0-alpha4
PHP PHP=5.6.0-alpha5
PHP PHP=5.6.0-beta1
PHP PHP=5.6.0-beta2
PHP PHP=5.6.0-beta3
PHP PHP=5.6.0-beta4
PHP PHP=5.6.1
PHP PHP=5.6.2
PHP PHP=5.6.3
PHP PHP=5.6.4
PHP PHP=5.6.5
PHP PHP=5.6.6
PHP PHP=5.6.7
PHP PHP=5.6.8
PHP PHP=5.6.9
PHP PHP=5.6.10
PHP PHP=5.6.11
PHP PHP=5.6.12
PHP PHP=5.6.13
PHP PHP=5.6.14
PHP PHP=5.6.15
PHP PHP=5.6.16
PHP PHP=5.6.17
PHP PHP<7.0.3
7.0.3

Event History

Feb 25, 2016
CVE Published
via Ubuntu·12:00 AM
May 16, 2016
CVE Published
via MITRE·10:00 AM
Data Sourced
via MITRE·10:00 AM
Description
Jan 11, 2024
Data Sourced
via Launchpad·10:16 PM
Description

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is CVE-2016-2554?

CVE-2016-2554 refers to a stack-based buffer overflow vulnerability in PHP before 5.5.32, 5.6.x before 5.6.18, and 7.x before 7.0.3.

2

How severe is CVE-2016-2554?

CVE-2016-2554 has a severity rating of 9.8 (critical).

3

How does CVE-2016-2554 impact PHP?

CVE-2016-2554 can allow remote attackers to cause a denial of service (application crash) or potentially have other unspecified impacts via a crafted TAR archive.

4

Which versions of PHP are affected by CVE-2016-2554?

The vulnerability affects PHP versions before 5.5.32, 5.6.x before 5.6.18, and 7.x before 7.0.3.

5

How can I fix CVE-2016-2554?

To fix CVE-2016-2554, it is recommended to update PHP to version 5.5.32, 5.6.18, or 7.0.3 or later.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203