CVE-2024-31211
WordPress vulnerability analysis and mitigation

Overview

WordPress versions 6.4.0 through 6.4.1 are affected by a vulnerability (CVE-2024-31211) involving the unserialization of instances of the WP_HTML_Token class. The vulnerability was discovered and fixed in WordPress 6.4.2, released on December 6th, 2023. Notably, versions prior to 6.4.0 are not affected by this vulnerability (GitHub Advisory).

Technical details

The vulnerability stems from the unserialization of instances of the WP_HTML_Token class, which allows for code execution via its __destruct() magic method. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N, indicating it requires high privileges but can be exploited over the network with low attack complexity (GitHub Advisory).

Impact

The vulnerability can lead to remote code execution, potentially allowing attackers to execute arbitrary code on affected WordPress installations. The CVSS metrics indicate low impacts on both confidentiality and integrity, with no impact on availability (GitHub Advisory).

Exploitability

The vulnerability was publicly disclosed as a zero-day vulnerability without prior responsible disclosure to the WordPress security team. It requires high privileges to exploit but can be accessed over the network with low attack complexity (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in WordPress version 6.4.2, released on December 6th, 2023. Users are advised to upgrade to this version or later to mitigate the risk. Users running versions prior to 6.4.0 are not affected by this vulnerability (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related WordPress vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-16974MEDIUM6.4
  • kirki
NoYesAug 11, 2026
CVE-2026-14549NONEN/A
  • lingotek-translation
NoNoAug 11, 2026
CVE-2026-14548NONEN/A
  • lingotek-translation
NoNoAug 11, 2026
CVE-2026-19089NONEN/A
  • product-input-fields-for-woocommerce
NoYesAug 10, 2026
CVE-2026-19077NONEN/A
  • copy-delete-posts
NoYesAug 10, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management