CVE-2023-34027
📋 TL;DR
This CVE describes a PHP object injection vulnerability in the WordPress Recently Viewed Products plugin. Attackers can exploit deserialization of untrusted data to execute arbitrary code on affected WordPress sites. All WordPress installations using this plugin version 1.0.0 or earlier are vulnerable.
💻 Affected Systems
- WordPress Recently Viewed Products plugin
📦 What is this software?
⚠️ Risk & Real-World Impact
Worst Case
Remote code execution leading to complete site compromise, data theft, malware installation, and server takeover.
Likely Case
Arbitrary code execution allowing attackers to deface websites, steal sensitive data, or install backdoors.
If Mitigated
Limited impact if proper input validation and output encoding are implemented elsewhere in the application stack.
🎯 Exploit Status
Exploitation details are publicly available and the vulnerability is relatively easy to exploit.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 1.0.1 or later
Vendor Advisory: https://patchstack.com/database/vulnerability/recently-viewed-products/wordpress-recently-viewed-products-plugin-1-0-0-php-object-injection-vulnerability
Restart Required: No
Instructions:
1. Log into WordPress admin panel. 2. Navigate to Plugins → Installed Plugins. 3. Find 'Recently Viewed Products' plugin. 4. Click 'Update Now' if update is available. 5. If no update is available, deactivate and delete the plugin immediately.
🔧 Temporary Workarounds
Disable the plugin
allDeactivate the Recently Viewed Products plugin to remove the vulnerability.
wp plugin deactivate recently-viewed-products
Remove the plugin
allCompletely remove the plugin files from the WordPress installation.
wp plugin delete recently-viewed-products
🧯 If You Can't Patch
- Deactivate and remove the Recently Viewed Products plugin immediately
- Implement web application firewall rules to block deserialization attempts
🔍 How to Verify
Check if Vulnerable:
Check WordPress admin panel → Plugins → Installed Plugins for 'Recently Viewed Products' version 1.0.0 or earlier.
Check Version:
wp plugin get recently-viewed-products --field=version
Verify Fix Applied:
Verify plugin version is 1.0.1 or later, or confirm plugin is not installed/active.
📡 Detection & Monitoring
Log Indicators:
- Unusual POST requests to WordPress endpoints
- PHP deserialization errors in logs
- Unexpected file creation/modification
Network Indicators:
- HTTP requests containing serialized PHP objects
- Unusual traffic to wp-content/plugins/recently-viewed-products/
SIEM Query:
source="wordpress.log" AND ("recently-viewed-products" OR "unserialize" OR "php_object_injection")
🔗 References
- https://patchstack.com/database/vulnerability/recently-viewed-products/wordpress-recently-viewed-products-plugin-1-0-0-php-object-injection-vulnerability?_s_id=cve
- https://patchstack.com/database/vulnerability/recently-viewed-products/wordpress-recently-viewed-products-plugin-1-0-0-php-object-injection-vulnerability?_s_id=cve