CVE-2025-14166
📋 TL;DR
The WPMasterToolkit WordPress plugin allows authenticated users with Contributor-level access or higher to inject and execute arbitrary PHP code through the Code Snippets feature. This vulnerability enables remote code execution, privilege escalation, and complete site compromise. All WordPress sites using WPMasterToolkit version 2.13.0 or earlier are affected.
💻 Affected Systems
- WPMasterToolkit WordPress Plugin
⚠️ 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.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Complete server compromise leading to data theft, malware deployment, defacement, and lateral movement to other systems.
Likely Case
Attacker gains administrative access to WordPress, modifies content, steals sensitive data, and installs backdoors.
If Mitigated
Limited impact if proper user role management and network segmentation are in place.
🎯 Exploit Status
Exploitation requires authenticated access but is straightforward once credentials are obtained.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 2.13.1 or later
Vendor Advisory: https://plugins.trac.wordpress.org/log/wpmastertoolkit/
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find WPMasterToolkit and click 'Update Now'. 4. Verify version is 2.13.1 or higher.
🔧 Temporary Workarounds
Disable Plugin
allTemporarily disable the vulnerable plugin until patched.
wp plugin deactivate wpmastertoolkit
Restrict User Roles
allRemove Contributor and Author roles from untrusted users.
wp user list --role=contributor --field=ID
wp user set-role <user_id> subscriber
🧯 If You Can't Patch
- Immediately disable the WPMasterToolkit plugin and remove it from the system.
- Implement strict user role management and monitor for suspicious activity from Contributor/Author accounts.
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin panel → Plugins → Installed Plugins → WPMasterToolkit version.
Check Version:
wp plugin get wpmastertoolkit --field=version
Verify Fix Applied:
Confirm WPMasterToolkit version is 2.13.1 or higher in WordPress admin.
📡 Detection & Monitoring
Log Indicators:
- Unusual PHP execution in WordPress logs
- Code snippet creation/modification by non-admin users
- wp-content/plugins/wpmastertoolkit/ directory modifications
Network Indicators:
- Unexpected outbound connections from WordPress server
- POST requests to /wp-admin/admin-ajax.php with code parameters
SIEM Query:
source="wordpress.log" AND ("wpmastertoolkit" OR "code-snippets") AND ("execute" OR "eval" OR "system")
🔗 References
- https://plugins.trac.wordpress.org/browser/wpmastertoolkit/tags/2.13.0/admin/modules/core/class-code-snippets.php#L135
- https://plugins.trac.wordpress.org/browser/wpmastertoolkit/tags/2.13.0/admin/modules/core/class-code-snippets.php#L628
- https://plugins.trac.wordpress.org/browser/wpmastertoolkit/trunk/admin/modules/core/class-code-snippets.php#L135
- https://plugins.trac.wordpress.org/browser/wpmastertoolkit/trunk/admin/modules/core/class-code-snippets.php#L628
- https://plugins.trac.wordpress.org/log/wpmastertoolkit/
- https://www.wordfence.com/threat-intel/vulnerabilities/id/6049996a-514a-44f7-9878-4aa43598842a?source=cve