CVE-2024-31211: Remote Code Execution in `WP_HTML_Token`
Vulnerability summary
CVE-2024-31211 is a critical (CVSS 9.8) Deserialization of Untrusted Data vulnerability in wordpress. EPSS estimates a 2.74% chance of exploitation in the next 30 days, higher than 86.6% of scored vulnerabilities. Fixed in 6.4.2.
Not severe (CVSS 5.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 04-04-2024PublishedVulnerability first disclosed.
- 02-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA5.5MediumCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- wordfenceSource9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.74%
Chance of exploitation in the next 30 days
Percentile
87%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.74% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Wordpress3 products
- wordpress6.4.0 (fixed in 6.4.2) | 6.4.1 (fixed in 6.4.2)
- wordpress≥ 6.4.0, < 6.4.2
- wordpress-develop≥ 6.4.0 < 6.4.2 (No fix recorded)
Debian1 product
- wordpress< 6.4.2+dfsg1-1
Ubuntu1 product
- wordpressAll versions (No fix recorded)
3 vendors · 5 products
References
7 links- github.com/WordPress/wordpress-develop/security/advisories/GHSA-m257-q4m5-j653X Refsource CONFIRMREPORTVendor Advisory
- www.wordfence.com/blog/…REPORT