Vulnerability · Published May 16, 2022 · Assigned by redhat
CVE-2022-1586
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 3.4% (higher than 89% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.1Critical
Exploit odds (30 days)3.4%top 11.2% 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 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | pcre2 | 10.32-3.el8_6 | ALSA-2022:5809 |
| AlmaLinux:8 | pcre2-devel | 10.32-3.el8_6 | ALSA-2022:5809 |
| AlmaLinux:8 | pcre2-tools | 10.32-3.el8_6 | ALSA-2022:5809 |
| AlmaLinux:8 | pcre2-utf16 | 10.32-3.el8_6 | ALSA-2022:5809 |
| AlmaLinux:8 | pcre2-utf32 | 10.32-3.el8_6 | ALSA-2022:5809 |
| Alpine:v3.20 | pcre2 | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine:v3.21 | pcre2 | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine:v3.22 | pcre2 | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine:v3.23 | pcre2 | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine:v3.24 | pcre2 | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Debian:12 | pcre2 | 10.40-1 | DEBIAN-CVE-2022-1586 |
| Debian:13 | pcre2 | 10.40-1 | DEBIAN-CVE-2022-1586 |
| Debian:14 | pcre2 | 10.40-1 | DEBIAN-CVE-2022-1586 |
| Rocky Linux:8 | pcre2 | 0:10.32-3.el8_6 | RLSA-2022:5809 |
| 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-1586 |
Affected products (as reported)
Weakness: CWE-125
References
- FEDORA-2022-e56085ba31 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2077976%2C
- https://github.com/PCRE2Project/pcre2/commit/50a51cb7e67268e6ad417eb07c9de9bfea5cc55a%2C
- https://github.com/PCRE2Project/pcre2/commit/d4fa336fbcc388f89095b184ba6d99422cfc676c
- 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
- https://bugzilla.redhat.com/show_bug.cgi?id=2077976
- https://github.com/PCRE2Project/pcre2/commit/50a51cb7e67268e6ad417eb07c9de9bfea5cc55a