PCRE 7.8 and 8.32 through 8.37, and PCRE2 10.10 mishandle group empty matches, which might allow remote attackers to cause a denial of servi
PCRE 7.8 and 8.32 through 8.37, and PCRE2 10.10 mishandle group empty matches, which might allow remote attackers to cause a denial of service (stack-based buffer overflow) via a crafted regular expression, as demonstrated by /^(?:(?(1)\\.|([^\\\\W_])?)+)+$/.
- Published
- Dec 13, 2016
- Updated
- Jun 16, 2026
- EPSS
- 6.2% · 93th percentile
- CWE
- CWE-119
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
32
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 6.2%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| pcre | pcre2 | cpe:2.3:a:pcre:pcre2 |
| pcre | pcre | cpe:2.3:a:pcre:pcre |
| ibm | powerkvm | cpe:2.3:a:ibm:powerkvm |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- ibm powerkvm2.1
- ibm powerkvm3.1
- pcre pcre7.8
- pcre pcre8.32
- pcre pcre8.33
- pcre pcre8.34
- pcre pcre8.35
- pcre pcre8.36
- pcre pcre8.37
- pcre pcre210.10
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | pcre3 | before 2:8.38-1 | 2:8.38-1 |
| Red Hat:enterprise_linux:7::client | pcre | before 0:8.32-15.el7_2.1 | 0:8.32-15.el7_2.1 |
| Red Hat:enterprise_linux:7::client | pcre-debuginfo | before 0:8.32-15.el7_2.1 | 0:8.32-15.el7_2.1 |
| Red Hat:enterprise_linux:7::client | pcre-devel | before 0:8.32-15.el7_2.1 | 0:8.32-15.el7_2.1 |
| Red Hat:enterprise_linux:7::client | pcre-static | before 0:8.32-15.el7_2.1 | 0:8.32-15.el7_2.1 |
| Red Hat:enterprise_linux:7::client | pcre-tools | before 0:8.32-15.el7_2.1 | 0:8.32-15.el7_2.1 |
| Red Hat:rhel_software_collections:2::el6 | rh-mariadb100-mariadb | before 1:10.0.25-4.el6 | 1:10.0.25-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mariadb100-mariadb-bench | before 1:10.0.25-4.el6 | 1:10.0.25-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mariadb100-mariadb-common | before 1:10.0.25-4.el6 | 1:10.0.25-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mariadb100-mariadb-config | before 1:10.0.25-4.el6 | 1:10.0.25-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mariadb100-mariadb-debuginfo | before 1:10.0.25-4.el6 | 1:10.0.25-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mariadb100-mariadb-devel | before 1:10.0.25-4.el6 | 1:10.0.25-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mariadb100-mariadb-errmsg | before 1:10.0.25-4.el6 | 1:10.0.25-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mariadb100-mariadb-oqgraph-engine | before 1:10.0.25-4.el6 | 1:10.0.25-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mariadb100-mariadb-server | before 1:10.0.25-4.el6 | 1:10.0.25-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-mariadb100-mariadb-test | before 1:10.0.25-4.el6 | 1:10.0.25-4.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-php56 | before 0:2.3-1.el6 | 0:2.3-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-php56-php | before 0:5.6.25-1.el6 | 0:5.6.25-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-php56-php-bcmath | before 0:5.6.25-1.el6 | 0:5.6.25-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-php56-php-cli | before 0:5.6.25-1.el6 | 0:5.6.25-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-php56-php-common | before 0:5.6.25-1.el6 | 0:5.6.25-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-php56-php-dba | before 0:5.6.25-1.el6 | 0:5.6.25-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-php56-php-dbg | before 0:5.6.25-1.el6 | 0:5.6.25-1.el6 |
| Red Hat:rhel_software_collections:2::el6 | rh-php56-php-debuginfo | before 0:5.6.25-1.el6 | 0:5.6.25-1.el6 |
+70
Same product
pcre: all recordsOther highest-scoring records for the same primary product.
- CVE-2015-3210Heap-based buffer overflow in PCRE 8.34 through 8.37 and PCRE2 10.10 allows remote attackers to execute arbitrary code via a crafted regular42Plan
- CVE-2017-8786pcre2test.c in PCRE2 10.23 allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified ot40Plan
- CVE-2017-8399PCRE2 before 10.30 has an out-of-bounds write caused by a stack-based buffer overflow in pcre2_match.c, related to a "pattern with very many40Plan
- CVE-2022-1587An out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of the pcre2_jit_compile.c37Monitor
- CVE-2022-1586An out-of-bounds read vulnerability was discovered in the PCRE2 library in the compile_xclass_matchingpath() function of the pcre2_jit_compi37Monitor
- CVE-2026-86145PCRE2 before 10.48 allows a pcre2_dfa_match out-of-bounds write because reuse of a cached workspace block, in a recursive DFA matching works32Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:pcre3 | 2:8.38-1 · Debian:12 | Package registry (OSV) |
| red hat:pcre | 0:8.32-15.el7_2.1 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:pcre-debuginfo | 0:8.32-15.el7_2.1 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:pcre-devel | 0:8.32-15.el7_2.1 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:pcre-static | 0:8.32-15.el7_2.1 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:pcre-tools | 0:8.32-15.el7_2.1 · Red Hat:enterprise_linux:7::client | Package registry (OSV) |
| red hat:rh-mariadb100-mariadb | 1:10.0.25-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-mariadb100-mariadb-bench | 1:10.0.25-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-mariadb100-mariadb-common | 1:10.0.25-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-mariadb100-mariadb-config | 1:10.0.25-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-mariadb100-mariadb-debuginfo | 1:10.0.25-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-mariadb100-mariadb-devel | 1:10.0.25-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| red hat:rh-mariadb100-mariadb-errmsg | 1:10.0.25-4.el6 · Red Hat:rhel_software_collections:2::el6 | Package registry (OSV) |
| suse:pcre | 8.39-5.1 · SUSE:Linux Enterprise Desktop 12 SP1 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
The product’s vendor appears in a public program. Matched by name; verify the scope text in the program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-119 · Improper Restriction of Operations within the Bounds of a Memory BufferCVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
- Buffer Overflow via Environment VariablesCAPEC-10likelihood: High · High
- Overflow BuffersCAPEC-100likelihood: High · Very High
- Buffer ManipulationCAPEC-123likelihood: High · Very High
- Client-side Injection-induced Buffer OverflowCAPEC-14likelihood: Medium · High
- Filter Failure through Buffer OverflowCAPEC-24likelihood: High · High
- MIME ConversionCAPEC-42likelihood: High · High
- Overflow Binary Resource FileCAPEC-44likelihood: High · Very High
- Buffer Overflow via Symbolic LinksCAPEC-45likelihood: High · High
ATT&CK techniques
—
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- rhn.redhat.com/errata/RHSA-2016-1025.html
- rhn.redhat.com/errata/RHSA-2016-2750.html
- vcs.pcre.org/pcre?view=revision&revision=1566
- www-01.ibm.com/support/docview.wss?uid=isg3T1023886
- www.openwall.com/lists/oss-security/2015/06/03/7
- www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
- www.securityfocus.com/bid/75018
- access.redhat.com/errata/RHSA-2016:1132
- bugzilla.redhat.com/show_bug.cgi?id=1228283
Vendor advisories and official records. Exploit/PoC links are deliberately left out.