CVE-2019-8942

critical
Published — · Modified —
CVSS v3
CVSS v4 NEW
not yet in upstream
VIR risk
10.0

Description

WordPress before 4.9.9 and 5.x before 5.0.1 allows remote code execution because an _wp_attached_file Post Meta entry can be changed to an arbitrary string, such as one ending with a .jpg?file.php substring. An attacker with author privileges can execute arbitrary code by uploading a crafted image containing PHP code in the Exif metadata. Exploitation can leverage CVE-2019-8943.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.

✚ Propose a mitigation on Community → Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-46662 remote php verified
Metasploit · 2019-04-05

WordPress Core 5.0.0 - Crop-image Shell Upload (Metasploit)

Source code queued for fetch — refresh in a moment.
EDB-46511 webapps php
allyshka · 2019-03-01

WordPress Core 5.0 - Remote Code Execution

Source code queued for fetch — refresh in a moment.

Metasploit modules

WordPress Crop-image Shell Upload
Source fetch failed: fetch_error — view the original via the link above.

OS impact

arch Arch Fixed 1 release
VersionStatusFixed in
Fixed 5.0.1-1
debian Debian Fixed 5 releases
VersionStatusFixed in
trixie Fixed 5.0.1+dfsg1-1
sid Fixed 5.0.1+dfsg1-1
forky Fixed 5.0.1+dfsg1-1
bullseye Fixed 5.0.1+dfsg1-1
bookworm Fixed 5.0.1+dfsg1-1

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.