CVE-2026-25240 PEAR is Vulnerable to SQL Injection in user::maintains() Role IN() Filter
Attackers can execute arbitrary SQL commands via the role filter in PEAR's user maintenance function, potentially compromising database integrity.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-25240?
CVE-2026-25240 is a medium-severity SQL injection vulnerability in pearweb, published on 3 Feb 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
PEAR is a framework and distribution system for reusable PHP components. Prior to version 1.33.0, a SQL injection vulnerability can occur in user::maintains() when role filters are provided as an array and interpolated into an IN (...) clause. This issue has been patched in version 1.33.0.
Weakness: CWE-89
Which versions are affected by CVE-2026-25240?
It affects 1 product.
Products include Pear Pearweb.
How do I fix CVE-2026-25240?
No fix has been published for CVE-2026-25240 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2026-25240 being exploited?
There is no known exploitation of CVE-2026-25240 in the wild and no public exploit code.
Other vulnerabilities in pearweb
- CVE-2026-25241 PEAR is Vulnerable to SQL Injection in /get/<package>/<version> Endpoint
- CVE-2026-25237 PEAR is Vulnerable to PHP Code Execution via preg_replace /e in Bug Update Emails
- CVE-2026-25238 PEAR is Vulnerable to SQL Injection in Bug Subscription Deletion via Weak Email Validation
- CVE-2026-25235 PEAR Has a Predictable Verification Hash in Election Account Requests
- CVE-2026-25239 PEAR is Vulnerable to SQL Injection in apidoc_queue Insert via Unescaped Filename
Sources
Also known as GHSA-xw9g-5gr2-c44f.