Skip to content
OpenAdvisories
Unscored Public exploit CVE-2018-20148 EUVD-2018-12717GHSA-jgj7-cghf-2wq9

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.getMed…

Published Dec 14, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 2

References