CVE Catalog

CVE-2026-120518

CriticalCVSS 9.1
Published: Updated: Translated: NVD NIST

Summary

The BuddyPress XProfile Image Field plugin for WordPress is vulnerable to arbitrary file deletion in all versions up to, and including, 3.1.0. The bpxp_image_field_update_on_user_activation() function calls unlink() on a path built from visitor-supplied signup metadata without realpath() resolution, containment check, or extension allow-list.

Risk Assessment

An unauthenticated attacker can delete arbitrary files on the server, which can easily lead to remote code execution when a critical file such as wp-config.php is deleted. Requires open registration and an image-type profile field on the signup form.

Recommendation

Update the plugin to a version later than 3.1.0. If possible, restrict open registration or remove the image profile field from the signup form until updated.

Related vulnerabilities

Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS