Skip to content
Back to search

CVE-2026-120518

CRITICAL
9.1NVD

Summary

generated automatically from NVD data

The BuddyPress XProfile Image Field plugin for WordPress, in versions up to and including 3.1.0, allows arbitrary file deletion (CWE-22). The function bpxp_image_field_update_on_user_activation() calls unlink() on a path derived from signup metadata supplied by visitors, without realpath() resolution, a directory containment check or an extension allow-list. Unauthenticated attackers could delete files such as wp-config.php, potentially leading to remote code execution, but only if open registration and an image-type profile field are enabled. The CVSS score is 9.1 (CRITICAL).

NVD description

The BuddyPress XProfile Image Field plugin for WordPress is vulnerable to arbitrary file deletion in all versions up to, and including, 3.1.0. This is due to bpxp_image_field_update_on_user_activation() calling unlink() on a path built from visitor-supplied signup metadata with no realpath() resolution, no containment check against the profile-image directory and no extension allow-list. Submitting a zero-byte file with the 'field_N_hidden' parameter during registration makes the plugin store the raw value, which is then resolved against the document root when the pending signup is activated. This makes it possible for unauthenticated attackers to delete arbitrary files on the server, which can easily lead to remote code execution when the right file (such as wp-config.php) is deleted. Requires open registration and an image-type profile field on the signup form.

Share:

In-depth analysis on cveo.tech

This CVE is covered in an article: context, affected versions and published fixes.

Similar CVEs

Other vulnerabilities of type CWE-22

…

Know which CVEs hit the versions you run.

Add the product and its version: cveo.tech lists the CVEs that affect it right away, then alerts you by email when a new one affects it — including before NVD has finished its analysis. Free, an account is all it takes.