{"id":"UBUNTU-CVE-2024-31211","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.","modified":"2026-01-05T08:54:57.015465Z","published":"2024-04-04T23:15:00Z","upstream":["CVE-2024-31211"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-31211"},{"type":"REPORT","url":"https://github.com/WordPress/wordpress-develop/security/advisories/GHSA-m257-q4m5-j653"},{"type":"REPORT","url":"https://wordpress.org/documentation/wordpress-version/version-6-4-2/#installation-update-information"},{"type":"REPORT","url":"https://www.wordfence.com/blog/2023/12/psa-critical-pop-chain-allowing-remote-code-execution-patched-in-wordpress-6-4-2/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-31211"}],"affected":[{"package":{"name":"wordpress","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/wordpress@4.4.2+dfsg-1ubuntu1?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.3+dfsg-1","4.3.1+dfsg-1","4.4+dfsg-1","4.4.1+dfsg-1","4.4.2+dfsg-1","4.4.2+dfsg-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"wordpress","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_name":"wordpress-l10n","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_name":"wordpress-theme-twentyfifteen","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_name":"wordpress-theme-twentyfourteen","binary_version":"4.4.2+dfsg-1ubuntu1"},{"binary_name":"wordpress-theme-twentysixteen","binary_version":"4.4.2+dfsg-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31211.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/wordpress@4.9.5+dfsg1-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.8.2+dfsg-2","4.8.3+dfsg-1","4.9.1+dfsg-1","4.9.2+dfsg-1","4.9.4+dfsg-1","4.9.5+dfsg1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"wordpress","binary_version":"4.9.5+dfsg1-1"},{"binary_name":"wordpress-l10n","binary_version":"4.9.5+dfsg1-1"},{"binary_name":"wordpress-theme-twentyfifteen","binary_version":"4.9.5+dfsg1-1"},{"binary_version":"4.9.5+dfsg1-1","binary_name":"wordpress-theme-twentyseventeen"},{"binary_name":"wordpress-theme-twentysixteen","binary_version":"4.9.5+dfsg1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31211.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/wordpress@5.3.2+dfsg1-1ubuntu1?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.2.2+dfsg1-1","5.2.4+dfsg1-1","5.3.2+dfsg1-1","5.3.2+dfsg1-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"wordpress","binary_version":"5.3.2+dfsg1-1ubuntu1"},{"binary_name":"wordpress-l10n","binary_version":"5.3.2+dfsg1-1ubuntu1"},{"binary_name":"wordpress-theme-twentynineteen","binary_version":"5.3.2+dfsg1-1ubuntu1"},{"binary_version":"5.3.2+dfsg1-1ubuntu1","binary_name":"wordpress-theme-twentyseventeen"},{"binary_name":"wordpress-theme-twentysixteen","binary_version":"5.3.2+dfsg1-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31211.json"}},{"package":{"name":"wordpress","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/wordpress@5.8.3+dfsg1-1ubuntu1.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.7.1+dfsg1-2ubuntu1","5.8.1+dfsg1-2ubuntu1","5.8.2+dfsg1-1ubuntu1","5.8.3+dfsg1-1ubuntu1","5.8.3+dfsg1-1ubuntu1.1"],"ecosystem_specific":{"binaries":[{"binary_name":"wordpress","binary_version":"5.8.3+dfsg1-1ubuntu1.1"},{"binary_name":"wordpress-l10n","binary_version":"5.8.3+dfsg1-1ubuntu1.1"},{"binary_name":"wordpress-theme-twentynineteen","binary_version":"5.8.3+dfsg1-1ubuntu1.1"},{"binary_name":"wordpress-theme-twentytwenty","binary_version":"5.8.3+dfsg1-1ubuntu1.1"},{"binary_name":"wordpress-theme-twentytwentyone","binary_version":"5.8.3+dfsg1-1ubuntu1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-31211.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}