Description
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 wp_get_attachment_thumb_file function in wp-includes/post.php.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | wordpress | 5.0.1+dfsg1-1 | — |
| Debian 13 | wordpress | 5.0.1+dfsg1-1 | — |
| Debian 12 | wordpress | 5.0.1+dfsg1-1 | — |
| Debian 9 | wordpress | 4.7.5+dfsg-2+deb9u5 | DSA-4401-1 |
| Debian 8 | wordpress | 4.1.25+dfsg-1+deb8u1 | DLA-1673-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | wordpress | No fix yet | — |
| Ubuntu 16.04 LTS | wordpress | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
nth347/CVE-2018-20148_exploit ★ 4 · Nov 16, 2021
Exploit for CVE-2018-20148 - WordPress PHAR deserialization via XMLRPC
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- DSA-4401-1 wordpress - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1673-1 wordpress - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- 106220 vdb-entry
- https://wordpress.org/support/wordpress-version/version-5-0-1/
- https://blog.secarma.co.uk/labs/near-phar-dangerous-unserialization-wherever-you-are
- https://codex.wordpress.org/Version_4.9.9
- https://wpvulndb.com/vulnerabilities/9171
- https://www.zdnet.com/article/wordpress-vulnerability-affects-a-third-of-most-popular-websites-online/
- DSA-4401 vendor-advisory
- https://wordpress.org/news/2018/12/wordpress-5-0-1-security-release/
- [debian-lts-announce] 20190211 [SECURITY] [DLA 1673-1] wordpress security update mailing-list
- https://www.zdnet.com/article/wordpress-plugs-bug-that-led-to-google-indexing-some-user-passwords/