CVE-2025-4396
published 2025-05-13CVE-2025-4396: The Relevanssi – A Better Search plugin for WordPress is vulnerable to time-based SQL Injection via the cats and tags query parameters in all versions up to…
PriorityP180high7.5CVSS 3.1
AVNACLPRNUINSUCHINAN
ITWEXPLOITVulnCheck KEV
Exploited in the wild
EPSS
2.63%
83.6th percentile
The Relevanssi – A Better Search plugin for WordPress is vulnerable to time-based SQL Injection via the cats and tags query parameters in all versions up to, and including, 4.24.4 (Free) and <= 2.27.5 (Premium) due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries to already existing queries that can be used to extract sensitive information from the database.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| comesio | relevanssi_a_better_search | <= 4.24.4 | — |
| relevanssi | relevanssi_premium | <= 2.27.5 | — |
Detection & IOCsextracted from sources · hover to see the quote
sigma
title: Relevanssi SQL Injection
detection:
selection:
- 'contains(query_string, "cats=")'
- 'contains(query_string, "tags=")'
- 'contains(query_string, "=5\'")
filter:
- 'contains(content_type, "text/html")'
- 'contains(body, "relevanssi")'
condition: and- →Monitor HTTP requests to WordPress sites for the 'cats' and 'tags' query parameters containing SQL injection payloads (e.g., time-based blind injection strings such as appended SLEEP() or BENCHMARK() calls). ↗
- →No authentication is required to exploit this vulnerability; treat any anomalous SQL-like content in 'cats' or 'tags' parameters from unauthenticated sessions as high-priority alerts. ↗
- →Look for response body containing 'relevanssi' combined with anomalous response times (indicative of time-based blind SQLi) as a detection signal.
- ·The vulnerability affects Relevanssi Free up to and including version 4.24.4, and Relevanssi Premium up to and including version 2.27.5. Ensure version checks cover both plugin variants. ↗
- ·The Sigma rule fragment from DOC 2 is incomplete/partial and should be treated as a detection starting point only; the full rule logic and field mappings need to be validated against your SIEM/log source before deployment.
CVSS provenance
nvdv3.17.5HIGHCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vulncheck7.5HIGH
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
GHSA-g6vf-vqr8-r8hg: The Relevanssi – A Better Search plugin for WordPress is vulnerable to time-based SQL Injection via the cats and tags query parameters in all versions
ghsa_unreviewed·2025-05-13
CVE-2025-4396 [HIGH] CWE-89 GHSA-g6vf-vqr8-r8hg: The Relevanssi – A Better Search plugin for WordPress is vulnerable to time-based SQL Injection via the cats and tags query parameters in all versions
The Relevanssi – A Better Search plugin for WordPress is vulnerable to time-based SQL Injection via the cats and tags query parameters in all versions up to, and including, 4.24.4 (Free) and <= 2.27.4 (Premium) due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries to already existing queries that can be used to extract sensitive information from the database.
VulnCheck
relevanssi relevanssi Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
vulncheck·2025·CVSS 7.5
CVE-2025-4396 [HIGH] relevanssi relevanssi Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
relevanssi relevanssi Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
The Relevanssi – A Better Search plugin for WordPress is vulnerable to time-based SQL Injection via the cats and tags query parameters in all versions up to, and including, 4.24.4 (Free) and <= 2.27.5 (Premium) due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries to already existing queries that can be used to extract sensitive information from the database.
Affected: relevanssi relevanssi
Required Action: Apply remediations or mitigations per vendor instructions or discontinue use of the product if remediation or mitigations are
No detection rules found.
Nuclei
Relevanssi <= 4.24.4 (Free) - Unauthenticated SQL Injection
nuclei·CVSS 7.5
CVE-2025-4396 [HIGH] Relevanssi <= 4.24.4 (Free) - Unauthenticated SQL Injection
Relevanssi =5'
- 'contains(content_type, "text/html")'
- 'contains(body, "relevanssi")'
condition: and
# digest: 490a0046304402207bb6b30c2337d78f738650dab6fb6c862bdb029284239b3ccb2987fbbe7b5832022013ce30711b3853be39b64e0cf0f1f3a1a1fdc574c63fcedd303526279a3b1066:922c64590222798bb761d5b6d8e72950
https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.24.4/lib/search-tax-query.php#L371https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.24.4/lib/search-tax-query.php#L409https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.24.4/lib/search.php#L1016https://plugins.trac.wordpress.org/browser/relevanssi/tags/4.24.4/lib/search.php#L982https://www.wordfence.com/threat-intel/vulnerabilities/id/197be163-4504-4caa-b729-c3293463cfb5?source=cve
2025-05-13
Published
Exploited in the wild