Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-25240: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in pear pearweb

0
Medium
VulnerabilityCVE-2026-25240cvecve-2026-25240cwe-89
Published: Tue Feb 03 2026 (02/03/2026, 18:31:01 UTC)
Source: CVE Database V5
Vendor/Project: pear
Product: pearweb

Description

CVE-2026-25240 is a medium-severity SQL injection vulnerability affecting pearweb versions prior to 1. 33. 0. The flaw exists in the user::maintains() function when role filters are passed as an array and interpolated unsafely into an SQL IN clause, allowing attackers to inject malicious SQL commands. This vulnerability requires no authentication or user interaction and can be exploited remotely over the network. Although no known exploits are currently in the wild, successful exploitation could lead to partial confidentiality impact by leaking data. The vulnerability has been patched in pearweb version 1. 33. 0. European organizations using pearweb in their PHP environments should prioritize updating to the fixed version to mitigate risk.

AI-Powered Analysis

AILast updated: 02/03/2026, 19:16:30 UTC

Technical Analysis

CVE-2026-25240 is a SQL injection vulnerability identified in the pearweb component of the PEAR PHP framework, specifically in versions prior to 1.33.0. The vulnerability arises in the user::maintains() function when role filters are supplied as an array and directly interpolated into an SQL IN clause without proper sanitization or parameterization. This improper neutralization of special elements (CWE-89) allows an unauthenticated remote attacker to inject arbitrary SQL commands, potentially manipulating the database query logic. The vulnerability does not require authentication or user interaction, increasing its risk profile. The CVSS 4.0 base score is 6.9 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, and no user interaction needed. The impact is mainly on confidentiality, with limited integrity or availability effects. No known exploits have been reported in the wild yet. The issue was addressed by the pearweb maintainers in version 1.33.0 by correcting the query construction to safely handle role filters, likely through parameterized queries or proper escaping. Organizations using pearweb in their PHP applications should review their versions and upgrade promptly to avoid exploitation.

Potential Impact

For European organizations, the primary impact of this vulnerability is the potential unauthorized disclosure of sensitive data stored in databases accessed via pearweb. Attackers exploiting this SQL injection could extract user information, configuration details, or other confidential data, leading to privacy breaches and compliance violations under regulations like GDPR. While the vulnerability does not directly enable data modification or service disruption, the confidentiality compromise alone can damage organizational reputation and incur regulatory penalties. Since pearweb is a PHP component used in web applications, any public-facing services using vulnerable versions are at risk of remote exploitation without authentication. This risk is heightened for organizations relying on pearweb for user management or role-based access control, as attackers could leverage injected queries to bypass security controls. The absence of known exploits suggests a window of opportunity for proactive mitigation. European entities with extensive PHP infrastructure, especially those in financial, governmental, or technology sectors, should consider this vulnerability a moderate threat to their data security posture.

Mitigation Recommendations

1. Upgrade pearweb to version 1.33.0 or later immediately to apply the official patch that fixes the SQL injection vulnerability. 2. Conduct a thorough code audit of all PHP applications using pearweb, focusing on any custom code that manipulates role filters or constructs SQL queries with user-supplied input. 3. Refactor vulnerable code to use parameterized queries or prepared statements rather than string interpolation for SQL commands, especially when handling arrays or lists in IN clauses. 4. Implement strict input validation and sanitization for all user inputs that influence database queries. 5. Employ web application firewalls (WAFs) with rules designed to detect and block SQL injection attempts targeting pearweb endpoints. 6. Monitor logs and network traffic for unusual query patterns or error messages indicative of attempted SQL injection. 7. Educate developers on secure coding practices related to database access and input handling to prevent similar vulnerabilities. 8. If upgrading is not immediately feasible, consider applying temporary mitigations such as restricting access to vulnerable endpoints or disabling features that use role filters in queries.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-01-30T14:44:47.329Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 698245bcf9fa50a62fda122e

Added to database: 2/3/2026, 7:00:12 PM

Last enriched: 2/3/2026, 7:16:30 PM

Last updated: 2/3/2026, 8:02:06 PM

Views: 4

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats