CVE-2026-25240CWE-89

PEAR is Vulnerable to SQL Injection in user::maintains() Role IN() Filter

Medium · published February 3, 2026

CVSS v4.0
6.9
EPSS
0%
Percentile
21.8
In the wild
Unconfirmed
What it is

⚠️ A sneaky SQL injection lurks in PEAR's user::maintains() method before version 1.33.0! Just a crafty array of role filters could let an attacker sneak a query in that they shouldn’t be able to execute. 🔥 Think of this like a restaurant that accidentally lets diners write their own orders instead of checking with the kitchen first — if someone writes an elaborate meal request, the kitchen might get overwhelmed or, worse, serve something completely unintended! An attacker could leverage this vulnerability to manipulate the database, potentially fetching unauthorized data or even altering it. While it’s not a full-blown crisis, the implications could still compromise sensitive information, so let’s not take it lightly!

Put simply

Think of this like a restaurant that accidentally lets diners write their own orders instead of checking with the kitchen first — if someone writes an elaborate meal request, the kitchen might get overwhelmed or, worse, serve something completely unintended! This SQL injection vulnerability occurs in the user::maintains() function in PEAR when role filters are incorrectly handled, allowing untrusted data to be interpolated into an SQL query's IN clause.

What to do

An attacker could leverage this vulnerability to manipulate the database, potentially fetching unauthorized data or even altering it. While it’s not a full-blown crisis, the implications could still compromise sensitive information, so let’s not take it lightly! Update to PEAR version 1.33.0 to patch the vulnerability immediately. Review any use of role filters in your application to ensure no malicious data can be injected. Regularly audit your SQL queries for similar issues to tighten security! You’ve got this! With these updates, you’ll be one step closer to becoming a security hero! 🦸‍♂️

The record
Technical detail
CVSS v4.0
6.9 · MEDIUM
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
EPSS
0.00303 · 21.8th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2026-02-03T18:31Z
EPSS history
Timeline
  • 03 FEB 18:31Z
    PEAR is Vulnerable to SQL Injection in user::maintains() Role IN() Filter
    cvelistv5