CVE-2025-3951 WP-Optimize < 4.2.0 - Admin+ SQLi
Administrators can perform SQL injection in Multi-Site WordPress configurations via the WP-Optimize plugin.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-3951?
CVE-2025-3951 is a medium-severity SQL injection vulnerability in Unknown WP-Optimize, published on 2 Jun 2025. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
The WP-Optimize WordPress plugin before 4.2.0 does not properly escape user input when checking image compression statuses, which could allow users with the administrator role to conduct SQL Injection attacks in the context of Multi-Site WordPress configurations.
Weakness: CWE-89
Which versions are affected by CVE-2025-3951?
It affects 1 product.
Products include Updraftplus Wp-Optimize.
How do I fix CVE-2025-3951?
No fix has been published for CVE-2025-3951 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-2025-3951 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-3951 exists.
Sources
Also known as GHSA-cwjc-83cr-56p7.