CVEfocus › CVE database › CVE-2022-1587

CVE-2022-1587

CVSS 9.1 CriticalEPSS 2.3% (higher than 84% of CVEs)Published 2022-05-16Updated 2024-08-03Assigner: redhat

An out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of the pcre2_jit_compile.c file. This issue affects recursions in JIT-compiled regular expressions caused by duplicate data transfers.

CWE-125

What to do

Fixed builds are available from 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

23Fixed
2Fix pending
14Not 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-1587
Ubuntu 20.04pcre2Fixed10.34-7ubuntu0.1UBUNTU-CVE-2022-1587
Ubuntu 18.04pcre2Fix pending10.31-2ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-1587
Ubuntu 16.04pcre2Fix pendingUBUNTU-CVE-2022-1587
Debian 14pcre2Fixed10.40-1DEBIAN-CVE-2022-1587
Debian 13pcre2Fixed10.40-1DEBIAN-CVE-2022-1587
Debian 12pcre2Fixed10.40-1DEBIAN-CVE-2022-1587
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 8pcre2Not affected
Red Hat Enterprise Linux 8pcre2-develNot affected
Red Hat Enterprise Linux 8pcre2-toolsNot affected
Red Hat Enterprise Linux 8pcre2-utf16Not affected
Red Hat Enterprise Linux 8pcre2-utf32Not affected
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
Rocky Linux 9pcre2Fixed0:10.37-5.el9_0RLSA-2022:5251
Alpine Linux 3.24pcre2Fixed10.40-r0ALPINE-CVE-2022-1587
Alpine Linux 3.23pcre2Fixed10.40-r0ALPINE-CVE-2022-1587
Alpine Linux 3.22pcre2Fixed10.40-r0ALPINE-CVE-2022-1587
Alpine Linux 3.21pcre2Fixed10.40-r0ALPINE-CVE-2022-1587
Alpine Linux 3.20pcre2Fixed10.40-r0ALPINE-CVE-2022-1587
Alpine Linux 3.19pcre2Fixed10.40-r0ALPINE-CVE-2022-1587
Alpine Linux 3.18pcre2Fixed10.40-r0ALPINE-CVE-2022-1587
Alpine Linux 3.17pcre2Fixed10.40-r0ALPINE-CVE-2022-1587
Alpine Linux 3.16pcre2Fixed10.40-r0ALPINE-CVE-2022-1587
Alpine Linux 3.15pcre2Fixed10.40-r0ALPINE-CVE-2022-1587
Alpine Linux 3.14pcre2Fixed10.36-r1ALPINE-CVE-2022-1587
Alpine Linux 3.13pcre2Fixed10.36-r1ALPINE-CVE-2022-1587

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.