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...
High CVSS 8.8
- CVE id
- CVE-2019-8942
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| WordPress Runtimes and servers |
< 4.9.9 >= 5.0, < 5.1 |
4.9.9, 5.1 |
How to fix it
Upgrade WordPress to the fixed release of the line you run: 4.9.9, 5.1.
wp core version
- Update WordPress core to the patched release (Dashboard > Updates, wp core update, or the wordpress image tag).
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
WordPress before 4.9.9 and 5.x before 5.0.1 allows remote code execution because an wpattached_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.
References
- CVE-2019-8942 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2019-8942
- Web: https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/
- Web: https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html
- Web: https://wpvulndb.com/vulnerabilities/9222
- Web: https://www.debian.org/security/2019/dsa-4401
- Web: https://www.exploit-db.com/exploits/46511/
- Web: https://www.exploit-db.com/exploits/46662/
- Web: https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/
- Web: https://lists.debian.org/debian-lts-announce/2019/03/msg00044.html
- Web: https://wpvulndb.com/vulnerabilities/9222
- Web: https://www.debian.org/security/2019/dsa-4401
- Web: https://www.exploit-db.com/exploits/46511/
- Web: https://www.exploit-db.com/exploits/46662/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.