Security Resilience

CVE-2024-31211

Deserialization in Wordpress 6.4.0 – 6.4.2

Published
04 April 2024
Modified
17 June 2026
Patch / advisory
CVSS Score v3.1 5.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
EPSS Score 0.027 87th percentile
Risk Priority 56 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-31211 is a medium-severity Deserialization of Untrusted Data (CWE-502) vulnerability in Wordpress. Its CVSS base score is 5.5 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked in the top 13% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SA-11 (Developer Testing and Evaluation) and SI-10 (Information Input Validation) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

WordPress contains a deserialization vulnerability in the WP_HTML_Token class that permits code execution through its __destruct magic method when untrusted instances are unserialized. The flaw affects WordPress versions 6.4.0 and 6.4.1; versions before 6.4.0 are unaffected, and the issue was resolved in the 6.4.2 release published on 6 December 2023. The weakness is tracked as CWE-502 and carries a CVSS 3.1 score of 5.5.

An attacker with high privileges can supply a malicious serialized WP_HTML_Token object over the network, triggering arbitrary code execution with limited confidentiality and integrity impact and a scope change. Exploitation therefore requires an authenticated user account possessing administrative or equivalent rights rather than unauthenticated or low-privileged access.

The official advisory published in the WordPress GitHub repository states that the fix is included in version 6.4.2 and recommends that sites running 6.4.0 or 6.4.1 update immediately. The current EPSS score of 0.3971, with a recorded peak of 0.4488, indicates moderate and slightly elevated exploitation interest following disclosure.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

are not affected.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1068 Exploitation for Privilege Escalation Privilege Escalation
Adversaries may exploit software vulnerabilities in an attempt to elevate privileges.
T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1203 Exploitation for Client Execution Execution
Adversaries may exploit software vulnerabilities in client applications to execute code.
T1210 Exploitation of Remote Services Lateral Movement
Adversaries may exploit remote services to gain unauthorized access to internal systems once inside of a network.
T1499.004 Application or System Exploitation Impact
Adversaries may exploit software vulnerabilities that can cause an application or system to crash and deny availability to users.
T1499 Endpoint Denial of Service Impact
Adversaries may perform Endpoint Denial of Service (DoS) attacks to degrade or block the availability of services to users.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2023-2745Same product: Wordpress Wordpress
CVE-2026-119977Same product: Wordpress Wordpress
CVE-2026-60137Same product: Wordpress Wordpress
CVE-2026-87902Same product: Wordpress Wordpress
CVE-2024-31210Same product: Wordpress Wordpress
CVE-2024-4439Same product: Wordpress Wordpress
CVE-2023-5561Same product: Wordpress Wordpress
CVE-2023-22622Same product: Wordpress Wordpress
CVE-2026-63030Same product: Wordpress Wordpress
CVE-2023-38000Same product: Wordpress Wordpress

Affected Assets

wordpress
wordpress
6.4.0 — 6.4.2

Mitigating Controls

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Developer testing and evaluation can uncover deserialization flaws before deployment.

Input validation directly stops deserialization of untrusted data by ensuring inputs are valid before processing.

Engineering principles such as safe deserialization and input sanitization structurally prevent the weakness from being introduced.

Integrity verification tools can detect malformed or tampered serialized data after the fact.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

finds

Security testing includes validation of deserialization routines and the use of untrusted data, reducing the likelihood that unsafe object reconstruction will be deployed.

prevents

Training technical teams on secure deserialization practices reduces a minority of CWE-502 instances, but developers remain fallible and the owner explicitly identified A.8.29 (security testing) as the strongest control for this weakness, with A.8.28 (secure coding) graded only `partial` on the same pair.

prevents

Requiring vetted libraries, regular updates and SAST before release reduces the likelihood that deserialization logic will accept and act on attacker-controlled serialized objects.

finds

Regular scanning of third-party libraries and timely patching reduce the likelihood that unsafe deserialization vulnerabilities remain active.

References