CVE-2022-3125
High · 8.8CVSS
8.8
EPSS
1.6%
Published
Oct 3, 2022
CISA due date
—
Cloudanix analysis
A file-handling tool on WordPress sites lets ordinary logged-in users secretly change file types so they can run harmful commands on the server.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits any authenticated user to rename uploaded files to arbitrary extensions such as .php, bypassing extension validation and enabling execution of attacker-supplied code via the web server.
Why it matters to the business
Compromised sites can be used for data theft, defacement, malware distribution, or lateral movement; the plugin's presence on many WordPress installations raises the chance of widespread server takeovers even years after disclosure.
How an attack unfolds
An attacker registers or obtains a low-privilege account, uploads a file with a benign extension, invokes the rename function to change the extension to .php, then requests the resulting file URL to trigger remote code execution.
How to fix it
Upgrade the Frontend File Manager plugin to version 21.3 or newer to enforce proper extension validation on rename operations; until updated, disable the plugin or restrict its use to administrator accounts only.
How to confirm the fix worked
Confirm the installed plugin version is at least 21.3, attempt a rename to a .php extension under a test subscriber account and verify the operation is rejected, and scan upload directories for unexpected executable files.
Typical attack path
- Obtain authenticated session as subscriber or equivalent role
- Upload a file containing malicious PHP code using the plugin's upload feature
- Call the rename endpoint to alter the file extension to .php
- Browse to the new file path to execute the payload
How to detect it
Search web-server access logs for POST requests to the plugin's rename handler followed by GET requests to newly created .php files in upload paths; inspect file-system timestamps for PHP files appearing in user-writable directories.
- /wp-content/uploads/frontend-file-manager/
- rename_file
- .php extension change
- POST /wp-admin/admin-ajax.php?action=nfm_rename
What your security team should do
- Inventory all WordPress sites for the Frontend File Manager plugin and apply the 21.3+ update immediately
- Reduce the plugin's role-based permissions to the minimum necessary
- Add WAF rules blocking requests that attempt to rename files to executable extensions
- Enable file-integrity monitoring on upload directories
The record
The Frontend File Manager Plugin WordPress plugin before 21.3 allows any authenticated users, such as subscriber, to rename a file to an arbitrary extension, like PHP, which could allow them to basically be able to upload arbitrary files on the server and achieve RCE
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:16.04:LTS | wordpress | 0 | No fix |
| Ubuntu:18.04:LTS | wordpress | 0 | No fix |
| Ubuntu:20.04:LTS | wordpress | 0 | No fix |
| Ubuntu:22.04:LTS | wordpress | 0 | No fix |
| Ubuntu:24.04:LTS | wordpress | 0 | No fix |
| Ubuntu:24.10 | wordpress | 0 | No fix |
| Ubuntu:25.04 | wordpress | 0 | No fix |
| Ubuntu:25.10 | wordpress | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | wordpress | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | wordpress | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | wordpress | 0 | No fix |
Related vulnerabilities
- CVE-2022-4973 WordPress Core, in versions up to 6.0.2, is vulnerable to Authenticated Stored Cross-Site… Also affects wordpress
- CVE-2024-32111 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')… Also affects wordpress
- CVE-2024-31111 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site… Also affects wordpress
- CVE-2024-6307 WordPress Core is vulnerable to Stored Cross-Site Scripting via the HTML API in various… Also affects wordpress
- CVE-2024-4439 WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the… Also affects wordpress
- CVE-2023-5692 WordPress Core is vulnerable to Sensitive Information Exposure in versions up to, and… Also affects wordpress
- CVE-2024-31211 WordPress is an open publishing platform for the Web. Also affects wordpress
- CVE-2024-31210 WordPress is an open publishing platform for the Web. Also affects wordpress