CVE-2025-48158

8.6 HIGH

📋 TL;DR

This path traversal vulnerability in the BuddyPress XProfile Custom Image Field WordPress plugin allows attackers to delete arbitrary files on the server by manipulating file paths. It affects all WordPress sites using this plugin from any version up to and including 3.0.1. Attackers can potentially delete critical system files or website content.

💻 Affected Systems

Products:
  • BuddyPress XProfile Custom Image Field WordPress Plugin
Versions: All versions up to and including 3.0.1
Operating Systems: Any OS running WordPress
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress with BuddyPress and this specific plugin installed and activated.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete website compromise through deletion of critical WordPress files (wp-config.php, .htaccess) leading to site unavailability, followed by privilege escalation or backdoor installation.

🟠

Likely Case

Website defacement or disruption through deletion of theme files, media uploads, or plugin files causing functionality loss.

🟢

If Mitigated

Limited impact if file permissions are properly configured and web server runs with minimal privileges, restricting deletion to web-accessible files only.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Exploitation requires authentication as a BuddyPress user with profile editing capabilities. The vulnerability is publicly documented with technical details available.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 3.0.2 or later

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/buddypress-xprofile-image-field/vulnerability/wordpress-buddypress-xprofile-custom-image-field-plugin-3-0-1-arbitrary-file-deletion-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'BuddyPress XProfile Custom Image Field'. 4. Click 'Update Now' if available, or download version 3.0.2+ from WordPress repository. 5. Activate updated plugin if deactivated during update.

🔧 Temporary Workarounds

Disable Plugin

all

Temporarily deactivate the vulnerable plugin until patched

wp plugin deactivate buddypress-xprofile-image-field

Restrict User Registration

all

Disable new user registration to limit potential attackers

Update WordPress Settings → General → Membership: 'Anyone can register' to unchecked

🧯 If You Can't Patch

  • Implement strict file permissions (755 for directories, 644 for files) to limit damage
  • Deploy web application firewall (WAF) rules to block path traversal patterns like '../' in requests

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin → Plugins → Installed Plugins for 'BuddyPress XProfile Custom Image Field' version ≤ 3.0.1

Check Version:

wp plugin get buddypress-xprofile-image-field --field=version

Verify Fix Applied:

Verify plugin version is 3.0.2 or higher in WordPress admin plugins page

📡 Detection & Monitoring

Log Indicators:

  • HTTP requests containing '../' patterns to plugin endpoints
  • File deletion events in web server logs for unexpected paths

Network Indicators:

  • POST requests to /wp-content/plugins/buddypress-xprofile-image-field/ with path traversal sequences

SIEM Query:

web.url:*buddypress-xprofile-image-field* AND (web.query:*../* OR web.post_data:*../*)

🔗 References

📤 Share & Export