SQL Injection Vulnerability in WP-Optimize Plugin by WordPress
CVE-2025-3951

4.1MEDIUM

Key Information:

Vendor

WordPress

Vendor
CVE Published:
2 June 2025

Badges

👾 Exploit Exists🟡 Public PoC

What is CVE-2025-3951?

The WP-Optimize plugin for WordPress, specifically versions prior to 4.2.0, is vulnerable due to improper escaping of user input when verifying image compression statuses. This weakness can enable users with administrative privileges within a Multi-Site WordPress setup to execute SQL Injection attacks, potentially compromising database integrity and exposing sensitive information.

Affected Version(s)

WP-Optimize 0 < 4.2.0

Exploit Proof of Concept (PoC)

PoC code is written by security researchers to demonstrate the vulnerability can be exploited. PoC code is also a key component for weaponization which could lead to ransomware.

References

CVSS V3.1

Score:
4.1
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
High
User Interaction:
None
Scope:
Changed

Timeline

  • 🟡

    Public PoC available

  • 👾

    Exploit known to exist

  • Vulnerability published

  • Vulnerability Reserved

Credit

Francisco Alisson
WPScan
.
CVE-2025-3951 : SQL Injection Vulnerability in WP-Optimize Plugin by WordPress