Junglewise Threat Intelligence

CVE-2016-10160: PHP off-by-one error in phar_parse_pharfile

CVE-2016-10160 · Severity: critical · CVSS 9.8 · Published 2017-01-24

Technologies: Debian Linux, PHP Group PHP. Vendors: NetApp, Debian, PHP Group, PHP.

Executive brief

PHP is a widely used programming language for web development. A flaw in how it handles PHAR archive files allows an attacker to send a specially crafted file that can crash the server or potentially allow the attacker to run unauthorized code. This could lead to a total compromise of the web server and any data it manages.

Technical details

An off-by-one error exists in the 'phar_parse_pharfile' function within 'ext/phar/phar.c' in PHP. The vulnerability is triggered when processing a crafted PHAR archive that contains an alias mismatch. This memory corruption flaw can be exploited by a remote, unauthenticated attacker to cause a denial of service (crash) or potentially achieve remote code execution (RCE). The issue was addressed in PHP versions 5.6.30 and 7.0.15.

Affected products

  • PHP PHP before 5.6.30, 7.0.x before 7.0.15

Timeline

  • 2017-01-24: advisory: NVD publication date
  • 2017-01-19: patched: PHP 5.6.30 release date

References

Related threats