CVE-2024-31211

Source
https://cve.org/CVERecord?id=CVE-2024-31211
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31211.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-31211
Aliases
Downstream
Published
2024-04-04T23:00:17Z
Modified
2026-09-21T03:45:55Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N CVSS Calculator
Summary
Remote Code Execution in `WP_HTML_Token`
Details

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.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-502"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/31xxx/CVE-2024-31211.json",
    "unresolved_ranges":  [
        {
            "extracted_events":  [
                {
                    "introduced":  ">= 6.4.0 < 6.4.2"
                },
                {
                    "last_affected":  ">= 6.4.0 < 6.4.2"
                }
            ],
            "source":  "AFFECTED_FIELD"
        }
    ]
}
References

Affected packages

Git / github.com/wordpress/wordpress

Affected ranges

Type
GIT
Repo
https://github.com/wordpress/wordpress
Events
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "6.4.0"
        },
        {
            "fixed":  "6.4.2"
        }
    ],
    "source":  "CPE_RANGE"
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31211.json"

Git / github.com/wordpress/wordpress-develop

Affected ranges

Type
GIT
Repo
https://github.com/wordpress/wordpress-develop
Events
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:wordpress:wordpress:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "6.4.0"
        },
        {
            "fixed":  "6.4.2"
        }
    ],
    "source":  "CPE_RANGE"
}

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-31211.json"