CVE-2024-31211
criticalpriority · attend · 50EPSS 0.028 · 86 %ileexploit · PoCEUUSEPSS · scored 2026-10-26
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 5.5–9.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (1)
Public proof-of-concept and weaponised exploit code.
- Abdurahmon3236/-CVE-2024-31211Abdurahmon3236/-CVE-2024-31211PoC · poc_in_github
affected products (5)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- BIT-wordpress-2024-31211Remote Code Execution in `WP_HTML_Token`2024-04-06vendor · osvUS
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.
- BIT-wordpress-multisite-2024-31211Remote Code Execution in `WP_HTML_Token`2024-04-06vendor · osvUS
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.
also known as (5)
Other names and identifiers for this entity.
- CNNVD-202404-644cnnvd
- EUVD-2024-29111enisa_euvd
- BIT-wordpress-2024-31211osv
- BIT-wordpress-multisite-2024-31211osv
- GHSA-m257-q4m5-j653osv
sources
Which sources assert this record, and when.
references (5)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2024-31211/cnnvd
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-m257-q4m5-j653cnnvd
- https://vigilance.fr/vulnerability/WordPress-Core-code-execution-43033cnnvd
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-m257-q4m5-j653enisa_euvd
- https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-m257-q4m5-j653Vendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan