Heap-based buffer overflow in the find_fixedlength function in pcre_compile.c in PCRE before 8.38 allows remote attackers to cause a denial
Heap-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 service (crash) or obtain sensitive information from heap memory and possibly bypass the ASLR protection mechanism via a crafted regular expression with an excess closing parenthesis.
- Published
- Dec 13, 2016
- Updated
- Jun 16, 2026
- EPSS
- 7.7% · 94th 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
38
Monitor
Low priority for now.
- CVSS
- 36 / 40 · 9.1 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 7.7%
Affected systems
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 pcreup to 8.37 inclusive
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.35-7 | 2:8.35-7 |
| 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-2016-3191The 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 containi42Plan
- CVE-2016-1283The pcre_compile2 function in pcre_compile.c in PCRE 8.38 mishandles the /((?:F?+(?:^(?(R)a+\"){99}-))(?J)(?'R'(?'R'<((?'RR'(?'R'\){97)?J)?J41Plan
- CVE-2015-8391The pcre_compile function in pcre_compile.c in PCRE before 8.38 mishandles certain [: nesting, which allows remote attackers to cause a deni41Plan
- CVE-2017-7246Stack-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 32Monitor
- CVE-2017-7245Stack-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 32Monitor
- CVE-2017-7186libpcre1 in PCRE 8.40 and libpcre2 in PCRE2 10.23 allow remote attackers to cause a denial of service (segmentation violation for read acces32Monitor
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.35-7 · 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
- high · data can be read
- 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
- High
- 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:H/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/code/trunk/ChangeLog?revision=1609&view=markup
- www-01.ibm.com/support/docview.wss?uid=isg3T1023886
- www.openwall.com/lists/oss-security/2015/06/26/1
- www.openwall.com/lists/oss-security/2015/06/26/3
- www.oracle.com/technetwork/topics/security/linuxbulletinapr2016-2952096.html
- www.securityfocus.com/bid/75430
- www.securitytracker.com/id/1033154
- access.redhat.com/errata/RHSA-2016:1132
- security.gentoo.org/glsa/201607-02
Vendor advisories and official records. Exploit/PoC links are deliberately left out.