{"id":"CVE-2024-31211","summary":"Remote Code Execution in `WP_HTML_Token`","details":"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.","aliases":["BIT-wordpress-2024-31211","BIT-wordpress-multisite-2024-31211","GHSA-m257-q4m5-j653"],"modified":"2026-04-10T05:12:27.025882Z","published":"2024-04-04T23:00:17.782Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31211.json","cwe_ids":["CWE-502"],"cna_assigner":"GitHub_M"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31211.json"},{"type":"ADVISORY","url":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-m257-q4m5-j653"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31211"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/wordpress/wordpress","events":[{"introduced":"0"},{"fixed":"0730353098a9e36a319695d1f28c122361e4aef7"}],"database_specific":{"versions":[{"introduced":"6.4.0"},{"fixed":"6.4.2"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31211.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N"}]}