CVE-2024-31211: Wordpress · Unserialization of instances of the WP_HTML_Token class allows for code execution via its
Affects wordpressSource GCVE Database
Not known to be exploited · CVSS 9.8 Critical · fixed in 6.4.2 : patch wordpress as a priority.
Data as of 24 Nov 2026, 21:14 UTC
- EPSS
- 2.7% chance of exploitation in 30 days – higher than 86% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 6.4.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 4 Apr 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Public exploit code: GitHub proofs of concept
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 22.04 LTSwordpresspkg:deb/ubuntu/wordpress?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTSwordpresspkg:deb/ubuntu/wordpress?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Ubuntu 18.04 LTSwordpresspkg:deb/ubuntu/wordpress?arch=source&distro=bionicOther threats | Affected
| Fixed in– |
Ubuntu 16.04 LTSwordpresspkg:deb/ubuntu/wordpress?arch=source&distro=xenialOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2024-31211 (opens in a new tab)
- github.com/WordPress/wordpress-develop/security/advisories/GHSA-m257-q4m5-j653 (opens in a new tab)
- wordpress.org/documentation/wordpress-version/version-6-4-2/ (opens in a new tab)
- wordfence.com/blog/2023/12/psa-critical-pop-chain-allowing-remote-code-execution-patched-in-wordpress-6-4-2/ (opens in a new tab)
- cve.org/CVERecord?id=CVE-2024-31211 (opens in a new tab)