# CVE-2024-31211: Remote Code Execution in \`WP\_HTML\_Token\`

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-04-04 · Modified: 2024-08-02
- Aliases: UBUNTU-CVE-2024-31211, DEBIAN-CVE-2024-31211
- Record: https://cvemate.com/vulnerability/CVE-2024-31211 · JSON: https://cvemate.com/vulnerability/CVE-2024-31211/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.74%, percentile 86.636%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian wordpress (Debian): \< 6.4.2+dfsg1-1
- ubuntu wordpress (Ubuntu): All versions (No fix recorded)
- wordpress wordpress: 6.4.0 (fixed in 6.4.2) \| 6.4.1 (fixed in 6.4.2)
- wordpress wordpress: ≥ 6.4.0, \< 6.4.2
- wordpress wordpress-develop: ≥ 6.4.0 \< 6.4.2 (No fix recorded)

## References

- <https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-m257-q4m5-j653>
- <https://ubuntu.com/security/CVE-2024-31211>
- <https://wordpress.org/documentation/wordpress-version/version-6-4-2/#installation-update-information>
- <https://www.wordfence.com/blog/2023/12/psa-critical-pop-chain-allowing-remote-code-execution-patched-in-wordpress-6-4-2/>
- <https://www.cve.org/CVERecord?id=CVE-2024-31211>
- <https://security-tracker.debian.org/tracker/CVE-2024-31211>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/b170ac00-5d5c-46ef-95f3-e98ef4528999>

---

Data as of 2026-12-05T07:06:46.345Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
