Skip to main content

Pear CVE-2026-25237

CRITICAL
Executable Regular Expression Error (CWE-624)
2026-02-03 security-advisories@github.com
9.8
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft malicious input in bug update email
  2. Exploit
    Inject PHP code into email content
  3. Execution
    preg_replace() with /e modifier evaluates code
  4. Impact
    Execute arbitrary PHP commands on server

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V2 - Validation and Business Logic Executable regular expression
Exploitation Conditions

PEAR versions prior to 1.33.0 with bug update email handling enabled. Attacker-controlled content must reach the preg_replace() /e modifier evaluation in email processing functionality. No authentication or user interaction required.

Impact

CVSS 9.8 — fourth critical PEAR vulnerability. preg_replace-based code execution is a classic PHP exploitation technique.

Exploit ScenarioDerived

An attacker crafts input that is processed by the vulnerable preg_replace call, injecting PHP code in the replacement string that executes on the server.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 12, 2026

PEAR PHP framework has a code execution vulnerability through unsafe use of preg_replace() that allows attackers to execute arbitrary PHP code.

Earlier versions of this analysis (1)
v1 Mar 12, 2026 - 21:54 CVSS 9.8

preg_replace code execution in PEAR framework enables arbitrary PHP execution.

RemediationAI

Update to PEAR 1.33.0+. Replace preg_replace /e modifier usage with preg_replace_callback.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

PEAR < 1.33.0 uses preg_replace() with patterns that allow code execution (CWE-624), likely through the deprecated /e modifier or PREG_REPLACE_EVAL that evaluates replacement strings as PHP code.

Know when Pear gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionGitHub Advisory

PEAR is a framework and distribution system for reusable PHP components. Prior to version 1.33.0, use of preg_replace() with the /e modifier in bug update email handling can enable PHP code execution if attacker-controlled content reaches the evaluated replacement. This issue has been patched in version 1.33.0.

Executive ViewAI

Why It Matters

A critical vulnerability in Pearweb (CVE-2026-25237) allows remote attackers to execute arbitrary PHP code on affected systems, potentially leading to complete server compromise. Organizations running Pearweb versions 1.33.0 and earlier face immediate risk of data breach, service disruption, and unauthorized system access. Immediate mitigation is required as no patch is currently available.

Business Impact: Severe
Compensating Controls

Deploy Web Application Firewall (WAF) rules to detect and block PHP code injection patterns in replacement parameters; implement network segmentation to limit lateral movement from compromised Pearweb instances; disable or restrict the dynamic replacement evaluation feature if business logic allows; enforce strict input validation and output encoding at application layer; increase monitoring and alerting on file writes and process execution from web server processes; consider running Pearweb in a sandboxed environment with minimal privileges.

Threat Intelligence Overview

EPSS Score
0.1%
Top 70% exploitable
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
Very High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Affected Products (CPE)GitHub Advisory

cpe:2.3:a:pear:pearweb:*:*:*:*:*:*:*:*

More in Pear

View all
CVE-2017-5630 HIGH POC
7.5 Feb 01

PECL in the download utility class in the Installer in PEAR Base System v1.10.1 does not validate file types and filenam

CVE-2017-5677 CRITICAL
9.8 Feb 06

PEAR HTML_AJAX 0.3.0 through 0.5.7 has a PHP Object Injection Vulnerability in the PHP Serializer. Rated critical severi

CVE-2026-25241 CRITICAL
9.8 Feb 03

PEAR PHP framework has a seventh SQL injection with higher EPSS (0.12%), indicating more active scanning for this partic

CVE-2026-25240 CRITICAL
9.8 Feb 03

PEAR PHP framework has another SQL injection vulnerability prior to version 1.33.0, the sixth in a series of critical se

CVE-2026-25238 CRITICAL
9.8 Feb 03

PEAR PHP framework prior to 1.33.0 has a fifth SQL injection vulnerability, part of a comprehensive security audit that

CVE-2026-25236 CRITICAL
9.8 Feb 03

PEAR PHP framework has a second SQL injection vulnerability in a different code path, providing an alternate database co

CVE-2026-25234 CRITICAL
9.8 Feb 03

PEAR PHP framework prior to 1.33.0 has a SQL injection vulnerability allowing attackers to extract data from the compone

CVE-2026-25233 CRITICAL
9.1 Feb 03

PEAR PHP framework prior to 1.33.0 has a logic bug in the roadmap feature allowing unauthorized access through incorrect

CVE-2026-25235 HIGH
7.5 Feb 03

Pearweb versions up to 1.33.0 contains a vulnerability that allows attackers to guess verification tokens and potentiall

CVE-2026-25239 HIGH
7.5 Feb 03

SQL injection in PEAR's apidoc queue insertion allows unauthenticated remote attackers to manipulate database queries by

CVE-2022-24953 MEDIUM
5.3 Feb 17

The Crypt_GPG extension before 1.6.7 for PHP does not prevent additional options in GPG calls, which presents a risk for

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy