pcre2 — security advisory
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).
- Products
- pcre2
- Affected versions
- 10.32-5, 10.34-7, 10.34-7ubuntu0.1, 10.37-0ubuntu2, 10.39-3, 10.39-3build1, 10.39-3ubuntu0.1, 10.42-4, 10.42-4ubuntu1, 10.42-4ubuntu2, 10.42-4ubuntu2.1, 10.46-1, 10.46-1build1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-86145
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 03:24 UTC · Revision 1
Source evidence
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).
osv:UBUNTU-CVE-2026-86145
pcre2
Fixed versions: Not specified
pcre2
Fixed versions: Not specified
pcre2
Fixed versions: Not specified
pcre2
Fixed versions: Not specified
pcre2
Fixed versions: Not specified
Complete source record
{
"id": "cebef2cc1cf570265c257ec598a057f5c7245f5961b400a6a2d44bbb98e80945",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-86145",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-86145",
"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 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).",
"evidence": "osv:UBUNTU-CVE-2026-86145",
"products": [
{
"name": {
"value": "pcre2",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "10.32-5",
"evidence": "/affected/0/versions"
},
{
"value": "10.34-7",
"evidence": "/affected/0/versions"
},
{
"value": "10.34-7ubuntu0.1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "pcre2",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "10.37-0ubuntu2",
"evidence": "/affected/1/versions"
},
{
"value": "10.39-3",
"evidence": "/affected/1/versions"
},
{
"value": "10.39-3build1",
"evidence": "/affected/1/versions"
},
{
"value": "10.39-3ubuntu0.1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "pcre2",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "10.42-4",
"evidence": "/affected/2/versions"
},
{
"value": "10.42-4ubuntu1",
"evidence": "/affected/2/versions"
},
{
"value": "10.42-4ubuntu2",
"evidence": "/affected/2/versions"
},
{
"value": "10.42-4ubuntu2.1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "pcre2",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "10.46-1build1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "pcre2",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "10.46-1",
"evidence": "/affected/4/versions"
},
{
"value": "10.46-1build1",
"evidence": "/affected/4/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-86145",
"aliases": [
"UBUNTU-CVE-2026-86145"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pcre2",
"purl": "pkg:deb/ubuntu/pcre2?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"10.32-5",
"10.34-7",
"10.34-7ubuntu0.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86145.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libpcre2-16-0",
"binary_version": "10.34-7ubuntu0.1"
},
{
"binary_name": "libpcre2-32-0",
"binary_version": "10.34-7ubuntu0.1"
},
{
"binary_name": "libpcre2-8-0",
"binary_version": "10.34-7ubuntu0.1"
},
{
"binary_name": "libpcre2-posix2",
"binary_version": "10.34-7ubuntu0.1"
},
{
"binary_name": "pcre2-utils",
"binary_version": "10.34-7ubuntu0.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pcre2",
"purl": "pkg:deb/ubuntu/pcre2?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"10.37-0ubuntu2",
"10.39-3",
"10.39-3build1",
"10.39-3ubuntu0.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86145.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libpcre2-16-0",
"binary_version": "10.39-3ubuntu0.1"
},
{
"binary_name": "libpcre2-32-0",
"binary_version": "10.39-3ubuntu0.1"
},
{
"binary_name": "libpcre2-8-0",
"binary_version": "10.39-3ubuntu0.1"
},
{
"binary_name": "libpcre2-posix3",
"binary_version": "10.39-3ubuntu0.1"
},
{
"binary_name": "pcre2-utils",
"binary_version": "10.39-3ubuntu0.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pcre2",
"purl": "pkg:deb/ubuntu/pcre2?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"10.42-4",
"10.42-4ubuntu1",
"10.42-4ubuntu2",
"10.42-4ubuntu2.1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86145.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libpcre2-16-0",
"binary_version": "10.42-4ubuntu2.1"
},
{
"binary_name": "libpcre2-32-0",
"binary_version": "10.42-4ubuntu2.1"
},
{
"binary_name": "libpcre2-8-0",
"binary_version": "10.42-4ubuntu2.1"
},
{
"binary_name": "libpcre2-posix3",
"binary_version": "10.42-4ubuntu2.1"
},
{
"binary_name": "pcre2-utils",
"binary_version": "10.42-4ubuntu2.1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pcre2",
"purl": "pkg:deb/ubuntu/pcre2?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"10.46-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86145.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libpcre2-16-0",
"binary_version": "10.46-1build1"
},
{
"binary_name": "libpcre2-32-0",
"binary_version": "10.46-1build1"
},
{
"binary_name": "libpcre2-8-0",
"binary_version": "10.46-1build1"
},
{
"binary_name": "libpcre2-posix3",
"binary_version": "10.46-1build1"
},
{
"binary_name": "pcre2-utils",
"binary_version": "10.46-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "pcre2",
"purl": "pkg:deb/ubuntu/pcre2?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"10.46-1",
"10.46-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-86145.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libpcre2-16-0",
"binary_version": "10.46-1build1"
},
{
"binary_name": "libpcre2-32-0",
"binary_version": "10.46-1build1"
},
{
"binary_name": "libpcre2-8-0",
"binary_version": "10.46-1build1"
},
{
"binary_name": "libpcre2-posix3",
"binary_version": "10.46-1build1"
},
{
"binary_name": "pcre2-utils",
"binary_version": "10.46-1build1"
}
]
}
}
],
"modified": "2026-10-17T13:01:13.650319430Z",
"provider": "osv",
"upstream": [
"CVE-2026-86145"
],
"references": [
"https://ubuntu.com/security/CVE-2026-86145",
"https://www.cve.org/CVERecord?id=CVE-2026-86145",
"https://github.com/PCRE2Project/pcre2/security/advisories/GHSA-3r4p-g7gg-ppmf"
]
},
"related_cves": [
{
"value": "CVE-2026-86145",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 361312,
"published_at": "2026-09-05T06:17:00+00:00"
}