CVE-2021-47940
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedWordPress Plugin Download From Files version 1.48 and earlier contains an arbitrary file upload vulnerability that allows unauthenticated attackers to upload malicious files by exploiting the AJAX fileupload action. Attackers can send POST requests to the admin-ajax.php endpoint with the download_from_files_617_fileupload action, manipulating the allowExt parameter to bypass file type restrictions and upload executable files like PHP shells to the web root.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceThe WordPress 'Download From Files' plugin versions 1.48 and earlier contains an unauthenticated arbitrary file upload vulnerability in the AJAX fileupload action (download_from_files_617_fileupload). Attackers can bypass file type restrictions by manipulating the allowExt parameter when sending POST requests to admin-ajax.php, allowing execution of malicious PHP files in the web root.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Verify plugin versionNavigate to WordPress admin > Plugins > Installed Plugins > Download From Files and check the Version field, or inspect the plugin header in wp-content/plugins/download-from-files/download-from-files.phpAffected if The installed version is 1.48 or earlier
-
Confirm the vulnerable AJAX action existsInspect the plugin source file for the function handling 'download_from_files_617_fileupload' AJAX action, typically in the main plugin PHP file, and verify it accepts the allowExt parameter without proper validationAffected if The AJAX action 'download_from_files_617_fileupload' is present and the allowExt parameter can be manipulated
-
Test unauthenticated access to admin-ajax.phpSend a GET or POST request to /wp-admin/admin-ajax.php?action=download_from_files_617_fileupload without authenticating (no valid WordPress nonce or session)Affected if The server responds to the request (returns any HTTP response other than 401/403) indicating the endpoint is accessible to unauthenticated users
-
Inspect web root for suspicious PHP filesList all PHP files in the WordPress web root directory (typically the folder containing wp-config.php) and review any files with names that appear random, encoded, or match common webshell patternsAffected if Unexpected or unknown PHP files exist in the web root that were not intentionally uploaded by administrators
A user is affected if the Download From Files plugin version is 1.48 or earlier and the admin-ajax.php endpoint is accessible to unauthenticated users, or if unexpected PHP files exist in the web root.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade the 'Download From Files' plugin to version 1.49 or later, or remove the plugin if not needed. If exploitation is suspected, conduct a full compromise assessment to identify and remove any malicious files already uploaded.
Download From Files version 1.49 or later
- Check the current version of the Download From Files plugin in WordPress admin under Plugins > Installed Plugins
- Navigate to the WordPress Plugin Repository at wordpress.org to find the latest fixed version
- Update the plugin through WordPress admin: Plugins > Add New > Upload or update directly from the Plugins page
- After updating, verify the new version number reflects the patched release
- Confirm the vulnerability is patched by ensuring the admin-ajax.php?action=download_from_files_617_fileupload endpoint no longer accepts unauthenticated file uploads
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation1.0 h
- Testing1.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,456.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-47940 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-47940 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data