---
id: CVE-2026-86145
title: >-
  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 …
summary: >-
  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 …
severity: high
cvss: 8.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L'
cwe:
  - CWE-424
  - CWE-787
vendor: PCRE
product: PCRE2
affected:
  - PCRE2 >= 10.32 < 10.48
published: '2026-09-05'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T16:04:24.933'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86145'
references:
  - url: 'https://github.com/PCRE2Project/pcre2/releases/tag/pcre2-10.48'
    label: cve@mitre.org
  - url: >-
      https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-3r4p-g7gg-ppmf
    label: cve@mitre.org
  - url: 'http://www.openwall.com/lists/oss-security/2026/09/05/3'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-86145.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-86145'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2528993'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-86145'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86145'
  - url: 'https://access.redhat.com/errata/RHSA-2026:67534'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00373
epssPercentile: 0.31166
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-08T18:07:40.203419Z'
ingestedAt: '2026-09-06T02:48:40.090Z'
patched:
  - hardened_images
---

## Overview

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

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Important · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 9, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat OpenShift Container Platform 4 · updated 2026-09-21 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-86145.json)
- **RHSA-2026:67534** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-15 · [advisory](https://access.redhat.com/errata/RHSA-2026:67534)
