CVE-2026-25240 PEAR is Vulnerable to SQL Injection in user::maintains() Role IN() Filter

Medium 6.9 Published Updated

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.

Sources

Also known as GHSA-xw9g-5gr2-c44f.

Is CVE-2026-25240 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free