{"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-08-12T03:51:25.881788588Z","published":"2024-04-04T23:00:17.782Z","database_specific":{"unresolved_ranges":[{"extracted_events":[{"introduced":"\u003e= 6.4.0 \u003c 6.4.2"},{"last_affected":"\u003e= 6.4.0 \u003c 6.4.2"}],"source":"AFFECTED_FIELD"}],"cna_assigner":"GitHub_M","cwe_ids":["CWE-502"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31211.json"},"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":{"extracted_events":[{"introduced":"6.4.0"},{"fixed":"6.4.2"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31211.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/wordpress/wordpress-develop","events":[{"introduced":"82dab16707a0a9af6a9707fed979a559aefdd511"},{"fixed":"ec3f364c491bac22e7479b00074c6b004bdd0592"}],"database_specific":{"extracted_events":[{"introduced":"6.4.0"},{"fixed":"6.4.2"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31211.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N"}]}