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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | pcre2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | pcre2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | pcre2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | pcre2 | Fixed | 10.39-3ubuntu0.1 | UBUNTU-CVE-2022-1586 |
| Ubuntu 20.04 | pcre2 | Fixed | 10.34-7ubuntu0.1 | UBUNTU-CVE-2022-1586 |
| Ubuntu 18.04 | pcre2 | Fix pending | 10.31-2ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2022-1586 |
| Ubuntu 16.04 | pcre2 | Fix pending | UBUNTU-CVE-2022-1586 | |
| Debian 14 | pcre2 | Fixed | 10.40-1 | DEBIAN-CVE-2022-1586 |
| Debian 13 | pcre2 | Fixed | 10.40-1 | DEBIAN-CVE-2022-1586 |
| Debian 12 | pcre2 | Fixed | 10.40-1 | DEBIAN-CVE-2022-1586 |
| Red Hat Enterprise Linux 9 | pcre2 | Fixed | 0:10.37-5.el9_0 | RHSA-2022:5251 |
| Red Hat Enterprise Linux 9 | pcre2-devel | Fixed | 0:10.37-5.el9_0 | RHSA-2022:5251 |
| Red Hat Enterprise Linux 9 | pcre2-syntax | Fixed | 0:10.37-5.el9_0 | RHSA-2022:5251 |
| Red Hat Enterprise Linux 9 | pcre2-utf16 | Fixed | 0:10.37-5.el9_0 | RHSA-2022:5251 |
| Red Hat Enterprise Linux 9 | pcre2-utf32 | Fixed | 0:10.37-5.el9_0 | RHSA-2022:5251 |
| Red Hat Enterprise Linux 8 | pcre2 | Fixed | 0:10.32-3.el8_6 | RHSA-2022:5809 |
| Red Hat Enterprise Linux 8 | pcre2-devel | Fixed | 0:10.32-3.el8_6 | RHSA-2022:5809 |
| Red Hat Enterprise Linux 8 | pcre2-tools | Fixed | 0:10.32-3.el8_6 | RHSA-2022:5809 |
| Red Hat Enterprise Linux 8 | pcre2-utf16 | Fixed | 0:10.32-3.el8_6 | RHSA-2022:5809 |
| Red Hat Enterprise Linux 8 | pcre2-utf32 | Fixed | 0:10.32-3.el8_6 | RHSA-2022:5809 |
| Red Hat Enterprise Linux 7 | pcre2 | Not affected | ||
| Red Hat Enterprise Linux 7 | pcre2-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | pcre2-static | Not affected | ||
| Red Hat Enterprise Linux 7 | pcre2-tools | Not affected | ||
| Red Hat Enterprise Linux 7 | pcre2-utf16 | Not affected | ||
| Red Hat Enterprise Linux 7 | pcre2-utf32 | Not affected | ||
| AlmaLinux 8 | pcre2 | Fixed | 10.32-3.el8_6 | ALSA-2022:5809 |
| AlmaLinux 8 | pcre2-devel | Fixed | 10.32-3.el8_6 | ALSA-2022:5809 |
| AlmaLinux 8 | pcre2-tools | Fixed | 10.32-3.el8_6 | ALSA-2022:5809 |
| AlmaLinux 8 | pcre2-utf16 | Fixed | 10.32-3.el8_6 | ALSA-2022:5809 |
| AlmaLinux 8 | pcre2-utf32 | Fixed | 10.32-3.el8_6 | ALSA-2022:5809 |
| Rocky Linux 9 | pcre2 | Fixed | 0:10.37-5.el9_0 | RLSA-2022:5251 |
| Rocky Linux 8 | pcre2 | Fixed | 0:10.32-3.el8_6 | RLSA-2022:5809 |
| Alpine Linux 3.24 | pcre2 | Fixed | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine Linux 3.23 | pcre2 | Fixed | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine Linux 3.22 | pcre2 | Fixed | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine Linux 3.21 | pcre2 | Fixed | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine Linux 3.20 | pcre2 | Fixed | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine Linux 3.19 | pcre2 | Fixed | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine Linux 3.18 | pcre2 | Fixed | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine Linux 3.17 | pcre2 | Fixed | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine Linux 3.16 | pcre2 | Fixed | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine Linux 3.15 | pcre2 | Fixed | 10.40-r0 | ALPINE-CVE-2022-1586 |
| Alpine Linux 3.14 | pcre2 | Fixed | 10.36-r1 | ALPINE-CVE-2022-1586 |
| Alpine Linux 3.13 | pcre2 | Fixed | 10.36-r1 | ALPINE-CVE-2022-1586 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- pcre2: affected: Fixed in pcre2-10.40.
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
References
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M2GLQQUEY5VFM57CFYXVIFOXN2HUZPDM/
- 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
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KAX7767BCUFC7JMDGP7GOQ5GIZCAUGBB/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JXINO3KKI5DICQ45E2FKD6MKVMGJLEKJ/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DWNG2NS3GINO6LQYUVC4BZLUQPJ3DYHA/
- https://security.netapp.com/advisory/ntap-20221028-0009/
- https://lists.debian.org/debian-lts-announce/2023/03/msg00014.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.