CVE-2018-20148: In WordPress before 4.9.9 and 5.x before 5.0.1, contributors could conduct PHP object injection attacks via crafted metadata in a wp.getMediaItem XMLRPC call.
Critical CVSS 9.8
- CVE id
- CVE-2018-20148
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| WordPress Runtimes and servers |
< 4.9.9 >= 5.0, < 5.0.1 |
4.9.9, 5.0.1 |
How to fix it
Upgrade WordPress to the fixed release of the line you run: 4.9.9, 5.0.1.
wp core version
- Update WordPress core to the patched release (Dashboard > Updates, wp core update, or the wordpress image tag).
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
In WordPress before 4.9.9 and 5.x before 5.0.1, contributors could conduct PHP object injection attacks via crafted metadata in a wp.getMediaItem XMLRPC call. This is caused by mishandling of serialized data at phar:// URLs in the wpgetattachmentthumbfile function in wp-includes/post.php.
References
- CVE-2018-20148 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2018-20148
- Web: https://blog.secarma.co.uk/labs/near-phar-dangerous-unserialization-wherever-you-are
- Web: https://codex.wordpress.org/Version_4.9.9
- Web: https://lists.debian.org/debian-lts-announce/2019/02/msg00019.html
- Web: https://wordpress.org/news/2018/12/wordpress-5-0-1-security-release/
- Web: https://wordpress.org/support/wordpress-version/version-5-0-1/
- Web: https://wpvulndb.com/vulnerabilities/9171
- Web: https://www.debian.org/security/2019/dsa-4401
- Web: https://www.zdnet.com/article/wordpress-plugs-bug-that-led-to-google-indexing-some-user-passwords/
- Web: https://www.zdnet.com/article/wordpress-vulnerability-affects-a-third-of-most-popular-websites-online/
- Web: https://blog.secarma.co.uk/labs/near-phar-dangerous-unserialization-wherever-you-are
- Web: https://codex.wordpress.org/Version_4.9.9
- Web: https://lists.debian.org/debian-lts-announce/2019/02/msg00019.html
- Web: https://wordpress.org/news/2018/12/wordpress-5-0-1-security-release/
- Web: https://wordpress.org/support/wordpress-version/version-5-0-1/
- Web: https://wpvulndb.com/vulnerabilities/9171
- Web: https://www.debian.org/security/2019/dsa-4401
- Web: https://www.zdnet.com/article/wordpress-plugs-bug-that-led-to-google-indexing-some-user-passwords/
- Web: https://www.zdnet.com/article/wordpress-vulnerability-affects-a-third-of-most-popular-websites-online/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.