Skip to main content
EPSS 0.9%top 41%

Wordpress: PHP file upload bypass via Plugin installer (CVE-2024-31210)

0
High
Published: 04/06/2024 (04/06/2024, 18:33:59 UTC)
Source: GCVE Database
Product: wordpress

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

Bitnamimore threats →ghsa
wordpress
pkg:bitnami/wordpress
Affected versions
<4.1.40>=4.2.0 <4.2.37>=4.3.0 <4.3.33>=4.4.0 <4.4.32>=4.5.0 <4.5.31>=4.6.0 <4.6.28>=4.7.0 <4.7.28>=4.8.0 <4.8.24>=4.9.0 <4.9.25>=5.0.0 <5.0.21>=5.1.0 <5.1.18>=5.2.0 <5.2.20>=5.3.0 <5.3.17>=5.4.0 <5.4.15>=5.5.0 <5.5.14>=5.6.0 <5.6.13>=5.7.0 <5.7.11>=5.8.0 <5.8.9>=5.9.0 <5.9.9>=6.0.0 <6.0.7>=6.1.0 <6.1.5>=6.2.0 <6.2.4>=6.3.0 <6.3.3>=6.4.0 <6.4.3

Run 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

AILast updated: 09/08/2026, 13:07:20 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses