SecurityContext

CVE-2021-24171: WooCommerce Upload Files - Unrestricted File Upload

  • Cve: CVE-2021-24171
  • Name: WooCommerce Upload Files - Unrestricted File Upload
  • 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.
  • Impact: Attackers can upload malicious PHP files and execute arbitrary code, potentially leading to full site compromise.
  • Remediation: Update to version 59.4 or later.
  • Vulnerability type: unrestricted_file_upload
  • Vulnerability impact: remote_code_execution, file_system_write
  • Requirement type: user_interaction
  • Requirements: Attacker needs to upload files with crafted filenames
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01899
  • Epss percentile: 0.80228
  • Assignee: [email protected]
  • Published at: 2021-04-05T19:15:15Z
  • Age in days: 2060
  • Modified at: 2026-06-17T03:39:30Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-24171
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-434Unrestricted Upload of File with Dangerous Type

References

UrlSourceTags
https://wpscan.com/vulnerability/ed4288a1-f7e4-455f-b765-5ac343f87194nvdThird Party Advisory
https://www.wordfence.com/blog/2021/03/critical-vulnerability-patched-in-woocommerce-upload-files/nvdThird Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
vanquish:woocommerce_upload_files< 59.4nonvd/v1/products/vanquish/woocommerce_upload_files

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts