CVE-2017-6004 json
The compile_bracket_matchingpath function in pcre_jit_compile.c in PCRE through 8.x before revision 1680 (e.g., the PHP 7.1.1 bundled versi…
published 2017-02-16 9 y ago modified 2026-06-17 4 mo ago also EUVD-2017-15072
- cvss
- 7.5
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 4.5%
- EPSS 4.5% chance of exploitation in 30 days, percentile 91%
- public exploits
- 0
- none known
Summary
The compile_bracket_matchingpath function in pcre_jit_compile.c in PCRE through 8.x before revision 1680 (e.g., the PHP 7.1.1 bundled version) allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted regular expression.
Patch / fix
- pcre3 Debian 12 2:8.39-2.1
debian advisories DEBIAN-CVE-2017-6004
- pcre3 Ubuntu Pro 16.04 LTS 2:8.38-3.1ubuntu0.1~esm2
ubuntu advisories UBUNTU-CVE-2017-6004
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
- pcre SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +15 more 8.45-8.7.1
- selinux-policy SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +11 more 20140730-36.5.2
suse advisories SUSE-SU-2021:3652-1
Vendor 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-6004 updated cvss 7.5
pcre: Out-of-bounds read in compile_bracket_matchingpath function (8.41/3)
-
Red Hat Enterprise Linux 7 pcre, pcre-tools Red Hat JBoss Enterprise Web Server 1 httpd Red Hat JBoss Enterprise Web Server 2 jbcs-httpd24, jbcs-httpd24-runtime Red Hat JBoss Enterprise Web Server 3 httpd Red Hat Software Collections rh-php70-php, rh-php70-php-gd, rh-php70-php-cli, rh-php70-php-dba, rh-php70-php-dbg, rh-php70-php-fpm, +24 moreaffected: no fix planned “Will not fix”
-
Red Hat JBoss Core Servicesfixed: vendor fix RHSA-2018:2486
-
Red Hat Directory Server 8 pcre Red Hat Enterprise Linux 5 pcre Red Hat Enterprise Linux 6 pcre, glib2 Red Hat Enterprise Linux 7 glib2, glib2-fam, glib2-tests, virtuoso-opensource, virtuoso-opensource-utils Red Hat JBoss Web Server 3 pcre 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, +39 morenot affected: vulnerable code not present
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
Exploit prediction
4.55% chance of exploitation in the next 30 days, higher than 91% of all scored CVEs (FIRST EPSS, 2026-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:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
vcs.pcre.org
/pcre/code/trunk/pcre_jit_compile.c?r1=1676&r2=1680&view=patch
patch
-
security.gentoo.org
/glsa/201706-11
vendor-advisory
-
access.redhat.com
/errata/RHSA-2018:2486
vendor-advisory
-
securitytracker.com
/id/1037850
vdb-entry
-
securityfocus.com
/bid/96295
vdb-entry
-
bugs.exim.org
/show_bug.cgi?id=2035
issue-tracking, third-party-advisory, vdb-entry
-
lists.apache.org
/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E
mailing-list
Sources
- CVE List CVE-2017-6004
- NVD CVE-2017-6004
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.