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-1586

CVE-2022-1586: PCRE2 Buffer Overflow Vulnerability

CVE-2022-1586 is a buffer overflow vulnerability in the PCRE2 library affecting JIT-compiled regular expressions. The flaw allows out-of-bounds memory reads during unicode property matching. Learn about affected versions and mitigations.

Published: February 17, 2026

CVE-2022-1586 Overview

An out-of-bounds read vulnerability was discovered in the PCRE2 library in the compile_xclass_matchingpath() function of the pcre2_jit_compile.c file. This involves a unicode property matching issue in JIT-compiled regular expressions. The issue occurs because the character was not fully read in case-less matching within JIT.

Critical Impact

This vulnerability allows remote attackers to trigger out-of-bounds memory reads via specially crafted regular expressions, potentially leading to information disclosure or application crashes affecting numerous systems and applications that depend on the PCRE2 library.

Affected Products

  • PCRE PCRE2 (all versions prior to patch)
  • Fedora 35 and 36
  • Red Hat Enterprise Linux 8.0 and 9.0
  • NetApp Active IQ Unified Manager, HCI Management Node, ONTAP Select Deploy Administration Utility, SolidFire
  • NetApp H-Series Storage Systems (H300S, H500S, H700S, H410S, H410C) and associated firmware
  • Debian Linux 10.0

Discovery Timeline

  • 2022-05-16 - CVE-2022-1586 published to NVD
  • 2025-03-25 - Last updated in NVD database

Technical Details for CVE-2022-1586

Vulnerability Analysis

The vulnerability resides in the PCRE2 library's Just-In-Time (JIT) compilation engine, specifically within the compile_xclass_matchingpath() function in pcre2_jit_compile.c. When processing unicode property matching with case-less (case-insensitive) operations, the JIT compiler fails to fully read character data before performing comparisons.

This out-of-bounds read condition (CWE-125) occurs during the processing of character class matching in JIT-compiled regular expressions. The flaw manifests when the library attempts to handle PT_CLIST (property character list) operations without properly validating the preceding opcode type. As a result, the JIT engine may read memory beyond allocated boundaries when processing specially crafted regex patterns involving unicode properties and caseless matching.

The vulnerability is exploitable remotely over the network without requiring authentication or user interaction. Successful exploitation can lead to disclosure of sensitive memory contents or denial of service through application crashes.

Root Cause

The root cause lies in an incorrect conditional check within the JIT compilation logic. The original code checked *cc == PT_CLIST without properly verifying that the preceding operation was XCL_PROP. This caused the JIT compiler to incorrectly access memory when processing certain unicode property patterns in caseless matching mode.

The faulty logic in compile_xclass_matchingpath() would proceed with reading from PRIV(ucd_caseless_sets) based on an invalid pointer offset, leading to out-of-bounds memory access.

Attack Vector

The attack vector is network-based, allowing remote exploitation. An attacker can exploit this vulnerability by:

  1. Crafting a malicious regular expression pattern that includes unicode property matching with caseless flag
  2. Submitting this pattern to an application that uses PCRE2 with JIT compilation enabled
  3. Triggering the JIT compilation path to process the malicious pattern
  4. Causing the out-of-bounds read condition to execute, potentially leaking memory contents or crashing the application

Applications commonly affected include web servers, text processing utilities, email filters, intrusion detection systems, and any software that accepts user-supplied regular expressions and compiles them with PCRE2 JIT.

c
// Original vulnerable code in src/pcre2_jit_compile.c
    {
    SLJIT_ASSERT(*cc == XCL_PROP || *cc == XCL_NOTPROP);
    cc++;
-    if (*cc == PT_CLIST)
+    if (*cc == PT_CLIST && cc[-1] == XCL_PROP)
      {
      other_cases = PRIV(ucd_caseless_sets) + cc[1];
      while (*other_cases != NOTACHAR)

Source: GitHub PCRE2 Commit

The fix adds a proper check to ensure cc[-1] == XCL_PROP before proceeding with the caseless character set processing, preventing the out-of-bounds read.

Detection Methods for CVE-2022-1586

Indicators of Compromise

  • Unexpected application crashes in services using PCRE2 library with JIT enabled
  • Memory access violations or segmentation faults in regex processing components
  • Abnormal memory dumps or core files indicating out-of-bounds read operations in pcre2_jit_compile.c
  • Unusual regex patterns being submitted to applications, particularly those with unicode property syntax

Detection Strategies

  • Monitor application logs for PCRE2-related crashes or memory errors during regex compilation
  • Implement input validation to detect potentially malicious regex patterns with unicode property matching constructs
  • Use memory sanitizers (AddressSanitizer, Valgrind) in development environments to detect out-of-bounds reads
  • Deploy runtime application self-protection (RASP) solutions to detect abnormal memory access patterns

Monitoring Recommendations

  • Enable detailed logging for applications accepting user-supplied regular expressions
  • Configure crash reporting to capture stack traces involving PCRE2 library functions
  • Monitor system memory usage for anomalies that may indicate exploitation attempts
  • Implement alerting for repeated regex compilation failures or exceptions

How to Mitigate CVE-2022-1586

Immediate Actions Required

  • Update PCRE2 library to the latest patched version immediately
  • If immediate patching is not possible, disable JIT compilation in PCRE2 by not using PCRE2_JIT_COMPLETE, PCRE2_JIT_PARTIAL_SOFT, or PCRE2_JIT_PARTIAL_HARD flags
  • Review and restrict sources of user-supplied regular expressions
  • Apply vendor-specific patches from Red Hat, Fedora, Debian, and NetApp as appropriate for your environment

Patch Information

The vulnerability has been addressed through official patches committed to the PCRE2 project repository. The fix modifies the conditional check in compile_xclass_matchingpath() to properly validate the opcode type before processing caseless character matching.

Key patches are available at:

  • GitHub PCRE2 Commit d4fa336
  • GitHub PCRE2 Commit 50a51cb

Distribution-specific updates:

  • Red Hat Bug Report
  • Debian LTS Announcement
  • NetApp Security Advisory

Workarounds

  • Disable PCRE2 JIT compilation to avoid the vulnerable code path entirely
  • Implement strict input validation and sanitization for all user-supplied regular expressions
  • Use regex complexity limits to reject patterns that may be crafted to exploit this vulnerability
  • Consider using alternative regex engines that are not affected if PCRE2 cannot be updated
bash
# Example: Disable JIT in applications using PCRE2 (configuration varies by application)
# For PHP applications, add to php.ini:
pcre.jit=0

# For applications with PCRE2 compile-time options, rebuild without JIT:
./configure --disable-jit
make && make install

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.45%

  • 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

  • GitHub PCRE2 Commit Update

  • Debian LTS Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory

  • Red Hat Bug Report
  • Vendor Resources
  • GitHub PCRE2 Commit Change

  • GitHub PCRE2 Commit Update
  • Related CVEs
  • CVE-2022-1587: PCRE2 Library 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