CVE-2021-21014 | Magento Commerce Arbitrary Folder Empty Could Lead To Arbitrary Code Execution

Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier) and 2.3.6 (and earlier) are vulnerable to a file upload restriction bypass. Successful exploitation could lead to arbitrary code execution by an authenticated attacker. Access to the admin console is required for successful exploitation.

Published: 2021-02-11 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2021-21014 is rated High Risk (71.6/100): CVSS Critical severity, with medium exploitation likelihood (EPSS 4.21%). Core evidence: EPSS rose +3.84% over the last day, indicating growing attacker interest. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2021-21014

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.37% 4.21% +3.84%
2 2026-05-01 0.47% 0.37% -0.10%
3 2026-01-25 0.47%

Full EPSS history (16 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2021-21014

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
9.1 3.0 CRITICAL
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:H)
They need powerful rights—admin, root, or similar—before this pays off.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
2.3 6.0 [email protected]
6.5 2.0 MEDIUM
AV:N/AC:L/Au:S/C:P/I:P/A:P Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:S)
A single authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:P)
Partial integrity impact.
Availability impact (A:P)
Partial availability impact.
8.0 6.4 [email protected]

Weakness enumeration for CVE-2021-21014

GitHub Security Advisory for CVE-2021-21014

GHSA-269w-pqc7-68q9 · Severity: critical · Ecosystem: composer — Magento vulnerable to a file upload restriction bypass

Affected software / configurations for CVE-2021-21014

Vendor Product Version Raw CPE
magento magento < 2.3.6 cpe:2.3:a:magento:magento:*:*:*:*:commerce:*:*:*
magento magento < 2.3.6 cpe:2.3:a:magento:magento:*:*:*:*:open_source:*:*:*
magento magento 2.3.6 cpe:2.3:a:magento:magento:2.3.6:-:*:*:commerce:*:*:*
magento magento 2.3.6 cpe:2.3:a:magento:magento:2.3.6:-:*:*:open_source:*:*:*
magento magento 2.4.0 cpe:2.3:a:magento:magento:2.4.0:-:*:*:commerce:*:*:*
magento magento 2.4.0 cpe:2.3:a:magento:magento:2.4.0:-:*:*:open_source:*:*:*
magento magento 2.4.0 cpe:2.3:a:magento:magento:2.4.0:p1:*:*:commerce:*:*:*
magento magento 2.4.0 cpe:2.3:a:magento:magento:2.4.0:p1:*:*:open_source:*:*:*
magento magento 2.4.1 cpe:2.3:a:magento:magento:2.4.1:-:*:*:commerce:*:*:*
magento magento 2.4.1 cpe:2.3:a:magento:magento:2.4.1:-:*:*:open_source:*:*:*

References for CVE-2021-21014

cvelogic Threat Intelligence