CVE-2022-1587
Description
An out-of-bounds read in PCRE2's JIT compiler occurs when processing specific recursive regular expression patterns, potentially leading to application crash or information disclosure.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
An out-of-bounds read in PCRE2's JIT compiler occurs when processing specific recursive regular expression patterns, potentially leading to application crash or information disclosure.
Vulnerability
An out-of-bounds read vulnerability exists 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 [1]. The vulnerability is present in versions prior to the commit 03654e7 [1].
Exploitation
An attacker can trigger this vulnerability by supplying a crafted regular expression pattern containing specific recursive constructs that cause duplicate data transfers during JIT compilation [1]. The attacker does not require any special privileges or authentication, as the vulnerable code path is reachable when PCRE2 processes user-supplied patterns. A successful exploitation does not require user interaction beyond the processing of the malicious pattern.
Impact
A successful out-of-bounds read can lead to the disclosure of sensitive memory contents or cause a denial of service (application crash). The scope of compromise is limited to the context of the application using the PCRE2 library; the attacker may gain access to information that could aid in further exploitation or simply cause the service to terminate [1].
Mitigation
The fix for CVE-2022-1587 was implemented in commit 03654e7 on the PCRE2 repository [1]. Users should update to a version of PCRE2 that includes this commit or later. The Fedora package announcements (references [2], [3], [4]) indicate that updates have been distributed for Fedora distributions [2][3][4]. No workarounds are available other than applying the patch or updating to the fixed version. There is no known inclusion of this CVE in the CISA Known Exploited Vulnerabilities catalog.
- Fixed an issue affecting recursions in JIT · PCRE2Project/pcre2@03654e7
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DWNG2NS3GINO6LQYUVC4BZLUQPJ3DYHA/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KAX7767BCUFC7JMDGP7GOQ5GIZCAUGBB/
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JXINO3KKI5DICQ45E2FKD6MKVMGJLEKJ/
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
51- osv-coords49 versionspkg:apk/chainguard/libpcre2-16-0pkg:apk/chainguard/libpcre2-32-0pkg:apk/chainguard/libpcre2-8-0pkg:apk/chainguard/libpcre2-posix-3pkg:apk/chainguard/pcre2pkg:apk/chainguard/pcre2-devpkg:apk/chainguard/pcre2-docpkg:apk/wolfi/libpcre2-16-0pkg:apk/wolfi/libpcre2-32-0pkg:apk/wolfi/libpcre2-8-0pkg:apk/wolfi/libpcre2-posix-3pkg:apk/wolfi/pcre2pkg:apk/wolfi/pcre2-devpkg:apk/wolfi/pcre2-docpkg:rpm/opensuse/pcre2&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/pcre2&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/pcre2&distro=openSUSE%20Leap%20Micro%205.2pkg:rpm/suse/pcre2&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/pcre2&distro=SUSE%20Enterprise%20Storage%207pkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-ESPOSpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-BCLpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/pcre2&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/pcre2&distro=SUSE%20Manager%20Proxy%204.1pkg:rpm/suse/pcre2&distro=SUSE%20Manager%20Retail%20Branch%20Server%204.1pkg:rpm/suse/pcre2&distro=SUSE%20Manager%20Server%204.1pkg:rpm/suse/pcre2&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/pcre2&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209
< 0+ 48 more
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.39-150400.4.6.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.39-150400.4.6.1
- (no CPE)range: < 10.34-1.10.1
- (no CPE)range: < 10.34-1.10.1
- (no CPE)range: < 10.34-1.10.1
- (no CPE)range: < 10.34-1.10.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.34-1.10.1
- (no CPE)range: < 10.34-1.10.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.34-1.10.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.31-150000.3.12.1
- (no CPE)range: < 10.34-1.10.1
- (no CPE)range: < 10.34-1.10.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
8- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DWNG2NS3GINO6LQYUVC4BZLUQPJ3DYHA/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JXINO3KKI5DICQ45E2FKD6MKVMGJLEKJ/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KAX7767BCUFC7JMDGP7GOQ5GIZCAUGBB/mitrevendor-advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M2GLQQUEY5VFM57CFYXVIFOXN2HUZPDM/mitrevendor-advisory
- lists.debian.org/debian-lts-announce/2023/03/msg00014.htmlmitremailing-list
- bugzilla.redhat.com/show_bug.cgimitre
- github.com/PCRE2Project/pcre2/commit/03654e751e7f0700693526b67dfcadda6b42c9d0mitre
- security.netapp.com/advisory/ntap-20221028-0009/mitre
News mentions
0No linked articles in our index yet.