CVE-2025-23931

9.3 CRITICAL

📋 TL;DR

This SQL injection vulnerability in the WordPress Local SEO plugin allows attackers to execute arbitrary SQL commands against the database. It affects all WordPress sites running the Local SEO plugin version 2.3 or earlier, potentially exposing sensitive data.

💻 Affected Systems

Products:
  • WordPress Local SEO plugin
Versions: All versions up to and including 2.3
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Affects all WordPress installations with vulnerable plugin versions installed and activated

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete database compromise leading to data theft, privilege escalation, and potential site takeover

🟠

Likely Case

Data exfiltration including user credentials, sensitive business information, and plugin configuration data

🟢

If Mitigated

Limited data exposure if database permissions are properly restricted and input validation is enforced elsewhere

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Blind SQL injection allows data extraction through boolean-based or time-based techniques

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 2.4 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/dh-local-seo/vulnerability/wordpress-wordpress-local-seo-plugin-2-3-sql-injection-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel
2. Navigate to Plugins → Installed Plugins
3. Find 'Local SEO' plugin
4. Click 'Update Now' if available
5. If no update available, deactivate and remove the plugin

🔧 Temporary Workarounds

WAF Rule Implementation

all

Deploy web application firewall rules to block SQL injection patterns

Plugin Deactivation

linux

Temporarily disable the vulnerable plugin until patched

wp plugin deactivate dh-local-seo

🧯 If You Can't Patch

  • Implement strict input validation and parameterized queries in custom code
  • Restrict database user permissions to minimum required access

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for Local SEO version 2.3 or earlier

Check Version:

wp plugin list --name='Local SEO' --field=version

Verify Fix Applied:

Confirm plugin version is 2.4 or later in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual SQL error messages in WordPress debug logs
  • Multiple failed login attempts from single IP
  • Unexpected database queries containing UNION SELECT

Network Indicators:

  • HTTP requests with SQL keywords in parameters
  • Repeated requests with incremental parameter values

SIEM Query:

source="wordpress.log" AND ("SQL syntax" OR "mysql_fetch" OR "wpdb->prepare")

🔗 References

📤 Share & Export