CriticalFix available
pcre2 — security advisory
An out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of the pcre2_jit_compile.c file. This issue affects recursions in JIT-compiled regular expressions caused by duplicate data transfers.
- Products
- pcre2
- Affected versions
- Not specified
- Fixed versions
- 10.40-1
- CVEs
- CVE-2022-1587
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 14:37 UTC · Revision 1
Source evidence
An out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of the pcre2_jit_compile.c file. This issue affects recursions in JIT-compiled regular expressions caused by duplicate data transfers.
osv:DEBIAN-CVE-2022-1587
pcre2
Fixed versions: 10.40-1
pcre2
Fixed versions: 10.40-1
pcre2
Fixed versions: 10.40-1
Complete source record
{
"id": "c2d2eb62a3727e5fe5eb1e6aa056242986fe8b281d45b3a6366c34deb4ea5391",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-1587",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2022-1587",
"summary": "An out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of the pcre2_jit_compile.c file. This issue affects recursions in JIT-compiled regular expressions caused by duplicate data transfers.",
"evidence": "osv:DEBIAN-CVE-2022-1587",
"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-1587",
"aliases": [
"DEBIAN-CVE-2022-1587"
],
"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-1587.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-1587.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-1587.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-15T08:01:07.249295791Z",
"provider": "osv",
"upstream": [
"CVE-2022-1587"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2022-1587"
]
},
"related_cves": [
{
"value": "CVE-2022-1587",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 322809,
"published_at": "2022-05-16T21:15:07.847+00:00"
}