Am I affected?
CVE-2017-16642
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.
Not in the CISA KEV catalog as of the last sync. That means no confirmed exploitation is listed there, not that it is safe.
Exploit probability (FIRST EPSS): 26.4% chance of exploitation activity in the next 30 days (top 2% of all scored CVEs), scored 2026-11-23. EPSS is a likelihood estimate, not proof of attacks.
Check your PHP version
Fixed versions by branch
| Branch | Affected (NVD) | Fixed in |
|---|---|---|
| PHP 7.1 | 7.1.0 (including) to 7.1.11 (excluding) | 7.1.11 |
| PHP 7.0 | 7.0.0 (including) to 7.0.25 (excluding) | 7.0.25 |
| PHP 5.6 | PHP 5.6 only, before 5.6.32 | 5.6.32 |
"Fixed in" is shown only when the source gives an exact upper bound. Any later patch in the same branch also has the fix. Linux distributions (Ubuntu, Debian, RHEL) often backport fixes without changing the PHP version number.
Related CVEs
Other PHP CVEs that NVD lists for the same branches.
- CVE-2017-12933 Critical 9.8 · PHP 7.1, 7.0, 5.6 · 2017-08-18
- CVE-2017-9224 Critical 9.8 · PHP 7.1, 7.0, 5.6 · 2017-05-24
- CVE-2017-9226 Critical 9.8 · PHP 7.1, 7.0, 5.6 · 2017-05-24
- CVE-2017-9227 Critical 9.8 · PHP 7.1, 7.0, 5.6 · 2017-05-24
- CVE-2017-9228 Critical 9.8 · PHP 7.1, 7.0, 5.6 · 2017-05-24
- CVE-2016-10160 Critical 9.8 · PHP 7.1, 7.0, 5.6 · 2017-01-24
Questions
- Which PHP versions are affected by CVE-2017-16642?
- NVD lists these affected ranges: 7.1.0 (including) to 7.1.11 (excluding); 7.0.0 (including) to 7.0.25 (excluding); PHP 5.6 only, before 5.6.32.
- Which PHP version fixes CVE-2017-16642?
- According to NVD, the fix is in PHP 7.1.11, 7.0.25, 5.6.32 (upgrade to that release or any later patch in the same branch).
- Does a version check prove my server is safe from CVE-2017-16642?
- No. The SAPI, web server, operating system, loaded extensions and configuration change whether a bug can be reached, and Linux distributions often backport fixes without changing the upstream version number.
Sources: CVE-2017-16642 on NIST NVD. NVD data synced 2026-11-24T03:47:46.548Z. See all PHP CVEs in the CVE explorer.