CVE-2017-16642 in the critical feed json
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'…
published 9y ago modified 4mo ago also EUVD-2017-7829
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 26.4%
- EPSS 26.4% chance of exploitation in 30 days, percentile 98%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- php php 5.6.32, 7.0.25, 7.1.11
- php5 Ubuntu 14.04 LTS 5.5.9+dfsg-1ubuntu4.23
- php7.0 Ubuntu 16.04 LTS 7.0.25-0ubuntu0.16.04.1
ubuntu advisories UBUNTU-CVE-2017-16642
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- rh-php71-php RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-gd RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-cli RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-dba RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-dbg RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-fpm RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-gmp RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
- rh-php71-php-pdo RHEL 3 SOFTWARE_COLLECTIONS 7.1.30-1.el7
red hat advisories RHSA-2019:2519RHSA-2018:1296
- php53 SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 5.3.17-112.10.1
- php5 SLE Software Development Kit 12 SP3, SLE Software Development Kit 12 SP2, SLE Module for Web and Scripting 12 5.5.14-109.13.1
- php7 SLE Software Development Kit 12 SP3, SLE Software Development Kit 12 SP2, SLE Module for Web and Scripting 12 7.0.7-50.23.1
suse advisories SUSE-SU-2018:0003-1SUSE-SU-2017:3277-1SUSE-SU-2017:3237-1
Is CVE-2017-16642 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2017-16642 updated cvss 2.9
php: Out-of-bound read in timelib_meridian()
-
Red Hat Enterprise Linux 5 php, php53 Red Hat Enterprise Linux 6 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +20 more Red Hat Enterprise Linux 7 php, php-gd, php-cli, php-dba, php-fpm, php-pdo, +18 more Red Hat Software Collections rh-php56-php, rh-php56-php-gd, rh-php56-php-cli, rh-php56-php-dba, rh-php56-php-dbg, rh-php56-php-fpm, +22 moreaffected: no fix planned “Will not fix”
-
Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php70-php 7.0.27-1.el7, rh-php71-php 7.1.30-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, +50 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-php70-php 7.0.27-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, rh-php70-php-dbg 7.0.27-1.el7, rh-php70-php-fpm 7.0.27-1.el7, +22 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-php70-php 7.0.27-1.el7, rh-php71-php 7.1.30-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, +50 more Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-php70-php 7.0.27-1.el7, rh-php71-php 7.1.30-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, +50 morefixed: vendor fix RHSA-2018:1296
-
Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.6) rh-php71-php 7.1.30-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php71-php-cli 7.1.30-1.el7, rh-php71-php-dba 7.1.30-1.el7, rh-php71-php-dbg 7.1.30-1.el7, rh-php71-php-fpm 7.1.30-1.el7, +22 morefixed: vendor fix RHSA-2019:2519
-
Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-php70-php 7.0.27-1.el6, rh-php70-php-gd 7.0.27-1.el6, rh-php70-php-cli 7.0.27-1.el6, rh-php70-php-dba 7.0.27-1.el6, rh-php70-php-dbg 7.0.27-1.el6, rh-php70-php-fpm 7.0.27-1.el6, +24 more Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php70-php 7.0.27-1.el7, rh-php71-php 7.1.30-1.el7, rh-php70-php-gd 7.0.27-1.el7, rh-php71-php-gd 7.1.30-1.el7, rh-php70-php-cli 7.0.27-1.el7, rh-php70-php-dba 7.0.27-1.el7, +50 morefixed: vendor fix RHSA-2018:1296
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-43133)
Exploit prediction
26.37% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- EDB-43133 PHP 7.1.8 - Heap Buffer Overflow dos, 2017-11-09
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
- Technology feeds
References
-
github.com
/derickr/timelib/commit/aa9156006e88565e1f1a5f7cc088b18322d57536
issue-tracking, patch, third-party-advisory
-
github.com
/php/php-src/commit/5c0455bf2c8cd3c25401407f158e820aa3b239e1
issue-tracking, patch, third-party-advisory
-
exploit-db.com
/exploits/43133/
exploit, issue-tracking, third-party-advisory, vdb-entry
-
access.redhat.com
/errata/RHSA-2018:1296
vendor-advisory, third-party-advisory
-
debian.org
/security/2018/dsa-4081
vendor-advisory, third-party-advisory
-
debian.org
/security/2018/dsa-4080
vendor-advisory, third-party-advisory
-
usn.ubuntu.com
/3566-1/
vendor-advisory, third-party-advisory
-
access.redhat.com
/errata/RHSA-2019:2519
vendor-advisory
-
bugs.php.net
/bug.php?id=75055
issue-tracking, vendor-advisory
-
php.net
/ChangeLog-5.php
issue-tracking, release-notes, vendor-advisory
-
php.net
/ChangeLog-7.php
issue-tracking, release-notes, vendor-advisory
-
security.netapp.com
/advisory/ntap-20181123-0001/
third-party-advisory
-
securityfocus.com
/bid/101745
vdb-entry, third-party-advisory
Sources
- CVE List CVE-2017-16642
- NVD CVE-2017-16642
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.