WordPress component: Code execution
WordPress component is affected by code execution. Exposure depends on how the affected operation is made reachable by the site. Successful exploitation can run attacker-controlled code in the WordPress hosting account.
- Component
- WordPress component
- Plugin slug
- Not applicable
- Affected
- See vendor advisory
- Safe version
- See mitigation notes
- Published
- Feb 20, 2019
Update, patch or deactivate.
Update WordPress component to a release outside the affected range, or disable and remove it until a fixed version is available.
No confirmed safe version is listed. Consider a vendor-supported patch or temporarily restricting the affected functionality while you assess the risk.
Deactivate only when warranted by your risk profile, or when advised by your hosting provider in the limited circumstances where the vulnerability cannot otherwise be mitigated. If you’re unsure which action is appropriate, contact Fused or your hosting provider for guidance.
Technical 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.
NVD vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Primary and upstream sources
- NVD record for CVE-2019-8942
- Upstream reference packetstormsecurity.com
- Upstream reference rapid7.com
- Upstream reference securityfocus.com
- Upstream reference blog.ripstech.com
- Upstream reference lists.debian.org
- Upstream reference wpvulndb.com
- Upstream reference debian.org
- Upstream reference exploit-db.com
- Upstream reference exploit-db.com
- Upstream reference packetstormsecurity.com
- Upstream reference rapid7.com
- Upstream reference securityfocus.com
- Upstream reference blog.ripstech.com
- Upstream reference lists.debian.org
- Upstream reference wpvulndb.com
- Upstream reference debian.org
- Upstream reference exploit-db.com
- Upstream reference exploit-db.com