CVE-2022-1586 json
An out-of-bounds read vulnerability was discovered in the PCRE2 library in the compile_xclass_matchingpath() function of the pcre2_jit_comp…
published 2022-05-16 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-24876
- cvss
- 9.1
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.4%
- EPSS 3.4% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known
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.
Patch / fix
- pcre pcre2 10.40
- pcre2 Debian 14, Debian 13, Debian 12 10.40-1
debian advisories DEBIAN-CVE-2022-1586
- pcre2 Ubuntu 20.04 LTS 10.34-7ubuntu0.1
- pcre2 Ubuntu 22.04 LTS 10.39-3ubuntu0.1
- pcre2 Ubuntu Pro 18.04 LTS 10.31-2ubuntu0.1~esm1
ubuntu advisories UBUNTU-CVE-2022-1586
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- pcre2 RHEL 9 10.37-5.el9_0
- pcre2-utf16 RHEL 9 10.37-5.el9_0
- pcre2-utf32 RHEL 9 10.37-5.el9_0
- pcre2-syntax RHEL 9 10.37-5.el9_0
- pcre2 RHEL 8 10.32-3.el8_6
- pcre2-tools RHEL 8 10.32-3.el8_6
- pcre2-utf16 RHEL 8 10.32-3.el8_6
- pcre2-utf32 RHEL 8 10.32-3.el8_6
red hat advisories RHSA-2022:5251RHSA-2022:5809
- pcre SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +22 more 8.45-150000.20.13.1
- pcre2 SLE Module for Basesystem 15 SP4, openSUSE Leap 15.4 10.39-150400.4.3.1
- pcre SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +15 more 8.45-8.12.1
- pcre2 SLES 15 SP2-BCL, SLES 15 SP1-BCL, SLE Module for Basesystem 15 SP3 +21 more 10.31-150000.3.7.1
- pcre2 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES for SAP 12 SP3 +11 more 10.34-1.7.1
suse advisories SUSE-SU-2022:2361-1SUSE-SU-2022:2360-1SUSE-SU-2022:2334-1SUSE-RU-2022:1883-1SUSE-SU-2022:1883-1SUSE-SU-2022:1836-1
- pcre openSUSE Leap Micro 5.2 8.45-150000.20.13.1
opensuse advisories openSUSE-SU-2022:2361-1
- pcre2 AlmaLinux 8 10.32-3.el8_6
- pcre2-tools AlmaLinux 8 10.32-3.el8_6
- pcre2-utf16 AlmaLinux 8 10.32-3.el8_6
- pcre2-utf32 AlmaLinux 8 10.32-3.el8_6
almalinux advisories ALSA-2022:5809
- pcre2 Rocky Linux 8 10.32-3.el8_6
- pcre2 Rocky Linux 9 10.37-5.el9_0
rocky linux advisories RLSA-2022:5809RLSA-2022:5251
- pcre2 Alpine 3.14, Alpine 3.13 10.36-r1
- pcre2 Alpine 3.24, Alpine 3.23, Alpine 3.22 +7 more 10.40-r0
alpine advisories ALPINE-CVE-2022-1586
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-1586 updated cvss 7.5
pcre2: Out-of-bounds read in compile_xclass_matchingpath in pcre2_jit_compile.c
-
Red Hat Enterprise Linux AppStream (v. 9) pcre2-utf16 10.37-5.el9_0, pcre2-utf32 10.37-5.el9_0fixed: vendor fix RHSA-2022:5251
-
Red Hat Enterprise Linux BaseOS (v. 8) pcre2 10.32-3.el8_6, pcre2-utf16 10.32-3.el8_6, pcre2-utf32 10.32-3.el8_6fixed: vendor fix RHSA-2022:5809
-
Red Hat Enterprise Linux BaseOS (v. 9) pcre2 10.37-5.el9_0, pcre2-syntax 10.37-5.el9_0fixed: vendor fix RHSA-2022:5251
-
Red Hat Enterprise Linux CRB (v. 8) pcre2-tools 10.32-3.el8_6fixed: vendor fix RHSA-2022:5809
-
Red Hat Enterprise Linux 7 pcre2, pcre2-tools, pcre2-utf16, pcre2-utf32not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
3.37% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
Affected products
- n/a pcre2
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
References
-
github.com
/PCRE2Project/pcre2/commit/50a51cb7e67268e6ad417eb07c9de9bfea5cc55a%2C
broken-link
-
github.com
/PCRE2Project/pcre2/commit/d4fa336fbcc388f89095b184ba6d99422cfc676c
patch, third-party-advisory
-
github.com
/PCRE2Project/pcre2/commit/50a51cb7e67268e6ad417eb07c9de9bfea5cc55a
patch
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/M2GLQQUEY5VFM57CFYXVIFOXN2HUZPDM/
vendor-advisory, mailing-list
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/KAX7767BCUFC7JMDGP7GOQ5GIZCAUGBB/
vendor-advisory, mailing-list
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/JXINO3KKI5DICQ45E2FKD6MKVMGJLEKJ/
vendor-advisory, mailing-list
-
lists.fedoraproject.org
/archives/list/package-announce%40lists.fedoraproject.org/message/DWNG2NS3GINO6LQYUVC4BZLUQPJ3DYHA/
vendor-advisory, mailing-list
-
bugzilla.redhat.com
/show_bug.cgi?id=2077976%2C
broken-link, issue-tracking
-
security.netapp.com
/advisory/ntap-20221028-0009/
third-party-advisory
-
lists.debian.org
/debian-lts-announce/2023/03/msg00014.html
mailing-list
-
bugzilla.redhat.com
/show_bug.cgi?id=2077976
third-party-advisory
Sources
- CVE List CVE-2022-1586
- NVD CVE-2022-1586
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.