# CVE-2022-1586: pcre2-devel: The pcre2 package contains a new generation of the Perl Compatible Regular Expression libraries for implementing regu...

CVE-2022-1586 is fixed in 19 products on 1 platform, first by libpcre2-16-0 10.31-2ubuntu0.1~esm1, released May 16, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-1586
- Priority: High
- CVSS: 9.1 (Moderate)
- EPSS: 0.0337
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 16, 2022

## Description

The pcre2 package contains a new generation of the Perl Compatible Regular Expression libraries for implementing regular expression pattern matching using the same syntax and semantics as Perl.   Security Fix(es):  * pcre2: Out-of-bounds read in compile_xclass_matchingpath in pcre2_jit_compile.c (CVE-2022-1586)  For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | libpcre2-16-0 Ubuntu 18.04.6 LTS (bionic) | 10.31-2ubuntu0.1~esm1 | [libpcre2-16-0 10.31-2ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libpcre2-16-0-10.31-2ubuntu0.1-esm1.md) | May 16, 2022 |
| Linux | libpcre2-16-0 Ubuntu 20.04 LTS (focal) | 10.34-7ubuntu0.1 | [libpcre2-16-0 10.34-7ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libpcre2-16-0-10.34-7ubuntu0.1.md) | May 16, 2022 |
| Linux | libpcre2-16-0 Ubuntu 22.04.1 LTS (jammy) | 10.39-3ubuntu0.1 | [libpcre2-16-0 10.39-3ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libpcre2-16-0-10.39-3ubuntu0.1.md) | May 16, 2022 |
| Linux | libpcre2-32-0 Ubuntu 18.04.6 LTS (bionic) | 10.31-2ubuntu0.1~esm1 | [libpcre2-32-0 10.31-2ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libpcre2-32-0-10.31-2ubuntu0.1-esm1.md) | May 16, 2022 |
| Linux | libpcre2-32-0 Ubuntu 20.04 LTS (focal) | 10.34-7ubuntu0.1 | [libpcre2-32-0 10.34-7ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libpcre2-32-0-10.34-7ubuntu0.1.md) | May 16, 2022 |
| Linux | libpcre2-32-0 Ubuntu 22.04.1 LTS (jammy) | 10.39-3ubuntu0.1 | [libpcre2-32-0 10.39-3ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libpcre2-32-0-10.39-3ubuntu0.1.md) | May 16, 2022 |
| Linux | libpcre2-8-0 Ubuntu 18.04.6 LTS (bionic) | 10.31-2ubuntu0.1~esm1 | [libpcre2-8-0 10.31-2ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libpcre2-8-0-10.31-2ubuntu0.1-esm1.md) | May 16, 2022 |
| Linux | libpcre2-8-0 Ubuntu 20.04 LTS (focal) | 10.34-7ubuntu0.1 | [libpcre2-8-0 10.34-7ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libpcre2-8-0-10.34-7ubuntu0.1.md) | May 16, 2022 |
| Linux | libpcre2-8-0 Ubuntu 22.04.1 LTS (jammy) | 10.39-3ubuntu0.1 | [libpcre2-8-0 10.39-3ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libpcre2-8-0-10.39-3ubuntu0.1.md) | May 16, 2022 |
| Linux | libpcre2-posix0 Ubuntu 18.04.6 LTS (bionic) | 10.31-2ubuntu0.1~esm1 | [libpcre2-posix0 10.31-2ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-libpcre2-posix0-10.31-2ubuntu0.1-esm1.md) | May 16, 2022 |
| Linux | libpcre2-posix2 Ubuntu 20.04 LTS (focal) | 10.34-7ubuntu0.1 | [libpcre2-posix2 10.34-7ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-libpcre2-posix2-10.34-7ubuntu0.1.md) | May 16, 2022 |
| Linux | libpcre2-posix3 Ubuntu 22.04.1 LTS (jammy) | 10.39-3ubuntu0.1 | [libpcre2-posix3 10.39-3ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-libpcre2-posix3-10.39-3ubuntu0.1.md) | May 16, 2022 |
| Linux | pcre2 Debian 12.15 (bookworm) | 10.40-1 | [DEBIAN-CVE-2022-1586](https://patchblox.com/security/data/fix/linux/debian-cve-2022-1586.md) | May 16, 2022 |
| Linux | pcre2 Debian 13.5 (trixie) | 10.40-1 | [DEBIAN-CVE-2022-1586](https://patchblox.com/security/data/fix/linux/debian-cve-2022-1586.md) | May 16, 2022 |
| Linux | pcre2 Debian 14 | 10.40-1 | [DEBIAN-CVE-2022-1586](https://patchblox.com/security/data/fix/linux/debian-cve-2022-1586.md) | May 16, 2022 |
| Linux | pcre2 RHEL 8 | 0:10.32-3.el8_6 | [RHSA-2022:5809](https://patchblox.com/security/data/fix/linux/rhsa-2022-5809.md) | Aug 3, 2022 |
| Linux | pcre2 RHEL 9 | 0:10.37-5.el9_0 | [RHSA-2022:5251](https://patchblox.com/security/data/fix/linux/rhsa-2022-5251.md) | Jul 1, 2022 |
| Linux | pcre2 almalinux 8 | 10.32-3.el8_6 | [ALSA-2022:5809](https://patchblox.com/security/data/fix/linux/alsa-2022-5809.md) | Aug 3, 2022 |
| Linux | pcre2 amzn 2023 | 10.40-1.amzn2023.0.2 | [ALAS2023-2023-045](https://patchblox.com/security/data/fix/linux/alas2023-2023-045.md) | Feb 17, 2023 |
| Linux | pcre2 ol 8 | 0:10.32-3.el8_6 | [ELSA-2022-5809](https://patchblox.com/security/data/fix/linux/elsa-2022-5809.md) | Aug 2, 2022 |
| Linux | pcre2 ol 9 | 0:10.37-5.el9_0 | [ELSA-2022-5251](https://patchblox.com/security/data/fix/linux/elsa-2022-5251.md) | Jun 30, 2022 |
| Linux | pcre2 rocky 8 | 0:10.32-3.el8_6 | [RLSA-2022:5809](https://patchblox.com/security/data/fix/linux/rlsa-2022-5809.md) | Aug 2, 2022 |
| Linux | pcre2 rocky 9 | 0:10.37-5.el9_0 | [RLSA-2022:5251](https://patchblox.com/security/data/fix/linux/rlsa-2022-5251.md) | Jun 28, 2022 |
| Linux | pcre2-debuginfo amzn 2023 | 10.40-1.amzn2023.0.2 | [ALAS2023-2023-045](https://patchblox.com/security/data/fix/linux/alas2023-2023-045.md) | Feb 17, 2023 |
| Linux | pcre2-debugsource amzn 2023 | 10.40-1.amzn2023.0.2 | [ALAS2023-2023-045](https://patchblox.com/security/data/fix/linux/alas2023-2023-045.md) | Feb 17, 2023 |
| Linux | pcre2-devel RHEL 8 | 0:10.32-3.el8_6 | [RHSA-2022:5809](https://patchblox.com/security/data/fix/linux/rhsa-2022-5809.md) | Aug 3, 2022 |
| Linux | pcre2-devel RHEL 9 | 0:10.37-5.el9_0 | [RHSA-2022:5251](https://patchblox.com/security/data/fix/linux/rhsa-2022-5251.md) | Jul 1, 2022 |
| Linux | pcre2-devel almalinux 8 | 10.32-3.el8_6 | [ALSA-2022:5809](https://patchblox.com/security/data/fix/linux/alsa-2022-5809.md) | Aug 3, 2022 |
| Linux | pcre2-devel amzn 2023 | 10.40-1.amzn2023.0.2 | [ALAS2023-2023-045](https://patchblox.com/security/data/fix/linux/alas2023-2023-045.md) | Feb 17, 2023 |
| Linux | pcre2-devel ol 8 | 0:10.32-3.el8_6 | [ELSA-2022-5809](https://patchblox.com/security/data/fix/linux/elsa-2022-5809.md) | Aug 2, 2022 |
| Linux | pcre2-devel ol 9 | 0:10.37-5.el9_0 | [ELSA-2022-5251](https://patchblox.com/security/data/fix/linux/elsa-2022-5251.md) | Jun 30, 2022 |
| Linux | pcre2-static amzn 2023 | 10.40-1.amzn2023.0.2 | [ALAS2023-2023-045](https://patchblox.com/security/data/fix/linux/alas2023-2023-045.md) | Feb 17, 2023 |
| Linux | pcre2-syntax RHEL 9 | 0:10.37-5.el9_0 | [RHSA-2022:5251](https://patchblox.com/security/data/fix/linux/rhsa-2022-5251.md) | Jul 1, 2022 |
| Linux | pcre2-syntax amzn 2023 | 10.40-1.amzn2023.0.2 | [ALAS2023-2023-045](https://patchblox.com/security/data/fix/linux/alas2023-2023-045.md) | Feb 17, 2023 |
| Linux | pcre2-syntax ol 9 | 0:10.37-5.el9_0 | [ELSA-2022-5251](https://patchblox.com/security/data/fix/linux/elsa-2022-5251.md) | Jun 30, 2022 |
| Linux | pcre2-tools RHEL 8 | 0:10.32-3.el8_6 | [RHSA-2022:5809](https://patchblox.com/security/data/fix/linux/rhsa-2022-5809.md) | Aug 3, 2022 |
| Linux | pcre2-tools almalinux 8 | 10.32-3.el8_6 | [ALSA-2022:5809](https://patchblox.com/security/data/fix/linux/alsa-2022-5809.md) | Aug 3, 2022 |
| Linux | pcre2-tools amzn 2023 | 10.40-1.amzn2023.0.2 | [ALAS2023-2023-045](https://patchblox.com/security/data/fix/linux/alas2023-2023-045.md) | Feb 17, 2023 |
| Linux | pcre2-tools ol 8 | 0:10.32-3.el8_6 | [ELSA-2022-5809](https://patchblox.com/security/data/fix/linux/elsa-2022-5809.md) | Aug 2, 2022 |
| Linux | pcre2-tools-debuginfo amzn 2023 | 10.40-1.amzn2023.0.2 | [ALAS2023-2023-045](https://patchblox.com/security/data/fix/linux/alas2023-2023-045.md) | Feb 17, 2023 |
| Linux | pcre2-utf16 RHEL 8 | 0:10.32-3.el8_6 | [RHSA-2022:5809](https://patchblox.com/security/data/fix/linux/rhsa-2022-5809.md) | Aug 3, 2022 |
| Linux | pcre2-utf16 RHEL 9 | 0:10.37-5.el9_0 | [RHSA-2022:5251](https://patchblox.com/security/data/fix/linux/rhsa-2022-5251.md) | Jul 1, 2022 |
| Linux | pcre2-utf16 almalinux 8 | 10.32-3.el8_6 | [ALSA-2022:5809](https://patchblox.com/security/data/fix/linux/alsa-2022-5809.md) | Aug 3, 2022 |
| Linux | pcre2-utf16 amzn 2023 | 10.40-1.amzn2023.0.2 | [ALAS2023-2023-045](https://patchblox.com/security/data/fix/linux/alas2023-2023-045.md) | Feb 17, 2023 |
| Linux | pcre2-utf16 ol 8 | 0:10.32-3.el8_6 | [ELSA-2022-5809](https://patchblox.com/security/data/fix/linux/elsa-2022-5809.md) | Aug 2, 2022 |
| Linux | pcre2-utf16 ol 9 | 0:10.37-5.el9_0 | [ELSA-2022-5251](https://patchblox.com/security/data/fix/linux/elsa-2022-5251.md) | Jun 30, 2022 |
| Linux | pcre2-utf16-debuginfo amzn 2023 | 10.40-1.amzn2023.0.2 | [ALAS2023-2023-045](https://patchblox.com/security/data/fix/linux/alas2023-2023-045.md) | Feb 17, 2023 |
| Linux | pcre2-utf32 RHEL 8 | 0:10.32-3.el8_6 | [RHSA-2022:5809](https://patchblox.com/security/data/fix/linux/rhsa-2022-5809.md) | Aug 3, 2022 |
| Linux | pcre2-utf32 RHEL 9 | 0:10.37-5.el9_0 | [RHSA-2022:5251](https://patchblox.com/security/data/fix/linux/rhsa-2022-5251.md) | Jul 1, 2022 |
| Linux | pcre2-utf32 almalinux 8 | 10.32-3.el8_6 | [ALSA-2022:5809](https://patchblox.com/security/data/fix/linux/alsa-2022-5809.md) | Aug 3, 2022 |
| Linux | pcre2-utf32 amzn 2023 | 10.40-1.amzn2023.0.2 | [ALAS2023-2023-045](https://patchblox.com/security/data/fix/linux/alas2023-2023-045.md) | Feb 17, 2023 |
| Linux | pcre2-utf32 ol 8 | 0:10.32-3.el8_6 | [ELSA-2022-5809](https://patchblox.com/security/data/fix/linux/elsa-2022-5809.md) | Aug 2, 2022 |
| Linux | pcre2-utf32 ol 9 | 0:10.37-5.el9_0 | [ELSA-2022-5251](https://patchblox.com/security/data/fix/linux/elsa-2022-5251.md) | Jun 30, 2022 |
| Linux | pcre2-utf32-debuginfo amzn 2023 | 10.40-1.amzn2023.0.2 | [ALAS2023-2023-045](https://patchblox.com/security/data/fix/linux/alas2023-2023-045.md) | Feb 17, 2023 |
| Linux | pcre2-utils Ubuntu 18.04.6 LTS (bionic) | 10.31-2ubuntu0.1~esm1 | [pcre2-utils 10.31-2ubuntu0.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-pcre2-utils-10.31-2ubuntu0.1-esm1.md) | May 16, 2022 |
| Linux | pcre2-utils Ubuntu 20.04 LTS (focal) | 10.34-7ubuntu0.1 | [pcre2-utils 10.34-7ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-pcre2-utils-10.34-7ubuntu0.1.md) | May 16, 2022 |
| Linux | pcre2-utils Ubuntu 22.04.1 LTS (jammy) | 10.39-3ubuntu0.1 | [pcre2-utils 10.39-3ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-pcre2-utils-10.39-3ubuntu0.1.md) | May 16, 2022 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
