Wordpress: PHP file upload bypass via Plugin installer (CVE-2024-31210)
A vulnerability in WordPress allows an administrator-level user to bypass file upload restrictions on the plugin installer screen, potentially enabling remote code execution (RCE) under specific conditions. This occurs when FTP credentials are required for plugin installation and the DISALLOW_FILE_EDIT constant is set to true, allowing a non-zip file to remain temporarily accessible in the Media Library. The issue affects single site installations for Administrator users and Multisite installations for Super Admin users, but not lower privilege users. Sites with DISALLOW_FILE_MODS set to true or where FTP credentials are not required or accessible are not affected. The vulnerability was fixed in WordPress 6.4.3 and backported to many earlier versions.
AI Analysis
Technical Summary
WordPress versions prior to 6.4.3 and certain earlier versions are vulnerable to a PHP file upload bypass via the plugin installer. An administrative user can upload a file of a type other than zip on the Add New Plugin screen. If FTP credentials are requested for installation, the uploaded file remains temporarily available in the Media Library despite restrictions. When the DISALLOW_FILE_EDIT constant is true and FTP credentials are required, this can lead to remote code execution by an administrator who otherwise would not have the ability to execute arbitrary PHP code. The vulnerability only affects Administrator or Super Admin users on single or multisite installations respectively, and does not affect lower privilege users or sites with DISALLOW_FILE_MODS set to true. The issue was fixed in WordPress 6.4.3 and backported to multiple earlier versions.
Potential Impact
This vulnerability allows an attacker with Administrator or Super Admin privileges to bypass file upload restrictions and potentially execute arbitrary PHP code remotely, leading to remote code execution. This elevates the risk on affected WordPress sites by enabling code execution where it would otherwise be restricted. Lower privilege users are not affected, and sites with DISALLOW_FILE_MODS set to true or where FTP credentials are not required or accessible are not vulnerable.
Mitigation Recommendations
A fix is available and has been applied in WordPress version 6.4.3 and backported to many earlier versions. Site administrators should upgrade to one of these fixed versions. As a workaround, setting the DISALLOW_FILE_MODS constant to true will prevent any plugin uploads and thus mitigate the vulnerability. Sites where FTP credentials are not requested or are accessible to the administrator are not affected. No additional action is required if the site is already configured with DISALLOW_FILE_MODS=true.
Wordpress: PHP file upload bypass via Plugin installer (CVE-2024-31210)
Description
A vulnerability in WordPress allows an administrator-level user to bypass file upload restrictions on the plugin installer screen, potentially enabling remote code execution (RCE) under specific conditions. This occurs when FTP credentials are required for plugin installation and the DISALLOW_FILE_EDIT constant is set to true, allowing a non-zip file to remain temporarily accessible in the Media Library. The issue affects single site installations for Administrator users and Multisite installations for Super Admin users, but not lower privilege users. Sites with DISALLOW_FILE_MODS set to true or where FTP credentials are not required or accessible are not affected. The vulnerability was fixed in WordPress 6.4.3 and backported to many earlier versions.
Affected software
pkg:bitnami/wordpressRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
WordPress versions prior to 6.4.3 and certain earlier versions are vulnerable to a PHP file upload bypass via the plugin installer. An administrative user can upload a file of a type other than zip on the Add New Plugin screen. If FTP credentials are requested for installation, the uploaded file remains temporarily available in the Media Library despite restrictions. When the DISALLOW_FILE_EDIT constant is true and FTP credentials are required, this can lead to remote code execution by an administrator who otherwise would not have the ability to execute arbitrary PHP code. The vulnerability only affects Administrator or Super Admin users on single or multisite installations respectively, and does not affect lower privilege users or sites with DISALLOW_FILE_MODS set to true. The issue was fixed in WordPress 6.4.3 and backported to multiple earlier versions.
Potential Impact
This vulnerability allows an attacker with Administrator or Super Admin privileges to bypass file upload restrictions and potentially execute arbitrary PHP code remotely, leading to remote code execution. This elevates the risk on affected WordPress sites by enabling code execution where it would otherwise be restricted. Lower privilege users are not affected, and sites with DISALLOW_FILE_MODS set to true or where FTP credentials are not required or accessible are not vulnerable.
Mitigation Recommendations
A fix is available and has been applied in WordPress version 6.4.3 and backported to many earlier versions. Site administrators should upgrade to one of these fixed versions. As a workaround, setting the DISALLOW_FILE_MODS constant to true will prevent any plugin uploads and thus mitigate the vulnerability. Sites where FTP credentials are not requested or are accessible to the administrator are not affected. No additional action is required if the site is already configured with DISALLOW_FILE_MODS=true.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- BIT-wordpress-2024-31210
- Osv Schema Version
- 1.5.0
- Aliases
- ["CVE-2024-31210"]
- Ecosystems
- ["Bitnami"]
- Database Specific Severity
- High
Threat ID: 6aa005adacd9273b49ab4bf9
Added to database: 09/08/2026, 12:55:09 UTC
Last enriched: 09/08/2026, 13:07:20 UTC
Last updated: 09/10/2026, 19:36:48 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.