Arbitrary file upload in WordPress

CVE-2019-8942

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.

Vulnerability class: Unrestricted File Upload

Published · last modified .

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS: 0.827 (99.7th percentile), scored .

High probability of exploitation in the next 30 days — patch promptly. 100th percentile — 99.7% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2019-8942: fell from 0.927 to 0.827.

EPSS over last 30 days · oldest: 0.927 · newest: 0.827 · change: -0.100

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2019-8942?
CVE-2019-8942 is a high-severity vulnerability in WordPress, classified under Unrestricted Upload of File with Dangerous Type. CVSS score: 8.8/10. Published 2019-02-20.
How severe is CVE-2019-8942?
High severity. CVSS v3 base score is 8.8 out of 10.
Is CVE-2019-8942 known to be exploited?
25 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.