# CVE-2017-6004

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (NVD); no exploitation reported by the 5 checked sources; EPSS 5% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2017-02-16 · Modified: 2024-08-05
- Aliases: UBUNTU-CVE-2017-6004, DEBIAN-CVE-2017-6004
- Record: https://cvemate.com/vulnerability/CVE-2017-6004 · JSON: https://cvemate.com/vulnerability/CVE-2017-6004/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.0, NVD) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 4.546%, percentile 91.827%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian pcre3 (Debian): \< 2:8.39-2.1
- ubuntu pcre3 (Ubuntu): \< 2:8.38-3.1ubuntu0.1~esm2
- pcre pcre: ≤ 8.38

## References

- <https://vcs.pcre.org/pcre/code/trunk/pcre_jit_compile.c?r1=1676&r2=1680&view=patch>
- <https://security.gentoo.org/glsa/201706-11>
- <http://www.securitytracker.com/id/1037850>
- <http://www.securityfocus.com/bid/96295>
- <https://access.redhat.com/errata/RHSA-2018:2486>
- <https://bugs.exim.org/show_bug.cgi?id=2035>
- <https://lists.apache.org/thread.html/rf4c02775860db415b4955778a131c2795223f61cb8c6a450893651e4%40%3Cissues.bookkeeper.apache.org%3E>
- <https://lists.apache.org/thread.html/r58af02e294bd07f487e2c64ffc0a29b837db5600e33b6e698b9d696b%40%3Cissues.bookkeeper.apache.org%3E>
- <https://ubuntu.com/security/CVE-2017-6004>
- <https://ubuntu.com/security/notices/USN-5665-1>
- <https://www.cve.org/CVERecord?id=CVE-2017-6004>
- <https://security-tracker.debian.org/tracker/CVE-2017-6004>

---

Data as of 2026-12-05T13:08:06.923Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
