WordPress File Upload / WordPress File Upload Pro <= 4.16.2 - Authenticated (Contributor+) Path Traversal

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CVE CVE-2021-24962
CVSS Medium (6.5)
Publicly Published March 1, 2022
Last Updated January 22, 2024
Researcher apple502j
Description

The WordPress File Upload Free and Pro WordPress plugins before 4.16.3 allow users with a role as low as Contributor to perform path traversal via a shortcode argument, which can then be used to upload a PHP code disguised as an image inside the auto-loaded directory of the plugin, resulting in arbitrary code execution.

References

2 affected software package

Software Type Plugin
Software Slug wp-file-upload (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 4.16.2
Patched Version
  • 4.16.3
Software Type Plugin
Software Slug wordpress-file-upload-pro (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 4.16.2
Patched Version
  • 4.16.3
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.