# CVE-2021-24171: WooCommerce Upload Files < 59.4 - Unauthenticated Arbitrary File Upload

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.90%, higher than 80% of CVEs (2026-12-01)
- Published: 2021-04-05T18:27:44.000Z
- Modified: 2026-06-17T03:39:30.930Z
- Weaknesses: CWE-434
- Assigned by: WPScan

## 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.

(As written by CVE List.)

## Affected

- Unknown WooCommerce Upload Files: from 59.4 before 59.4
- vanquish woocommerce_upload_files: before 59.4

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://wpscan.com/vulnerability/ed4288a1-f7e4-455f-b765-5ac343f87194> (third-party-advisory)
- <https://www.wordfence.com/blog/2021/03/critical-vulnerability-patched-in-woocommerce-upload-files/> (third-party-advisory)

## Sources

- CVE List: [CVE-2021-24171](https://www.cve.org/CVERecord?id=CVE-2021-24171), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24171](https://nvd.nist.gov/vuln/detail/CVE-2021-24171), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24171 · Whole record: https://cve.day/CVE-2021-24171.json · Rebuilt by cve.day 2026-11-25T22:58:00.606Z
