CVE-2024-31211
JSON

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 packageVersionsReported by
WordPress wordpress-develop>= 6.4.0 < 6.4.2CVE List
wordpress wordpressfrom 6.4.0 before 6.4.2NVD
wordpress (Bitnami)from 6.4.0 before 6.4.2Bitnami Vulnerability Database
wordpress-multisite (Bitnami)from 6.4.0 before 6.4.2Bitnami Vulnerability Database

All scores

GitHub_M5.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasecritical rating

Classification

CWE-502

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

SourceRecordLicence
CVE ListCVE-2024-31211 changed 2024-08-02CVE Terms of Use
NVDCVE-2024-31211 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-WORDPRESS-2024-31211 changed 2026-09-08Apache-2.0
Bitnami Vulnerability DatabaseBIT-WORDPRESS-MULTISITE-2024-31211 changed 2026-09-08Apache-2.0