---
title: "CVE-2022-1586"
canonical_url: "https://pkgseek.com/security/CVE-2022-1586"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "critical"
---

# CVE-2022-1586

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.

CVE-2022-1586 is rated CRITICAL (9.1), with 24 indexed affected package builds across 3 distributions.

- **Severity / Score**: CRITICAL (9.1)
- **Affected builds**: 24
- **Affected distros**: 3
- **Distros with fixed_in**: Oracle Linux, Red Hat Enterprise Linux, Ubuntu

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Oracle Linux | 8 | pcre2 | 10.32-2.el8 | 10.32-3.el8_6 |
| Oracle Linux | 8 | pcre2-devel | 10.32-2.el8 | 10.32-3.el8_6 |
| Oracle Linux | 8 | pcre2-utf16 | 10.32-2.el8 | 10.32-3.el8_6 |
| Oracle Linux | 8 | pcre2-utf32 | 10.32-2.el8 | 10.32-3.el8_6 |
| Oracle Linux | 9 | pcre2 | 10.37-3.el9.1 | 10.37-5.el9_0 |
| Oracle Linux | 9 | pcre2-devel | 10.37-3.el9.1 | 10.37-5.el9_0 |
| Oracle Linux | 9 | pcre2-syntax | 10.37-3.el9.1 | 10.37-5.el9_0 |
| Oracle Linux | 9 | pcre2-utf16 | 10.37-3.el9.1 | 10.37-5.el9_0 |
| Oracle Linux | 9 | pcre2-utf32 | 10.37-3.el9.1 | 10.37-5.el9_0 |
| Red Hat Enterprise Linux | 9.8 | pcre2 | 10.37-3.el9.1 | 10.37-5.el9_0 |
| Red Hat Enterprise Linux | 9.8 | pcre2-devel | 10.37-3.el9.1 | 10.37-5.el9_0 |
| Red Hat Enterprise Linux | 9.8 | pcre2-syntax | 10.37-3.el9.1 | 10.37-5.el9_0 |
| Red Hat Enterprise Linux | 9.8 | pcre2-utf16 | 10.37-3.el9.1 | 10.37-5.el9_0 |
| Red Hat Enterprise Linux | 9.8 | pcre2-utf32 | 10.37-3.el9.1 | 10.37-5.el9_0 |
| Ubuntu | focal | libpcre2-16-0 | 10.34-7 | 10.34-7ubuntu0.1 |
| Ubuntu | focal | libpcre2-32-0 | 10.34-7 | 10.34-7ubuntu0.1 |
| Ubuntu | focal | libpcre2-8-0 | 10.34-7 | 10.34-7ubuntu0.1 |
| Ubuntu | focal | libpcre2-dev | 10.34-7 | 10.34-7ubuntu0.1 |
| Ubuntu | focal | libpcre2-posix2 | 10.34-7 | 10.34-7ubuntu0.1 |
| Ubuntu | jammy | libpcre2-16-0 | 10.39-3build1 | 10.39-3ubuntu0.1 |
| Ubuntu | jammy | libpcre2-32-0 | 10.39-3build1 | 10.39-3ubuntu0.1 |
| Ubuntu | jammy | libpcre2-8-0 | 10.39-3build1 | 10.39-3ubuntu0.1 |
| Ubuntu | jammy | libpcre2-dev | 10.39-3build1 | 10.39-3ubuntu0.1 |
| Ubuntu | jammy | libpcre2-posix3 | 10.39-3build1 | 10.39-3ubuntu0.1 |
