5.5medium
Remote Code Execution in `WP_HTML_Token`
- Severity
- 5.5medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 2.74% (higher than 86% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-WORDPRESS-2024-31211BIT-WORDPRESS-MULTISITE-2024-31211GHSA-m257-q4m5-j653
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| WordPress wordpress-develop | >= 6.4.0 < 6.4.2 | CVE List |
| wordpress wordpress | from 6.4.0 before 6.4.2 | NVD |
| wordpress (Bitnami) | from 6.4.0 before 6.4.2 | Bitnami Vulnerability Database |
| wordpress-multisite (Bitnami) | from 6.4.0 before 6.4.2 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 5.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
WordPress es una plataforma de publicación abierta para la Web. La deserialización de instancias de la clase `WP_HTML_Token` permite la ejecución de código a través de su método mágico `__destruct()`. Este problema se solucionó en WordPress 6.4.2 el 6 de diciembre de 2023. Las versiones anteriores a la 6.4.0 no se ven afectadas.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-31211 changed 2024-08-02 | CVE Terms of Use |
| NVD | CVE-2024-31211 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-WORDPRESS-2024-31211 changed 2026-09-08 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-WORDPRESS-MULTISITE-2024-31211 changed 2026-09-08 | Apache-2.0 |