CVE-2026-86145

pcre2: PCRE2: Out-of-bounds write allows arbitrary code execution via crafted regular expressions

Published Sep 5, 2026 CVSS 3.1 · 8.2 High EPSS < 1% KEV · Not listed
Description
PCRE2 before 10.48 allows a pcre2_dfa_match out-of-bounds write because reuse of a cached workspace block, in a recursive DFA matching workspace, lacks a size check (even though a newly allocated block, for the same purpose, does have a size check). This outcome requires an attacker-controlled regular expression, or a recursive pattern in conjunction with a small heap limit (this can be set through the API).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8974-1 PCRE2 vulnerabilities
History
Type Values Removed Values Added
Title Out-of-Bounds Write in PCRE2 DFA Matching Due to Cached Workspace Size Check Missing pcre2: PCRE2: Out-of-bounds write allows arbitrary code execution via crafted regular expressions
Weaknesses CWE-787
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Out-of-Bounds Write in PCRE2 DFA Matching Due to Cached Workspace Size Check Missing
Type Values Removed Values Added
Description PCRE2 before 10.48 allows a pcre2_dfa_match out-of-bounds write because reuse of a cached workspace block, in a recursive DFA matching workspace, lacks a size check (even though a newly allocated block, for the same purpose, does have a size check). This outcome requires an attacker-controlled regular expression, or a recursive pattern in conjunction with a small heap limit (this can be set through the API).
First Time appeared Pcre
Pcre pcre2
Weaknesses CWE-424
CPEs cpe:2.3:a:pcre:pcre2:*:*:*:*:*:*:*:*
Vendors & Products Pcre
Pcre pcre2
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 8, 2026, 6:07 PM
Reserved
Sep 5, 2026, 5:09 AM
Status
Deferred
Published
Sep 5, 2026, 6:17 AM
Modified
Sep 9, 2026, 4:04 PM
Severity
Important
Public date
Sep 5, 2026, 5:09 AM