CVE-2026-120518: BuddyPress XProfile Image Field Plugin Arbitrary File Deletion via Path Traversal
The BuddyPress XProfile Image Field plugin (all versions up to 3.1.0) allows unauthenticated attackers to delete arbitrary files via an unvalidated path traversal vulnerability during user registration. Deleting critical files like wp-config.php can lead to remote code execution or complet
The plugin's user activation function processes signup metadata without proper path validation or containment checks. An attacker can supply a malicious file path via the field_N_hidden registration parameter, which the plugin then resolves against the document root when the signup is activated. Since the plugin applies no realpath() resolution or extension allowlist, an attacker with knowledge of the server structure can delete any file accessible to the web server process, including application configuration and code files. This vulnerability requires open user registration, but that is a common WordPress configuration.
| CVE | CVE-2026-120518 |
|---|---|
| Severity | Critical (CVSS 9.1) |
| Actively exploited | Not confirmed at time of writing |
| Weakness | CWE-22 (path traversal) |
| Attack vector | Network |
| Privileges required | None |
| User interaction | None |
| Published | 3 Nov 2026 |
How the attack works
During WordPress user registration, the BuddyPress XProfile Image Field plugin stores the field_N_hidden parameter value without validation. When a pending signup is later activated (by admin or user), the bpxp_image_field_update_on_user_activation() function calls unlink() on a path constructed from this unsanitized input, with no checks to ensure the path stays within the intended profile-image directory. An attacker submits a zero-byte file with a path traversal payload (e.g., '../../../wp-config.php') during registration. When the signup is activated, unlink() deletes the target file. By deleting wp-config.php or other critical files, the attacker can trigger errors leading to information disclosure or break the application, facilitating further exploitation.
Who is affected
BuddyPress XProfile Image Field plugin versions up to and including 3.1.0. WordPress sites with open user registration and an image-type profile field on the signup form. Affected sites may be running any version of WordPress that supports the plugin.
How to check if you're exposed
- List active plugins; search for 'BuddyPress' and 'XProfile' or check plugin directory for xprofile-image-field slug; compare version against 3.1.0
- Query user registration settings to confirm open registration is enabled (Settings > General > Membership checkbox)
- Review user signup forms for image-type custom profile fields via BuddyPress Extended Profiles configuration
- Search server logs and file audit logs for unlink() calls or unexpected file deletions correlated with user registration or activation events
How to fix it
- Disable and uninstall the BuddyPress XProfile Image Field plugin immediately
- Delete any orphaned plugin files from wp-content/plugins/ to prevent residual exploitation
- Restore wp-config.php and other critical configuration or code files from a clean backup if they have been deleted
- Wait for a vendor patch and re-enable the plugin only after upgrading to a fixed version that validates and sanitizes file paths
If you can't patch yet
- Disable open user registration temporarily (Settings > General > Membership) until the plugin is patched or removed
- Use a Web Application Firewall (WAF) to block registration requests containing path traversal sequences (../, .., etc.) in POST parameters
- Enforce file integrity monitoring on critical files (wp-config.php, wp-settings.php, .htaccess) to alert on unauthorized deletion or modification
Need help checking your exposure or patching at scale? FutureOps InfoTech can help.