The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2022-1587

CVE-2022-1587: PCRE2 Library Buffer Overflow Vulnerability

CVE-2022-1587 is a buffer overflow flaw in the PCRE2 library affecting JIT-compiled regular expressions. This vulnerability can lead to out-of-bounds reads in recursion handling. This article covers technical details, impact, and mitigation.

Published: February 18, 2026

CVE-2022-1587 Overview

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. The vulnerability allows remote attackers to potentially read sensitive information from memory or cause a denial of service condition through crafted input that triggers the out-of-bounds memory access.

Critical Impact

This vulnerability can lead to information disclosure through memory exposure and denial of service, affecting applications that rely on PCRE2 for regular expression processing with JIT compilation enabled.

Affected Products

  • PCRE2 (Perl Compatible Regular Expressions 2)
  • Red Hat Enterprise Linux 9.0
  • Fedora 35 and 36
  • NetApp Active IQ Unified Manager (VMware vSphere)
  • NetApp HCI Management Node
  • NetApp ONTAP Select Deploy Administration Utility
  • NetApp SolidFire
  • NetApp H300S, H500S, H700S, H410S, H410C (firmware and hardware)

Discovery Timeline

  • May 16, 2022 - CVE-2022-1587 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2022-1587

Vulnerability Analysis

The vulnerability exists within the Just-In-Time (JIT) compilation component of the PCRE2 library. When processing complex regular expressions that involve recursive patterns, the get_recurse_data_length() function fails to properly validate memory boundaries during data transfer operations. This results in an out-of-bounds read condition where the function may access memory beyond the allocated buffer.

The flaw is triggered specifically when duplicate data transfers occur during the JIT compilation of recursive regular expressions. The JIT compiler, designed to optimize pattern matching performance, incorrectly calculates the length of recursive data structures, leading to improper memory access patterns.

Root Cause

The root cause stems from improper bounds checking in the get_recurse_data_length() function within pcre2_jit_compile.c. During recursion handling, the function performs data transfers that may be duplicated under certain conditions. The code failed to account for these duplicate transfers when calculating buffer boundaries, resulting in read operations that exceed allocated memory regions. This is classified as CWE-125 (Out-of-bounds Read).

Attack Vector

The vulnerability can be exploited remotely through network-based attack vectors. An attacker can craft malicious regular expressions that, when processed by an application using the vulnerable PCRE2 library with JIT compilation enabled, trigger the out-of-bounds read condition. This could be achieved by:

  1. Submitting crafted input to web applications that use PCRE2 for pattern matching
  2. Targeting services that process user-supplied regular expressions
  3. Exploiting applications that compile and execute regular expressions from untrusted sources

The attack requires no authentication or user interaction, making it particularly dangerous for internet-facing services.

text
 23. Fixed a unicode properrty matching issue in JIT. The character was not
 fully read in caseless matching.
 
+24. Fixed an issue affecting recursions in JIT caused by duplicated data
+transfers.
+
 
 Version 10.39 29-October-2021
 -----------------------------

Source: GitHub PCRE2 Commit

Detection Methods for CVE-2022-1587

Indicators of Compromise

  • Unexpected crashes or segmentation faults in applications using PCRE2 library
  • Memory access violations in processes performing regular expression matching
  • Abnormal memory read patterns detected by runtime memory safety tools
  • Application logs showing errors related to JIT-compiled regex recursion handling

Detection Strategies

  • Monitor for memory access violations or SIGSEGV signals in applications linked with PCRE2
  • Implement application-level logging to detect failed regex compilation attempts
  • Use address sanitizer (ASan) or memory debugging tools to identify out-of-bounds read attempts
  • Deploy intrusion detection rules to identify crafted regex patterns targeting recursive processing

Monitoring Recommendations

  • Enable verbose logging for applications that process user-supplied regular expressions
  • Implement rate limiting on regex processing endpoints to mitigate exploitation attempts
  • Monitor system logs for repeated crashes in PCRE2-dependent applications
  • Deploy memory monitoring solutions to detect abnormal memory access patterns

How to Mitigate CVE-2022-1587

Immediate Actions Required

  • Update PCRE2 library to the latest patched version immediately
  • Review and update all applications that bundle or statically link PCRE2
  • Apply vendor-specific patches for Red Hat Enterprise Linux, Fedora, and NetApp products
  • Disable JIT compilation temporarily if immediate patching is not possible

Patch Information

The PCRE2 project has released a fix through commit 03654e751e7f0700693526b67dfcadda6b42c9d0. This patch addresses the issue affecting recursions in JIT caused by duplicated data transfers. Administrators should apply the following vendor-specific patches:

  • PCRE2: Apply the security commit from the PCRE2 GitHub repository
  • Red Hat: Refer to the Red Hat Bug Report for RHEL-specific updates
  • Fedora: Install updates via the Fedora Package Announcements
  • NetApp: Review the NetApp Security Advisory for affected products
  • Debian: Apply updates referenced in the Debian LTS Announcement

Workarounds

  • Disable JIT compilation in PCRE2 by not setting the PCRE2_JIT_COMPLETE flag during compilation
  • Implement input validation to restrict complexity of user-supplied regular expressions
  • Use sandboxing or containerization to limit the impact of potential exploitation
  • Restrict network access to services that process untrusted regular expressions
bash
# Configuration example - Disable JIT compilation in PCRE2
# When compiling patterns, avoid using JIT by omitting the jit_compile call
# Example: Instead of calling pcre2_jit_compile(), use interpreted matching

# For applications with configuration options, disable JIT:
# PHP: pcre.jit=0 in php.ini
# Apache: Ensure mod_rewrite doesn't use JIT if configurable

# Verify PCRE2 version after patching
pcre2grep --version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechPcre

  • SeverityCRITICAL

  • CVSS Score9.1

  • EPSS Probability0.25%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-125
  • Technical References
  • Red Hat Bug Report

  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory
  • Vendor Resources
  • GitHub PCRE2 Commit
  • Related CVEs
  • CVE-2022-1586: PCRE2 Buffer Overflow Vulnerability

  • CVE-2020-14155: PCRE Buffer Overflow Vulnerability

  • CVE-2022-41409: Pcre2 Integer Overflow DOS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English