Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2026-25237

CVE-2026-25237: Pear Pearweb RCE Vulnerability

CVE-2026-25237 is a remote code execution vulnerability in Pear Pearweb caused by unsafe preg_replace() usage that allows attackers to execute arbitrary PHP code. This article covers the technical details, affected versions, and mitigation.

Published: February 6, 2026

CVE-2026-25237 Overview

CVE-2026-25237 is a remote code execution vulnerability affecting PEAR Pearweb, the framework and distribution system for reusable PHP components. Prior to version 1.33.0, the use of preg_replace() with the /e modifier in bug update email handling can enable arbitrary PHP code execution if attacker-controlled content reaches the evaluated replacement pattern.

Critical Impact

This vulnerability allows unauthenticated remote attackers to execute arbitrary PHP code on affected servers by crafting malicious input that gets processed through the vulnerable preg_replace() function with the /e modifier.

Affected Products

  • PEAR Pearweb versions prior to 1.33.0

Discovery Timeline

  • 2026-02-03 - CVE-2026-25237 published to NVD
  • 2026-02-05 - Last updated in NVD database

Technical Details for CVE-2026-25237

Vulnerability Analysis

This vulnerability stems from the use of PHP's deprecated preg_replace() function with the /e (PREG_REPLACE_EVAL) modifier. When this modifier is used, the replacement string is evaluated as PHP code after substitution. In PEAR Pearweb's bug update email handling functionality, attacker-controlled content can flow into this evaluated replacement, enabling arbitrary code execution.

The /e modifier has been deprecated since PHP 5.5.0 and removed in PHP 7.0.0 precisely because of security risks like this one. However, applications running on older PHP versions or those that haven't updated their codebases remain vulnerable.

Root Cause

The root cause is classified under CWE-624 (Executable Regular Expression Error). The vulnerability exists because:

  1. The application uses preg_replace() with the /e modifier to process user-controlled input
  2. User-supplied data in bug update emails is not properly sanitized before reaching the regex evaluation
  3. The evaluated replacement allows injection of arbitrary PHP expressions that execute in the application context

This pattern represents a classic code injection vulnerability where regex replacement evaluation becomes an unintended code execution pathway.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Submitting specially crafted content through the bug update email handling system
  2. Crafting input that, when processed by the vulnerable preg_replace() call, injects malicious PHP code into the replacement string
  3. The injected code executes with the privileges of the web server process

For example, by including PHP function calls or shell commands within the crafted input, an attacker can achieve remote code execution, potentially leading to full server compromise, data exfiltration, or lateral movement within the network.

The vulnerability mechanism involves the deprecated /e modifier evaluating replacement strings as PHP code. When attacker-controlled data flows into this evaluation context without proper sanitization, arbitrary code execution becomes possible. For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-25237

Indicators of Compromise

  • Unusual PHP error logs referencing preg_replace() evaluation failures or unexpected code execution
  • Web server access logs showing suspicious requests to bug tracking or email handling endpoints with encoded PHP payloads
  • Unexpected outbound network connections from web server processes
  • Creation of new files or modifications to existing PHP files in the web root

Detection Strategies

  • Deploy web application firewall (WAF) rules to detect and block requests containing PHP code patterns in bug-related form submissions
  • Implement application-level logging for all preg_replace() calls to monitor for exploitation attempts
  • Use SentinelOne's Singularity Platform to detect anomalous process spawning from PHP/web server processes
  • Monitor for regex patterns containing the /e modifier in code through static analysis tools

Monitoring Recommendations

  • Enable verbose logging for the PEAR Pearweb application, particularly around bug tracking functionality
  • Configure intrusion detection systems to alert on PHP code execution patterns in HTTP request bodies
  • Implement file integrity monitoring on web application directories to detect unauthorized modifications
  • Monitor process trees for unusual child processes spawned by web server workers

How to Mitigate CVE-2026-25237

Immediate Actions Required

  • Upgrade PEAR Pearweb to version 1.33.0 or later immediately
  • If immediate patching is not possible, disable or restrict access to bug update email handling functionality
  • Implement strict input validation and sanitization for all user-controlled data
  • Consider upgrading to PHP 7.0+ where the /e modifier is no longer supported

Patch Information

The vulnerability has been addressed in PEAR Pearweb version 1.33.0. The patch removes the dangerous use of preg_replace() with the /e modifier and replaces it with the safer preg_replace_callback() function, which does not evaluate replacement strings as PHP code.

For complete patch details and upgrade instructions, refer to the GitHub Security Advisory GHSA-vhw6-hqh9-8r23.

Workarounds

  • Restrict network access to the PEAR Pearweb application to trusted IP ranges only
  • Implement a reverse proxy with strict input filtering to sanitize potentially malicious payloads
  • Disable the bug update email handling feature if it is not business-critical
  • Deploy a WAF rule to block requests containing PHP code execution patterns targeting the vulnerable endpoint
bash
# Example: Restrict access to bug handling endpoints via Apache
<Location "/bugs/">
    Require ip 10.0.0.0/8 192.168.0.0/16
</Location>

# Example: nginx configuration to limit access
location /bugs/ {
    allow 10.0.0.0/8;
    allow 192.168.0.0/16;
    deny all;
}

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPear

  • SeverityCRITICAL

  • CVSS Score9.2

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-624
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-25233: Pear Pearweb Auth Bypass Vulnerability

  • CVE-2026-25234: Pear Pearweb SQLI Vulnerability

  • CVE-2026-25235: Pear Pearweb Auth Bypass Vulnerability

  • CVE-2026-25236: Pear Pearweb SQLi Vulnerability
Default Legacy - Prefooter | 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