← Vulnerability feed

Vulnerability record · CVE-2017-6004 · published 16 February 2017

CVE-2017-6004: Pcre out-of-bounds read vulnerability

Pcre · Pcre

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.

7.5 CVSS 3.0 High EPSS 4.5% · top 8.7% CWE-125 · Out-of-bounds read
7.5CVSS 3.0 base score, v2 5.0
4.5%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
16References
17 Jun 2026Last modified by NVD

Description

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.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2017-6004 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2015-3210Pcre2 out-of-bounds write vulnerabilityHeap-based buffer overflow in PCRE 8.34 through 8.37 and PCRE2 10.10 allows remote attackers to execute arbitrary code via a crafted regular expressi…EPSS 9.2%9.8CVE-2016-3191Pcre memory buffer overflow vulnerabilityThe compile_branch function in pcre_compile.c in PCRE 8.x before 8.39 and pcre2_compile.c in PCRE2 before 10.22 mishandles patterns containing an (*A…EPSS 8.4%9.8CVE-2016-1283Pcre memory buffer overflow vulnerabilityThe pcre_compile2 function in pcre_compile.c in PCRE 8.38 mishandles the /((?:F?+(?:^(?(R)a+\"){99}-))(?J)(?'R'(?'R'<((?'RR'(?'R'\){97)?J)?J)(?'R'(?'…EPSS 7.8%9.8CVE-2015-8391Pcre memory buffer overflow vulnerabilityThe pcre_compile function in pcre_compile.c in PCRE before 8.38 mishandles certain [: nesting, which allows remote attackers to cause a denial of ser…EPSS 6.4%9.1CVE-2015-5073Ibm powerkvm memory buffer overflow vulnerabilityHeap-based buffer overflow in the find_fixedlength function in pcre_compile.c in PCRE before 8.38 allows remote attackers to cause a denial of servic…EPSS 7.7%7.8CVE-2015-2325Pcre out-of-bounds read vulnerabilityThe compile_branch function in PCRE before 8.37 allows context-dependent attackers to compile incorrect code, cause a denial of service (out-of-bound…EPSS 1.6%7.8CVE-2017-7245Pcre memory buffer overflow vulnerabilityStack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of…EPSS 2.4%7.8CVE-2017-7246Pcre memory buffer overflow vulnerabilityStack-based buffer overflow in the pcre32_copy_substring function in pcre_get.c in libpcre1 in PCRE 8.40 allows remote attackers to cause a denial of…EPSS 2.6%

Source: NIST National Vulnerability Database (record CVE-2017-6004), CISA KEV, FIRST EPSS (scores of 2026-10-10). This page is refreshed as NVD updates the record.