Back
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…
High8.8EPSS 82.7%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | High8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 82.7% · top 0.3% of all CVEs (5 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Weakness
Affected products
n/a
- affected n/a
References (9)
- https://wpvulndb.com/vulnerabilities/9222 (opens in a new tab)x_refsource_MISCx_transferred
- 46511 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
- 107088 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/ (opens in a new tab)x_refsource_MISCx_transferred
- DSA-4401 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- [debian-lts-announce] 20190331 [SECURITY] [DLA 1742-1] wordpress security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html (opens in a new tab)x_refsource_MISCx_transferred
- http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce (opens in a new tab)x_refsource_MISCx_transferred
- 46662 (opens in a new tab)exploitx_refsource_EXPLOIT-DBx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2019-8942)Record last updated .