cve.bz

CVE-2022-1587 Out-of-bounds Read

9.1 criticalEPSS 2.8%Fix available

Critical (9.1). EPSS 2.8% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
EPSS
2.8% (unchanged from 2.8% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-1587 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-1587?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-1587?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-1587 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
pcre:pcre2before 10.40
redhat:enterprise_linux9.0
fedoraproject:fedora35
fedoraproject:fedora36

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10pcre210.32-5+deb10u1DLA-3363-1
Debian12, 13, 14pcre210.40-1DEBIAN-CVE-2022-1587
Ubuntu20.04:LTSpcre210.34-7ubuntu0.1UBUNTU-CVE-2022-1587 USN-5627-1
Ubuntu22.04:LTSpcre210.39-3ubuntu0.1UBUNTU-CVE-2022-1587 USN-5627-1
UbuntuPro:16.04:LTSpcre2no fix listedUBUNTU-CVE-2022-1587
UbuntuPro:18.04:LTSpcre210.31-2ubuntu0.1~esm1UBUNTU-CVE-2022-1587 USN-5627-2
Red Hatenterprise_linux:9::appstreampcre2-devel, pcre2-utf16, pcre2-utf32 and 5 more0:10.37-5.el9_0RHSA-2022:5251
Red Hatenterprise_linux:9::baseospcre2, pcre2-syntax, pcre2-debuginfo and 4 more0:10.37-5.el9_0RHSA-2022:5251
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 19 morepcre210.31-150000.3.12.1SUSE-SU-2022:2649-1
SUSELinux Enterprise Module for Basesystem 15 SP4pcre210.39-150400.4.6.1SUSE-SU-2022:2566-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS and 6 morepcre210.34-1.10.1SUSE-SU-2022:2565-1
openSUSELeap 15.3pcre210.31-150000.3.12.1SUSE-SU-2022:2649-1
openSUSELeap 15.4pcre210.39-150400.4.6.1SUSE-SU-2022:2566-1
openSUSELeap Micro 5.2pcre210.31-150000.3.12.1openSUSE-SU-2022:2649-1
Rocky Linux9pcre20:10.37-5.el9_0RLSA-2022:5251
Alpinev3.13, v3.14pcre210.36-r1ALPINE-CVE-2022-1587
Alpinev3.15, v3.16, v3.17 and 7 morepcre210.40-r0ALPINE-CVE-2022-1587

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 9pcre2-0:10.37-5.el9_0Fixed 2022-07-01RHSA-2022:5251
Red Hat Enterprise Linux 7pcre2Not affected
Red Hat Enterprise Linux 8pcre2Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-1587.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON