Skip to content
Fencer Intel
critical 9.1

CVE-2022-1587 json

An out-of-bounds read vulnerability was discovered in the PCRE2 library in the get_recurse_data_length() function of the pcre2_jit_compile.…

published 4y ago modified 4mo ago also EUVD-2022-24877

cvss
9.1
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.8%
EPSS 2.8% chance of exploitation in 30 days, percentile 86%
public exploits
0
none known

Summary

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.

Patch / fix

  • pcre pcre2 10.40
  • pcre2 Debian 14, Debian 13, Debian 12 10.40-1

debian advisories DEBIAN-CVE-2022-1587

  • pcre2 Ubuntu 20.04 LTS 10.34-7ubuntu0.1
  • pcre2 Ubuntu 22.04 LTS 10.39-3ubuntu0.1
  • pcre2 Ubuntu Pro 18.04 LTS 10.31-2ubuntu0.1~esm1

ubuntu advisories UBUNTU-CVE-2022-1587

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • pcre2 RHEL 9 10.37-5.el9_0
  • pcre2-utf16 RHEL 9 10.37-5.el9_0
  • pcre2-utf32 RHEL 9 10.37-5.el9_0
  • pcre2-syntax RHEL 9 10.37-5.el9_0

red hat advisories RHSA-2022:5251

  • pcre2 SLES for SAP 15 SP2, SLES for SAP 15 SP1, SLES for SAP 15 +20 more 10.31-150000.3.12.1
  • pcre2 SLE Module for Basesystem 15 SP4, openSUSE Leap 15.4 10.39-150400.4.6.1
  • pcre2 SLES for SAP 12 SP5, SLES for SAP 12 SP4, SLES 12 SP5 +6 more 10.34-1.10.1

suse advisories SUSE-SU-2022:2649-1SUSE-SU-2022:2566-1SUSE-SU-2022:2565-1

  • pcre2 openSUSE Leap Micro 5.2 10.31-150000.3.12.1

opensuse advisories openSUSE-SU-2022:2649-1

  • pcre2 Rocky Linux 9 10.37-5.el9_0

rocky linux advisories RLSA-2022:5251

  • pcre2 Alpine 3.14, Alpine 3.13 10.36-r1
  • pcre2 Alpine 3.24, Alpine 3.23, Alpine 3.22 +7 more 10.40-r0

alpine advisories ALPINE-CVE-2022-1587

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Is CVE-2022-1587 in your stack? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2022-1587 updated cvss 7.5

pcre2: Out-of-bounds read in get_recurse_data_length in pcre2_jit_compile.c

  • Red Hat Enterprise Linux AppStream (v. 9) pcre2-utf16 10.37-5.el9_0, pcre2-utf32 10.37-5.el9_0 Red Hat Enterprise Linux BaseOS (v. 9) pcre2 10.37-5.el9_0, pcre2-syntax 10.37-5.el9_0
    fixed: vendor fix RHSA-2022:5251
  • Red Hat Enterprise Linux 7 pcre2, pcre2-tools, pcre2-utf16, pcre2-utf32 Red Hat Enterprise Linux 8 pcre2, pcre2-tools, pcre2-utf16, pcre2-utf32
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.77% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-09).

CVSS scores

assigned by version score vector
NVD 3.1 9.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
NVD 2.0 6.4 AV:N/AC:L/Au:N/C:P/I:N/A:P

Affected products

  • n/a pcre2

Classification

Weakness

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.