# CVE-2024-31211: Remote Code Execution in `WP_HTML_Token`

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.74%, higher than 86% of CVEs (2026-12-01)
- Published: 2024-04-04T23:00:17.782Z
- Modified: 2026-09-08T08:48:21.798Z
- Also known as: BIT-WORDPRESS-2024-31211, BIT-WORDPRESS-MULTISITE-2024-31211, GHSA-m257-q4m5-j653
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- WordPress wordpress-develop: >= 6.4.0 < 6.4.2
- wordpress wordpress: from 6.4.0 before 6.4.2
- wordpress (Bitnami): from 6.4.0 before 6.4.2
- wordpress-multisite (Bitnami): from 6.4.0 before 6.4.2

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-m257-q4m5-j653> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-31211> (web)

## Sources

- CVE List: [CVE-2024-31211](https://www.cve.org/CVERecord?id=CVE-2024-31211), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2024-31211](https://nvd.nist.gov/vuln/detail/CVE-2024-31211), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-WORDPRESS-2024-31211](https://osv.dev/vulnerability/BIT-WORDPRESS-2024-31211), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-WORDPRESS-MULTISITE-2024-31211](https://osv.dev/vulnerability/BIT-WORDPRESS-MULTISITE-2024-31211), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-31211 · Whole record: https://cve.day/CVE-2024-31211.json · Rebuilt by cve.day 2026-11-25T22:58:38.788Z
