← Vulnerability feed

Vulnerability record · CVE-2019-8943 · published 20 February 2019

CVE-2019-8943: WordPress wp_crop_image() path traversal allows arbitrary file write

Wordpress · Wordpress

WordPress through 5.0.3 allows path traversal in wp_crop_image(). A user with privileges to crop an image can supply a filename containing two image extensions and ../ sequences to write the cropped output to an arbitrary directory. Because the write target is attacker-controlled, this can place executable files outside the intended uploads path.

6.5 CVSS 3.1 Medium EPSS 93% · top 0.2% CWE-22 · Path traversal
6.5CVSS 3.1 base score, v2 4.0
93%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
14References, 12 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 18 September 2026. Confidence: high.

high priorityThe flaw requires authenticated low privileges but enables arbitrary file write with public exploit code and a documented RCE chain, and EPSS is extremely high despite no KEV listing.

What it is

WordPress through 5.0.3 allows path traversal in wp_crop_image(). A user with privileges to crop an image can supply a filename containing two image extensions and ../ sequences to write the cropped output to an arbitrary directory. Because the write target is attacker-controlled, this can place executable files outside the intended uploads path.

Impact

An attacker with image-cropping privileges gains arbitrary file write, which can be chained to remote code execution by writing a PHP file into a web-accessible location. The CVSS vector rates integrity impact High with no confidentiality or availability impact.

Attack surface

Reached over the network through the WordPress image crop functionality; the CVSS vector requires low privileges (PR:L) and no user interaction (UI:N). The attacker must already hold a role permitted to crop images.

Exploitation

CISA KEV does not list this CVE, but EPSS is very high (0.92642 probability, 0.99822 percentile) and multiple references are tagged Exploit, including public Metasploit and Exploit-DB entries. Public exploit code and a documented RCE chain exist.

What to do

  • Upgrade WordPress to a version after 5.0.3 that fixes the wp_crop_image() path traversal.
  • If immediate upgrade is not possible, restrict image-cropping capabilities to trusted roles and review which accounts hold upload/edit permissions.
  • Disable or restrict PHP execution in the uploads directory and other writable web paths via web server configuration.
  • Monitor and restrict write access to web-accessible directories so uploaded or cropped files cannot be executed.
  • Apply virtual patching or WAF rules that block filenames containing ../ sequences or double image extensions in crop requests.

Detection

  • Review web server and WordPress logs for crop requests containing filenames with ../ sequences or double image extensions such as .jpg?/../../file.jpg.
  • Monitor the uploads directory and other writable web paths for unexpected PHP files or files written outside normal upload locations.
  • Alert on new executable files appearing in web-accessible directories shortly after image crop activity.
  • Hunt for use of known public exploit tooling against wp_crop_image() endpoints in HTTP request logs.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2019-8943 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2026-63030WordPress REST API route confusion leads to SQL injection and RCEWordPress 6.9.x before 6.9.5 and 7.0.x before 7.0.2 contain a REST API batch endpoint route confusion flaw (CWE-436). Chained with the author__not_in…KEVEPSS 10%analysed9.8CVE-2016-10033PHPMailer isMail mailSend argument injection enables remote code executionPHPMailer before 5.2.18 fails to properly sanitize the Sender property in the mailSend function of the isMail transport, allowing a crafted backslash…KEVEPSS 100%analysed5.9CVE-2026-60137WordPress WP_Query author__not_in SQL injectionWordPress core fails to properly sanitise the author__not_in parameter of WP_Query in versions before 6.8.6, 6.9.5 and 7.0.2, allowing SQL injection …KEVEPSS 5.9%analysed10.0CVE-2012-2399Wordpress vulnerabilityCross-site scripting (XSS) vulnerability in swfupload.swf in SWFupload 2.2.0.1 and earlier, as used in WordPress before 3.5.2, TinyMCE Image Manager …EPSS 8.6%10.0CVE-2012-2400Wordpress vulnerabilityUnspecified vulnerability in wp-includes/js/swfobject.js in WordPress before 3.3.2 has unknown impact and attack vectors.EPSS 3.0%10.0CVE-2011-3125Wordpress vulnerabilityUnspecified vulnerability in WordPress 3.1 before 3.1.3 and 3.2 before Beta 2 has unknown impact and attack vectors related to "Various security hard…EPSS 2.4%10.0CVE-2011-3122Wordpress vulnerabilityUnspecified vulnerability in WordPress 3.1 before 3.1.3 and 3.2 before Beta 2 has unknown impact and attack vectors related to "Media security."EPSS 2.6%10.0CVE-2009-2853Wordpress permissions and access controls vulnerabilityWordpress before 2.8.3 allows remote attackers to gain privileges via a direct request to (1) admin-footer.php, (2) edit-category-form.php, (3) edit-…EPSS 4.7%

Source: NIST National Vulnerability Database (record CVE-2019-8943), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.