CVE-2024-31211
CRITICAL9.8EPSS 39.7%Remote Code Execution in `WP_HTML_Token`
Published: 4/4/2024Modified: 5/27/2026
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 packages (3)
- Bitnami/wordpress>= 6.4.0, < 6.4.2
- Bitnami/wordpress-multisite>= 6.4.0, < 6.4.2
- Debian/wordpressfrom 0, < 6.4.2+dfsg1-1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |