CVE-2024-31211: WordPress is an open publishing platform for the Web
CVE-2024-31211 is a medium-severity flaw (CVSS 5.5) affecting wordpress. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- No elevated risk signals yet
A fixed release or distro patch exists.
Risk facts
| CVSS score | 5.5 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | High |
| User interaction | None |
| EPSS exploit chance | 2.7% (top 14%) |
| CISA exploited list | No |
| Weakness | CWE-502 |
| Published | 2024-04-04 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2024-31211?
wordpress: upgrade to 6.4.2. Exact commands for each OS are on this page.
Is CVE-2024-31211 being exploited?
CVE-2024-31211 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2024-31211 affect?
CVE-2024-31211 affects wordpress. Severity is medium (CVSS 5.5). 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. Ve
How urgent is CVE-2024-31211?
Priority 41/100. No elevated risk signals yet.
Software pages
Related CVEs
- CVE-2026-63030 CRITICAL 9.8 EXPLOITED UPGRADE WordPress Core Interpretation Conflict Vulnerability
- CVE-2026-60137 MEDIUM 5.9 EXPLOITED UPGRADE WordPress Core SQL Injection Vulnerability
- CVE-2023-39999 MEDIUM 4.3 UPGRADE MITIGATE Exposure of Sensitive Information to an Unauthorized Actor in WordPress from 6.3 through 6.3.1, from 6.2 throu
- CVE-2026-87902 HIGH 8.1 EXPLOITED UPGRADE WordPress Core Remote File Inclusion Vulnerability
- CVE-2024-4439 HIGH 7.2 UPGRADE WordPress Core is vulnerable to Stored Cross-Site Scripting via user display names in the Avatar block in vari