Vulnerability · Published May 16, 2022 · Assigned by redhat
CVE-2022-1587
Critical 9.1
In plain English
A critical-severity out-of-bounds read in pcre2. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.8% (higher than 86% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.1Critical
Exploit odds (30 days)2.8%top 13.6% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | pcre2 | 10.40-r0 | ALPINE-CVE-2022-1587 |
| Alpine:v3.21 | pcre2 | 10.40-r0 | ALPINE-CVE-2022-1587 |
| Alpine:v3.22 | pcre2 | 10.40-r0 | ALPINE-CVE-2022-1587 |
| Alpine:v3.23 | pcre2 | 10.40-r0 | ALPINE-CVE-2022-1587 |
| Alpine:v3.24 | pcre2 | 10.40-r0 | ALPINE-CVE-2022-1587 |
| Debian:12 | pcre2 | 10.40-1 | DEBIAN-CVE-2022-1587 |
| Debian:13 | pcre2 | 10.40-1 | DEBIAN-CVE-2022-1587 |
| Debian:14 | pcre2 | 10.40-1 | DEBIAN-CVE-2022-1587 |
| Rocky Linux:9 | pcre2 | 0:10.37-5.el9_0 | RLSA-2022:5251 |
| Ubuntu:22.04:LTS | pcre2 | 10.39-3ubuntu0.1 | USN-5627-1 |
| Ubuntu:22.04:LTS | pcre2 | 10.39-3ubuntu0.1 | UBUNTU-CVE-2022-1587 |
Affected products (as reported)
Weakness: CWE-125
References
- FEDORA-2022-e56085ba31 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2077983%2C
- https://github.com/PCRE2Project/pcre2/commit/03654e751e7f0700693526b67dfcadda6b42c9d0
- FEDORA-2022-a3edad0ab6 vendor-advisory
- FEDORA-2022-19f4c34184 vendor-advisory
- FEDORA-2022-9c9691d058 vendor-advisory
- https://security.netapp.com/advisory/ntap-20221028-0009/
- [debian-lts-announce] 20230316 [SECURITY] [DLA 3363-1] pcre2 security update mailing-list