CriticalFix available
pcre2 — security advisory
An out-of-bounds read vulnerability was discovered in the PCRE2 library in the compile_xclass_matchingpath() function of the pcre2_jit_compile.c file. This involves a unicode property matching issue in JIT-compiled regular expressions. The issue occurs because the character was not fully read in case-less matching within JIT.
- Products
- pcre2
- Affected versions
- Not specified
- Fixed versions
- 10.40-1
- CVEs
- CVE-2022-1586
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 14:40 UTC · Revision 1
Source evidence
An out-of-bounds read vulnerability was discovered in the PCRE2 library in the compile_xclass_matchingpath() function of the pcre2_jit_compile.c file. This involves a unicode property matching issue in JIT-compiled regular expressions. The issue occurs because the character was not fully read in case-less matching within JIT.
osv:DEBIAN-CVE-2022-1586
pcre2
Fixed versions: 10.40-1
pcre2
Fixed versions: 10.40-1
pcre2
Fixed versions: 10.40-1
Complete source record
{
"id": "a4dec9d2f858935b68a73c67fcc5b73918c025c11580174d0c3fd0cbe078379a",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-1586",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2022-1586",
"summary": "An out-of-bounds read vulnerability was discovered in the PCRE2 library in the compile_xclass_matchingpath() function of the pcre2_jit_compile.c file. This involves a unicode property matching issue in JIT-compiled regular expressions. The issue occurs because the character was not fully read in case-less matching within JIT.",
"evidence": "osv:DEBIAN-CVE-2022-1586",
"products": [
{
"name": {
"value": "pcre2",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "10.40-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "pcre2",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "10.40-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "pcre2",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "10.40-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "DEBIAN-CVE-2022-1586",
"aliases": [
"DEBIAN-CVE-2022-1586"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "10.40-1"
}
]
}
],
"package": {
"name": "pcre2",
"purl": "pkg:deb/debian/pcre2?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-1586.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "10.40-1"
}
]
}
],
"package": {
"name": "pcre2",
"purl": "pkg:deb/debian/pcre2?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-1586.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "10.40-1"
}
]
}
],
"package": {
"name": "pcre2",
"purl": "pkg:deb/debian/pcre2?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-1586.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-15T08:01:22.302627214Z",
"provider": "osv",
"upstream": [
"CVE-2022-1586"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2022-1586"
]
},
"related_cves": [
{
"value": "CVE-2022-1586",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 322930,
"published_at": "2022-05-16T21:15:07.793+00:00"
}