Skip to main content
VulnerabilityPublished Updated

CVE-2024-31211: Wordpress · Unserialization of instances of the WP_HTML_Token class allows for code execution via its

Affects wordpressSource GCVE Database

0
Compare

Not known to be exploited · CVSS 9.8 Critical · fixed in 6.4.2 : patch wordpress as a priority.

Data as of 24 Nov 2026, 21:14 UTC

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
2.7% chance of exploitation in 30 days – higher than 86% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 6.4.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Apr 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    Public exploit code: GitHub proofs of concept

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), GitHub proofs of concept, the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 22.04 LTSwordpresspkg:deb/ubuntu/wordpress?arch=source&distro=jammyOther threatsAffected
  • 5.7.1+dfsg1-2ubuntu1 – 5.8.3+dfsg1-1ubuntu1.1
5 affected builds
Fixed in–
Ubuntu 20.04 LTSwordpresspkg:deb/ubuntu/wordpress?arch=source&distro=focalOther threatsAffected
  • 5.2.2+dfsg1-1 – 5.3.2+dfsg1-1ubuntu1
4 affected builds
Fixed in–
Ubuntu 18.04 LTSwordpresspkg:deb/ubuntu/wordpress?arch=source&distro=bionicOther threatsAffected
  • 4.8.2+dfsg-2 – 4.9.5+dfsg1-1
6 affected builds
Fixed in–
Ubuntu 16.04 LTSwordpresspkg:deb/ubuntu/wordpress?arch=source&distro=xenialOther threatsAffected
  • 4.3.1+dfsg-1 – 4.4+dfsg-1
6 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…