CVEfocus › CVE database › CVE-2022-1586

CVE-2022-1586

EPSS 3.0% (higher than 88% of CVEs)Published 2022-05-16Updated 2025-03-06Assigner: redhat

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.

CWE-125

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

34Fixed
2Fix pending
9Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04pcre2Not affected
vulnerable_code_not_present
Ubuntu 25.10pcre2Not affected
vulnerable_code_not_present
Ubuntu 24.04pcre2Not affected
vulnerable_code_not_present
Ubuntu 22.04pcre2Fixed10.39-3ubuntu0.1UBUNTU-CVE-2022-1586
Ubuntu 20.04pcre2Fixed10.34-7ubuntu0.1UBUNTU-CVE-2022-1586
Ubuntu 18.04pcre2Fix pending10.31-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-1586
Ubuntu 16.04pcre2Fix pendingUBUNTU-CVE-2022-1586
Debian 14pcre2Fixed10.40-1DEBIAN-CVE-2022-1586
Debian 13pcre2Fixed10.40-1DEBIAN-CVE-2022-1586
Debian 12pcre2Fixed10.40-1DEBIAN-CVE-2022-1586
Red Hat Enterprise Linux 9pcre2Fixed0:10.37-5.el9_0RHSA-2022:5251
Red Hat Enterprise Linux 9pcre2-develFixed0:10.37-5.el9_0RHSA-2022:5251
Red Hat Enterprise Linux 9pcre2-syntaxFixed0:10.37-5.el9_0RHSA-2022:5251
Red Hat Enterprise Linux 9pcre2-utf16Fixed0:10.37-5.el9_0RHSA-2022:5251
Red Hat Enterprise Linux 9pcre2-utf32Fixed0:10.37-5.el9_0RHSA-2022:5251
Red Hat Enterprise Linux 8pcre2Fixed0:10.32-3.el8_6RHSA-2022:5809
Red Hat Enterprise Linux 8pcre2-develFixed0:10.32-3.el8_6RHSA-2022:5809
Red Hat Enterprise Linux 8pcre2-toolsFixed0:10.32-3.el8_6RHSA-2022:5809
Red Hat Enterprise Linux 8pcre2-utf16Fixed0:10.32-3.el8_6RHSA-2022:5809
Red Hat Enterprise Linux 8pcre2-utf32Fixed0:10.32-3.el8_6RHSA-2022:5809
Red Hat Enterprise Linux 7pcre2Not affected
Red Hat Enterprise Linux 7pcre2-develNot affected
Red Hat Enterprise Linux 7pcre2-staticNot affected
Red Hat Enterprise Linux 7pcre2-toolsNot affected
Red Hat Enterprise Linux 7pcre2-utf16Not affected
Red Hat Enterprise Linux 7pcre2-utf32Not affected
AlmaLinux 8pcre2Fixed10.32-3.el8_6ALSA-2022:5809
AlmaLinux 8pcre2-develFixed10.32-3.el8_6ALSA-2022:5809
AlmaLinux 8pcre2-toolsFixed10.32-3.el8_6ALSA-2022:5809
AlmaLinux 8pcre2-utf16Fixed10.32-3.el8_6ALSA-2022:5809
AlmaLinux 8pcre2-utf32Fixed10.32-3.el8_6ALSA-2022:5809
Rocky Linux 9pcre2Fixed0:10.37-5.el9_0RLSA-2022:5251
Rocky Linux 8pcre2Fixed0:10.32-3.el8_6RLSA-2022:5809
Alpine Linux 3.24pcre2Fixed10.40-r0ALPINE-CVE-2022-1586
Alpine Linux 3.23pcre2Fixed10.40-r0ALPINE-CVE-2022-1586
Alpine Linux 3.22pcre2Fixed10.40-r0ALPINE-CVE-2022-1586
Alpine Linux 3.21pcre2Fixed10.40-r0ALPINE-CVE-2022-1586
Alpine Linux 3.20pcre2Fixed10.40-r0ALPINE-CVE-2022-1586
Alpine Linux 3.19pcre2Fixed10.40-r0ALPINE-CVE-2022-1586
Alpine Linux 3.18pcre2Fixed10.40-r0ALPINE-CVE-2022-1586
Alpine Linux 3.17pcre2Fixed10.40-r0ALPINE-CVE-2022-1586
Alpine Linux 3.16pcre2Fixed10.40-r0ALPINE-CVE-2022-1586
Alpine Linux 3.15pcre2Fixed10.40-r0ALPINE-CVE-2022-1586
Alpine Linux 3.14pcre2Fixed10.36-r1ALPINE-CVE-2022-1586
Alpine Linux 3.13pcre2Fixed10.36-r1ALPINE-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.

Vendor advisories:

References

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.