What’s Vulnerable › Vulnerabilities
CVE-2017-16642
- Severity: high (CVSS 7.5 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 26.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2017-11-07 · updated 2026-06-17
- Weakness: CWE-125
Description
In PHP before 5.6.32, 7.x before 7.0.25, and 7.1.x before 7.1.11, an error in the date extension's timelib_meridian handling of 'front of' and 'back of' directives could be used by attackers able to supply date strings to leak information from the interpreter, related to ext/date/lib/parse_date.c out-of-bounds reads affecting the php_parse_date function. NOTE: this is a different issue than CVE-2017-11145.
Affected products
- Canonical Ubuntu Linux: 14.04
- Debian Linux: 8.0, 9.0
- Clustered Data ONTAP: all versions
- NetApp Storage Automation Store: all versions
- PHP: before 5.6.32; from 7.0.0 before 7.0.25; from 7.1.0 before 7.1.11 — fixed in 5.6.32, 7.0.25, 7.1.11
How to fix
Upgrade to a fixed version: PHP 5.6.32, 7.0.25, 7.1.11. Check the vendor advisory for mitigations.
References
- http://php.net/ChangeLog-5.php
- http://php.net/ChangeLog-7.php
- http://www.securityfocus.com/bid/101745
- https://access.redhat.com/errata/RHSA-2018:1296
- https://access.redhat.com/errata/RHSA-2019:2519
- https://bugs.php.net/bug.php?id=75055
- https://github.com/derickr/timelib/commit/aa9156006e88565e1f1a5f7cc088b18322d57536
- https://github.com/php/php-src/commit/5c0455bf2c8cd3c25401407f158e820aa3b239e1
- https://security.netapp.com/advisory/ntap-20181123-0001/
- https://usn.ubuntu.com/3566-1/
- https://www.debian.org/security/2018/dsa-4080
- https://www.debian.org/security/2018/dsa-4081
Get alerted when CVE-2017-16642 or the next vulnerability affects your stack