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

CVE-2022-41409: Pcre2 Integer Overflow DOS Vulnerability

CVE-2022-41409 is an integer overflow vulnerability in pcre2test before version 10.41 that enables denial of service attacks via negative input. This article covers technical details, affected versions, security impact, and mitigation.

Published: February 18, 2026

CVE-2022-41409 Overview

CVE-2022-41409 is an integer overflow vulnerability affecting the pcre2test utility in PCRE2 (Perl Compatible Regular Expressions 2) versions prior to 10.41. This vulnerability allows attackers to cause a denial of service or potentially trigger other unspecified impacts by providing negative input values in test subject lines, leading to infinite looping conditions.

Critical Impact

This integer overflow vulnerability can result in denial of service through infinite loops when processing maliciously crafted negative repeat values, potentially affecting applications and systems that rely on PCRE2 for regular expression processing.

Affected Products

  • PCRE2 versions prior to 10.41
  • pcre2test testing utility component
  • Systems and applications utilizing vulnerable PCRE2 library versions

Discovery Timeline

  • 2023-07-18 - CVE-2022-41409 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-41409

Vulnerability Analysis

This vulnerability stems from an integer overflow condition (CWE-190) within the pcre2test utility. When the utility processes subject lines containing repeat values, it fails to properly validate and diagnose negative input values. This improper input validation leads to an integer overflow condition that causes the application to enter an infinite loop, consuming CPU resources indefinitely.

The pcre2test utility is a command-line program used for testing PCRE2 regular expression patterns. While primarily a testing tool, the underlying integer handling issues it exhibits could have broader implications for applications integrating PCRE2 functionality without proper input sanitization.

Root Cause

The root cause of CVE-2022-41409 is the absence of proper validation for negative repeat values in pcre2test subject line processing. When a negative value is provided where a positive repeat count is expected, the integer overflow occurs, and the application fails to detect or handle this invalid condition appropriately. This results in undefined behavior manifesting as infinite loop execution.

Attack Vector

The attack vector is network-based, requiring no privileges or user interaction. An attacker can exploit this vulnerability by:

  1. Providing crafted input containing negative repeat values to the pcre2test utility
  2. Triggering the integer overflow condition through malformed test data
  3. Causing the application to enter an infinite loop, resulting in denial of service

The vulnerability can be exploited remotely if the pcre2test utility or applications using similar PCRE2 functionality process untrusted input from network sources.

text
// Security patch excerpt from ChangeLog
 produced errors when building for Windows with #define PCRE2_CALL_CONVENTION
 __stdcall.
 
+20. A negative repeat value in a pcre2test subject line was not being 
+diagnosed, leading to infinite looping.
+
 
Version 10.40 15-April-2022
---------------------------

Source: GitHub Commit 94e1c001761373b7d9450768aa15d04c25547a35

Detection Methods for CVE-2022-41409

Indicators of Compromise

  • Unusual CPU utilization spikes associated with pcre2test or PCRE2-dependent processes
  • Application hang conditions or unresponsive behavior during regular expression processing
  • System resource exhaustion from processes stuck in infinite loops
  • Log entries indicating abnormal or malformed input being processed by PCRE2 components

Detection Strategies

  • Monitor for processes exhibiting high CPU utilization with no corresponding I/O activity
  • Implement application-level logging to track input validation failures in PCRE2 processing routines
  • Deploy behavioral analysis to detect anomalous looping patterns in regex processing applications
  • Use static analysis tools to identify applications using vulnerable PCRE2 library versions

Monitoring Recommendations

  • Configure resource monitoring alerts for pcre2test and related processes
  • Implement process watchdogs to detect and terminate hung processes
  • Review application logs for evidence of integer overflow or boundary condition errors
  • Maintain an inventory of systems running vulnerable PCRE2 versions for targeted monitoring

How to Mitigate CVE-2022-41409

Immediate Actions Required

  • Upgrade PCRE2 to version 10.41 or later immediately
  • Audit systems to identify all instances of vulnerable PCRE2 installations
  • Implement input validation to filter negative values before passing data to PCRE2 functions
  • Apply process resource limits to prevent denial of service from infinite loops

Patch Information

The PCRE2 project has addressed this vulnerability in version 10.41. The security fix adds proper diagnosis and handling of negative repeat values in pcre2test subject lines, preventing the infinite loop condition. Organizations should apply this update by obtaining the patched version from the official PCRE2 repository.

The specific fix is available in GitHub commit 94e1c001761373b7d9450768aa15d04c25547a35. Additional technical discussion can be found in the GitHub issue #141.

Workarounds

  • Implement input sanitization to reject negative repeat values before PCRE2 processing
  • Deploy application-level timeouts for regular expression operations to prevent infinite loops
  • Restrict access to pcre2test utility to trusted users and environments only
  • Use process isolation and resource limits (cgroups, ulimit) to contain potential denial of service impacts
bash
# Configuration example - Process resource limits
# Add to /etc/security/limits.conf or use ulimit
# Limit CPU time to prevent infinite loop resource exhaustion
ulimit -t 60  # Limit CPU time to 60 seconds

# Alternative: Use timeout command for pcre2test operations
timeout 30s pcre2test -options input_file

# Implement cgroup CPU limits for PCRE2 processes
cgcreate -g cpu:/pcre2_limited
cgset -r cpu.cfs_quota_us=50000 pcre2_limited
cgexec -g cpu:pcre2_limited /usr/bin/pcre2test

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPcre

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • GitHub Issue Discussion
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2022-1586: PCRE2 Buffer Overflow Vulnerability

  • CVE-2022-1587: PCRE2 Library Buffer Overflow Vulnerability

  • CVE-2020-14155: PCRE Buffer Overflow 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