
CVE catalog
CVE-2017-6004
pcre3: CVE-2017-6004
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 4.55% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pcre3 | bookworm | 2:8.39-15 | fixed |
| Ubuntu | pcre3 | pro | 2:8.35-7.1ubuntu1 | vulnerable |
| Ubuntu | pcre3 | pro | 2:8.38-1ubuntu1 | vulnerable |
| Ubuntu | pcre3 | pro | 2:8.38-3 | vulnerable |
| Ubuntu | pcre3 | pro | 2:8.38-3.1 | vulnerable |
| Ubuntu | pcre3 | pro | 2:8.38-3.1ubuntu0.1~esm1 | vulnerable |
| Ubuntu | pcre3 | pro | 2:8.38-3.1ubuntu0.1~esm2 | fixed |
| Ubuntu | pcre3 | pro | 2:8.35-7.1ubuntu1 | vulnerable |
| Ubuntu | pcre3 | pro | 2:8.38-1ubuntu1 | vulnerable |
| Ubuntu | pcre3 | pro | 2:8.38-3 | vulnerable |
| Ubuntu | pcre3 | pro | 2:8.38-3.1 | vulnerable |
| Ubuntu | pcre3 | pro | 2:8.38-3.1ubuntu0.1~esm1 | vulnerable |
| Ubuntu | pcre3 | pro | 2:8.38-3.1ubuntu0.1~esm2 | fixed |
| Suse | pcre | hpe helion openstack 8 | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | hpe helion openstack 8 | 20140730-36.5.2 | fixed |
| Suse | pcre | openstack cloud 8 | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | openstack cloud 8 | 20140730-36.5.2 | fixed |
| Suse | pcre | openstack cloud 9 | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | openstack cloud 9 | 20140730-36.5.2 | fixed |
| Suse | pcre | openstack cloud crowbar 8 | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | openstack cloud crowbar 8 | 20140730-36.5.2 | fixed |
| Suse | pcre | openstack cloud crowbar 9 | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | openstack cloud crowbar 9 | 20140730-36.5.2 | fixed |
| Suse | pcre | linux enterprise high availability extension 12 sp3 | 8.45-8.7.1 | fixed |
| Suse | pcre | linux enterprise high availability extension 12 sp4 | 8.45-8.7.1 | fixed |
| Suse | pcre | linux enterprise high availability extension 12 sp5 | 8.45-8.7.1 | fixed |
| Suse | pcre | linux enterprise server for sap applications 12 sp3 | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | linux enterprise server for sap applications 12 sp3 | 20140730-36.5.2 | fixed |
| Suse | pcre | linux enterprise server for sap applications 12 sp4 | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | linux enterprise server for sap applications 12 sp4 | 20140730-36.5.2 | fixed |
| Suse | pcre | linux enterprise software development kit 12 sp5 | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | linux enterprise software development kit 12 sp5 | 20140730-36.5.2 | fixed |
| Suse | pcre | linux enterprise server 12 sp2-bcl | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | linux enterprise server 12 sp2-bcl | 20140730-36.5.2 | fixed |
| Suse | pcre | linux enterprise server 12 sp3-ltss | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | linux enterprise server 12 sp3-ltss | 20140730-36.5.2 | fixed |
| Suse | pcre | linux enterprise server 12 sp3-bcl | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | linux enterprise server 12 sp3-bcl | 20140730-36.5.2 | fixed |
| Suse | pcre | linux enterprise server 12 sp4-ltss | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | linux enterprise server 12 sp4-ltss | 20140730-36.5.2 | fixed |
| Suse | pcre | linux enterprise server 12 sp5 | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | linux enterprise server 12 sp5 | 20140730-36.5.2 | fixed |
| Suse | pcre | linux enterprise server for sap applications 12 sp5 | 8.45-8.7.1 | fixed |
| Suse | selinux-policy | linux enterprise server for sap applications 12 sp5 | 20140730-36.5.2 | fixed |
| Suse | pcre | linux enterprise workstation extension 12 sp5 | 8.45-8.7.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pcre3 | source | bookworm | 2:8.39-2.1 | not yet assigned | Not reported | [855405] |
| Ubuntu | pcre3 | deb | pro | 2:8.38-3.1ubuntu0.1~esm2 | Not reported | USN-5665-1 | Not reported |
| Ubuntu | pcre3 | deb | pro | 2:8.38-3.1ubuntu0.1~esm2 | Not reported | UBUNTU-CVE-2017-6004 | Not reported |
| Suse | pcre | rpm | hpe helion openstack 8 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | hpe helion openstack 8 | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | openstack cloud 8 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | openstack cloud 8 | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | openstack cloud 9 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | openstack cloud 9 | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | openstack cloud crowbar 8 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | openstack cloud crowbar 8 | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | openstack cloud crowbar 9 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | openstack cloud crowbar 9 | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | linux enterprise high availability extension 12 sp3 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | linux enterprise high availability extension 12 sp4 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | linux enterprise high availability extension 12 sp5 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | linux enterprise server for sap applications 12 sp3 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | linux enterprise server for sap applications 12 sp3 | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | linux enterprise server for sap applications 12 sp4 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | linux enterprise server for sap applications 12 sp4 | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | linux enterprise software development kit 12 sp5 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | linux enterprise software development kit 12 sp5 | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | linux enterprise server 12 sp2-bcl | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | linux enterprise server 12 sp2-bcl | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | linux enterprise server 12 sp3-ltss | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | linux enterprise server 12 sp3-ltss | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | linux enterprise server 12 sp3-bcl | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | linux enterprise server 12 sp3-bcl | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | linux enterprise server 12 sp4-ltss | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | linux enterprise server 12 sp4-ltss | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | linux enterprise server 12 sp5 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | linux enterprise server 12 sp5 | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | linux enterprise server for sap applications 12 sp5 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | selinux-policy | rpm | linux enterprise server for sap applications 12 sp5 | 20140730-36.5.2 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
| Suse | pcre | rpm | linux enterprise workstation extension 12 sp5 | 8.45-8.7.1 | Not reported | SUSE-SU-2021:3652-1 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libpcre16-3]Fixed
Source package: [pcre3]
Details (2)
2:8.39-15· amd64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
2:8.39-15· arm64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
- [libpcre3]Fixed
Source package: [pcre3]
Details (2)
2:8.39-15· amd64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
2:8.39-15· arm64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
- [libpcre32-3]Fixed
Source package: [pcre3]
Details (2)
2:8.39-15· amd64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
2:8.39-15· arm64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
- [libpcre3-dbg]Fixed
Source package: [pcre3]
Details (2)
2:8.39-15· amd64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
2:8.39-15· arm64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
- [libpcre3-dev]Fixed
Source package: [pcre3]
Details (2)
2:8.39-15· amd64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
2:8.39-15· arm64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
- [libpcrecpp0v5]Fixed
Source package: [pcre3]
Details (2)
2:8.39-15· amd64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
2:8.39-15· arm64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
- [pcregrep]Fixed
Source package: [pcre3]
Details (2)
2:8.39-15· amd64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
2:8.39-15· arm64 · bookwormFixed · Fixed:
2:8.39-2.1dsa · pcre3 · debian · bookworm; dsa · pcre3 · debian · 12
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2021_3652-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2017-6004]
- [https://osv.dev/vulnerability/SUSE-SU-2021:3652-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2017-6004]
- [https://osv.dev/vulnerability/USN-5665-1]
- [https://security-tracker.debian.org/tracker/CVE-2017-6004]
- [https://security.access.redhat.com/data/csaf/v2/vex/2017/cve-2017-6004.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]