Pear
CVE-2026-25237
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft malicious input in bug update email
-
ExploitInject PHP code into email content
-
Executionpreg_replace() with /e modifier evaluates code
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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)
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
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
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Affected Products (CPE)GitHub Advisory
PECL in the download utility class in the Installer in PEAR Base System v1.10.1 does not validate file types and filenam
PEAR HTML_AJAX 0.3.0 through 0.5.7 has a PHP Object Injection Vulnerability in the PHP Serializer. Rated critical severi
PEAR PHP framework has a seventh SQL injection with higher EPSS (0.12%), indicating more active scanning for this partic
PEAR PHP framework has another SQL injection vulnerability prior to version 1.33.0, the sixth in a series of critical se
PEAR PHP framework prior to 1.33.0 has a fifth SQL injection vulnerability, part of a comprehensive security audit that
PEAR PHP framework has a second SQL injection vulnerability in a different code path, providing an alternate database co
PEAR PHP framework prior to 1.33.0 has a SQL injection vulnerability allowing attackers to extract data from the compone
PEAR PHP framework prior to 1.33.0 has a logic bug in the roadmap feature allowing unauthorized access through incorrect
Pearweb versions up to 1.33.0 contains a vulnerability that allows attackers to guess verification tokens and potentiall
SQL injection in PEAR's apidoc queue insertion allows unauthenticated remote attackers to manipulate database queries by
The Crypt_GPG extension before 1.6.7 for PHP does not prevent additional options in GPG calls, which presents a risk for
NVD
CVE.org
EPSS
GitHub
Exploit-DB