CVE-2016-10160: Off-by-one error in the phar_parse_pharfile function in ext/phar/phar.c in PHP before 5.6.30 and 7.0.x before 7.0.15 allows remote attack…

CVE-2016-10160 affects 4 listed versions of PHP in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
7%EPSS (next 30 days)
24 January 2017published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PHP

4 of 250 listed versions are affected. Fixed in 5.6.30. The newest release, 8.6.0, is not affected.

5.6.29 5.6.28 5.6.27 5.6.26

What it is

Off-by-one error in the phar_parse_pharfile function in ext/phar/phar.c in PHP before 5.6.30 and 7.0.x before 7.0.15 allows remote attackers to cause a denial of service (memory corruption) or possibly execute arbitrary code via a crafted PHAR archive with an alias mismatch.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by MITRE on 24 January 2017. Last changed 17 June 2026.

Sources

Check one version you run: look CVE-2016-10160 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.