CVE-2024-31211
Remote Code Execution in `WP_HTML_Token`
9.8
CRITICAL
CVSS 3.1
EPSS 39.7%
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.
How to fix CVE-2024-31211
To remediate CVE-2024-31211, upgrade the affected package to a fixed version below.
- —upgrade to 6.4.2 or later
- —upgrade to 6.4.2 or later
- —upgrade to 6.4.2+dfsg1-1 or later
Is CVE-2024-31211 being exploited?
Moderate — EPSS is 39.7%. Track this CVE but it's not at the top of the prioritisation list.
Affected packages (3)
- >= 6.4.0, < 6.4.2
- >= 6.4.0, < 6.4.2
- from 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 |