QID 154155

Date Published: 2024-04-08

QID 154155: WordPress Remote Code Execution Vulnerability (CVE-2024-31211)

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

The vulnerability allows for remote code execution via the __destruct() magic method of the WP_HTML_Token class when instances of this class are unserialized. An attacker could exploit this vulnerability to execute arbitrary code on the target system.

Affected Versions:
WordPress from 6.4 to 6.4.1

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 unauthenticated attacker to execute arbitrary code on the target system.

  • CVSS V3 rated as Medium - 5.5 severity.
  • CVSS V2 rated as Medium - 5.5 severity.
  • Solution
    Customers are advised to upgrade to 6.4.2 or latest version of WordPress to remediate these vulnerabilities. For more information regarding these vulnerabilities please visit Github Advisory.
    Vendor References

    CVEs related to QID 154155

    Software Advisories
    Advisory ID Software Component Link
    GitHub Advisory URL Logo github.com/WordPress/wordpress-develop/security/advisories/GHSA-m257-q4m5-j653
    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