WordPress wordpress core
WordPress Core 6.4.0 — 6.4.1 - Remote Code Execution POP Chain
CVE-2024-31211Published · Updated Action summary
Affected: ≤6.4.1Update to 6.4.2 or newer
All remediation stepsCritical9.8CVSS 3.19.8CISA KEVNot listedAccessNo account needed
On this page3
Overview
- Advisory ID
- CVE-2024-31211
- Product
- WordPress wordpress
- Affected
- ≤6.4.1
- Fixed in
- 6.4.2
- Weakness
- CWE-502 PHP Object Injection
- Required access
- No account needed
- Published
- · updated
- Source
- Wordfence Intelligence
- Affected≤ 6.4.1
- Patched in6.4.2
Update to 6.4.2 or newer.
9.8
CVSS 3.1 · CNA (Wordfence)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HWhat does this vector mean?
AV:NAttack vector- Network
AC:LAttack complexity- Low
PR:NPrivileges required- None
UI:NUser interaction- None
S:UScope- Unchanged
C:HConfidentiality- High
I:HIntegrity- High
A:HAvailability- High
WordPress Core is vulnerable to remote code execution via a PHP gadget in version 6.4.0 and 6.4.1. This is due to there being a magic method __destruct in the WP_HTML_Token class.
This makes it possible for attackers to achieve remote code execution when another deserialization/PHP Object Injection vulnerability is present on the site.
Not sure which version you run? Run a passive check — it reads public files only.
Remediation & mitigations
- Update to version 6.4.2, or a newer patched version
- Rotate administrator passwords and application secrets if the site ran a vulnerable version while publicly reachable.
References & provenance
Proof-of-concept & detection
No public proof-of-concept or detection template is known for this vulnerability.
Advisories & patches
- Advisorywordfence.com
Timeline
CVE published
Severity critical, CVSS 9.8
Record last updated
Sources & licenses
Sources & licenses
Wordfence record- Vulnerability data
- Wordfence Intelligence. Copyright 2012-2026 Defiant Inc. Licensed under the CC BY-SA 4.0.
- CVE® identifiers
- Copyright 1999-2026 The MITRE Corporation. Used under the CVE Program. CVE® is a registered trademark of The MITRE Corporation.
- CVSS / CWE
- National Vulnerability Database (NVD), shown unmodified. This product uses the NVD API but is not endorsed or certified by the NVD.
- VulnCrest content
- Summary, remediation guidance and page layout © VulnCrest. Not sourced from NVD.
