CVE-2024-31211
published medium CVSS 3.1 · 5.5Remote Code Execution in `WP_HTML_Token`
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| WordPress | — | wordpress-develop>= 6.4.0 < 6.4.2 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.5 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| WordPress | wordpress-develop | >= 6.4.0 < 6.4.2 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-502 CWE-502: Deserialization of Untrusted Data
References
1Provider assertions
3GitHub_M · cna
Remote Code Execution in `WP_HTML_Token`
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- b47e2b75db4e4c34e9767120eebfba0e9f914d12f56646a3b7932dfc559d44e2
- Ingested
- 23 Sep 2026, 08:22:25 UTC
- Source record
- Official CVE record