CVE-2025-22311

7.5 HIGH

📋 TL;DR

This vulnerability allows attackers to include arbitrary local files via PHP's include/require statements in the Private Messages for UserPro WordPress plugin. Attackers can potentially execute malicious code or read sensitive files on affected WordPress installations. All WordPress sites using vulnerable versions of this plugin are affected.

💻 Affected Systems

Products:
  • Private Messages for UserPro WordPress plugin
Versions: n/a through 4.10.0
Operating Systems: All operating systems running PHP
Default Config Vulnerable: ⚠️ Yes
Notes: Requires WordPress installation with the vulnerable plugin activated. PHP configuration with allow_url_include disabled does not prevent local file inclusion.

⚠️ 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

Remote code execution leading to complete server compromise, data theft, and website defacement.

🟠

Likely Case

Local file inclusion allowing attackers to read sensitive configuration files, potentially leading to database credentials exposure.

🟢

If Mitigated

Limited impact if file permissions are properly configured and web server runs with minimal privileges.

🌐 Internet-Facing: HIGH - WordPress plugins are typically internet-facing and this vulnerability can be exploited remotely.
🏢 Internal Only: MEDIUM - Internal WordPress installations could still be targeted by authenticated users or through other attack vectors.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires understanding of PHP file inclusion vulnerabilities and WordPress plugin structure. No public exploit code available at time of analysis.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Versions after 4.10.0

Vendor Advisory: https://patchstack.com/database/wordpress/plugin/userpro-messaging/vulnerability/wordpress-private-messages-for-userpro-plugin-4-10-0-local-file-inclusion-vulnerability?_s_id=cve

Restart Required: No

Instructions:

1. Log into WordPress admin panel. 2. Navigate to Plugins > Installed Plugins. 3. Find 'Private Messages for UserPro'. 4. Click 'Update Now' if update available. 5. If no update available, deactivate and delete the plugin immediately.

🔧 Temporary Workarounds

Disable vulnerable plugin

WordPress

Deactivate the Private Messages for UserPro plugin until patched version is available

wp plugin deactivate userpro-messaging

🧯 If You Can't Patch

  • Implement web application firewall (WAF) rules to block file inclusion patterns
  • Restrict file permissions on sensitive configuration files and disable PHP execution in upload directories

🔍 How to Verify

Check if Vulnerable:

Check WordPress admin panel > Plugins > Installed Plugins for 'Private Messages for UserPro' version 4.10.0 or earlier

Check Version:

wp plugin get userpro-messaging --field=version

Verify Fix Applied:

Verify plugin version is higher than 4.10.0 in WordPress admin panel

📡 Detection & Monitoring

Log Indicators:

  • Unusual PHP include/require statements in web server logs
  • Requests to plugin files with unusual parameters

Network Indicators:

  • HTTP requests containing file path traversal patterns in plugin-related URLs

SIEM Query:

source="web_server_logs" AND (uri="*userpro-messaging*" AND (param="*../*" OR param="*php://*" OR param="*file=*"))

🔗 References

📤 Share & Export