QID 154154

Date Published: 2024-04-08

QID 154154: WordPress Core: Remote Code Execution via Plugin Upload (CVE-2024-31210)

WordPress is a free and open-source content management system written in PHP and paired with a MySQL or MariaDB database.

Its possible for a file of a type other than a zip file to be submitted as a new plugin by an administrative user on the Plugins -> Add New -> Upload Plugin screen in WordPress. If FTP credentials are requested for installation, the uploaded file remains temporarily available in the Media Library despite it not being allowed.

If the DISALLOW_FILE_EDIT constant is set to true on the site and FTP credentials are required when uploading a new theme or plugin, then this technically allows an RCE (Remote Code Execution) when the user would otherwise have no means of executing arbitrary PHP code. This issue only affects Administrator-level users on single-site installations and Super Admin-level users on Multisite installations, where it's otherwise expected that the user does not have permission to upload or execute arbitrary PHP code.

Affected Versions:
WordPress below 4.1.39
WordPress from 4.2 to 4.2.36
WordPress from 4.3 to 4.3.32
WordPress from 4.4 to 4.4.31
WordPress from 4.5 to 4.5.30
WordPress from 4.6 to 4.6.27
WordPress from 4.7 to 4.7.27
WordPress from 4.8 to 4.8.23
WordPress from 4.9 to 4.9.24
WordPress from 5.0 to 5.0.20
WordPress from 5.1 to 5.1.17
WordPress from 5.2 to 5.2.19
WordPress from 5.3 to 5.3.16
WordPress from 5.4 to 5.4.14
WordPress from 5.5 to 5.5.13
WordPress from 5.6 to 5.6.12
WordPress from 5.7 to 5.7.10
WordPress from 5.8 to 5.8.8
WordPress from 5.9 to 5.9.8
WordPress from 6.0 to 6.0.6
WordPress from 6.1 to 6.1.4
WordPress from 6.2 to 6.2.3
WordPress from 6.3 to 6.3.2
WordPress from 6.4 to 6.4.2

QID Detection Logic:
This QID sends an HTTP GET request and checks for vulnerable version of WordPress running on the target application.

Successful exploitation of this vulnerability could allow an administrator level users on single site installations and Super Admin level users on Multisite installations execute arbitrary PHP code.

  • CVSS V3 rated as High - 7.6 severity.
  • CVSS V2 rated as High - 6.8 severity.
  • Solution
    Customers are advised to upgrade to 6.4.3, 6.3.3, 6.2.4, 6.1.5, 6.0.7, 5.9.9, 5.8.9, 5.7.11, 5.6.13, 5.5.14, 5.4.15, 5.3.17, 5.2.20, 5.1.18, 5.0.21, 4.9.25, 4.8.24, 4.7.28, 4.6.28, 4.5.31, 4.4.32, 4.3.33, 4.2.37, 4.1.40 or latest version of WordPress to remediate these vulnerabilities. For more information regarding these vulnerabilities please visit Github Advisory.

    CVEs related to QID 154154

    Software Advisories
    Advisory ID Software Component Link
    GitHub Advisory URL Logo github.com/WordPress/wordpress-develop/security/advisories/GHSA-x79f-xrjv-jx5r
    WordPress URL Logo wordpress.org/download/

    © CVE.report 2026

    Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

    CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

    Free CVE JSON API cve.report/api

    CVE.report and Source URL Uptime Status status.cve.report