CVE-2025-4396
📋 TL;DR
The Relevanssi WordPress plugin has a time-based SQL injection vulnerability in its search functionality. Unauthenticated attackers can exploit this to extract sensitive data from the database by manipulating search parameters. All WordPress sites using vulnerable versions of Relevanssi are affected.
💻 Affected Systems
- Relevanssi – A Better Search WordPress plugin
⚠️ 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.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Complete database compromise including user credentials, personal data, and administrative access leading to site takeover.
Likely Case
Extraction of sensitive information like user emails, hashed passwords, and private content from the database.
If Mitigated
Limited data exposure if database permissions are properly restricted and sensitive data is encrypted.
🎯 Exploit Status
Time-based SQL injection requires more sophisticated exploitation than boolean-based but is still accessible to moderately skilled attackers.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: Free: 4.24.5+, Premium: 2.27.5+
Vendor Advisory: https://wordpress.org/plugins/relevanssi/#developers
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find Relevanssi and click 'Update Now'. 4. Verify update completes successfully.
🔧 Temporary Workarounds
Disable Relevanssi plugin
allTemporarily disable the vulnerable plugin until patched
wp plugin deactivate relevanssi
WAF rule for SQL injection
allImplement web application firewall rules to block SQL injection patterns in search parameters
🧯 If You Can't Patch
- Implement strict input validation and sanitization for all search parameters
- Restrict database user permissions to read-only for the WordPress application user
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin panel → Plugins → Installed Plugins → Relevanssi version
Check Version:
wp plugin get relevanssi --field=version
Verify Fix Applied:
Verify Relevanssi version is 4.24.5+ (Free) or 2.27.5+ (Premium) after update
📡 Detection & Monitoring
Log Indicators:
- Unusual long-running database queries from search endpoints
- Multiple failed SQL queries with time delays
- Suspicious parameter values in search requests
Network Indicators:
- HTTP requests to search endpoints with SQL keywords in parameters
- Unusually slow response times from search functionality
SIEM Query:
source="web_logs" AND (uri_path="/?s=" OR uri_path LIKE "%/search/%") AND (query_string LIKE "%cats=%" OR query_string LIKE "%tags=%") AND (query_string LIKE "%SLEEP(%" OR query_string LIKE "%BENCHMARK(%" OR query_string LIKE "%WAITFOR%" OR query_string LIKE "%pg_sleep(%")
🔗 References
- https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.24.4/lib/search-tax-query.php#L371
- https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.24.4/lib/search-tax-query.php#L409
- https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.24.4/lib/search.php#L1016
- https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.24.4/lib/search.php#L982
- https://www.wordfence.com/threat-intel/vulnerabilities/id/197be163-4504-4caa-b729-c3293463cfb5?source=cve