What’s Vulnerable › Vulnerabilities

CVE-2024-31211: Remote Code Execution in `WP_HTML_Token`

Description

WordPress is an open publishing platform for the Web. Unserialization of instances of the `WP_HTML_Token` class allows for code execution via its `__destruct()` magic method. This issue was fixed in WordPress 6.4.2 on December 6th, 2023. Versions prior to 6.4.0 are not affected.

Affected products

How to fix

Upgrade to a fixed version: WordPress 6.4.2. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-31211 or the next vulnerability affects your stack