What’s Vulnerable › Vulnerabilities
CVE-2021-24171: WooCommerce Upload Files < 59.4 - Unauthenticated Arbitrary File Upload
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2021-04-05 · updated 2026-06-17
- Weakness: CWE-434
Description
The WooCommerce Upload Files WordPress plugin before 59.4 ran a single sanitization pass to remove blocked extensions such as .php. It was possible to bypass this and upload a file with a PHP extension by embedding a "blocked" extension within another "blocked" extension in the "wcuf_file_name" parameter. It was also possible to perform a double extension attack and upload files to a different location via path traversal using the "wcuf_current_upload_session_id" parameter.
Affected products
- WooCommerce Upload Files: before 59.4 — fixed in 59.4
How to fix
Upgrade to a fixed version: WooCommerce Upload Files 59.4. Check the vendor advisory for mitigations.
References
- https://wpscan.com/vulnerability/ed4288a1-f7e4-455f-b765-5ac343f87194
- https://www.wordfence.com/blog/2021/03/critical-vulnerability-patched-in-woocommerce-upload-files/
- https://wpscan.com/vulnerability/ed4288a1-f7e4-455f-b765-5ac343f87194
- https://www.wordfence.com/blog/2021/03/critical-vulnerability-patched-in-woocommerce-upload-files/
Get alerted when CVE-2021-24171 or the next vulnerability affects your stack