CVE-2021-36040: Magento Commerce Improper Input Validation Could Lead To Remote Code Execution
Vulnerability summary
CVE-2021-36040 is a critical (CVSS 9.1) Improper Input Validation vulnerability in adobe adobe commerce. EPSS estimates a 2.87% chance of exploitation in the next 30 days, higher than 87.2% of scored vulnerabilities.
Severe, CVSS 9.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 3% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 01-09-2021PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
Description
Magento Commerce versions 2.4.2 (and earlier), 2.4.2-p1 (and earlier) and 2.3.7 (and earlier) are affected by an improper input validation vulnerability. An attacker with admin privileges can upload a specially crafted file to bypass file extension restrictions and could lead to remote code execution.
CVSS metrics
3 scores · 2 sources · 2 versions- NVDNIST7.2HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
2.87%
Chance of exploitation in the next 30 days
Percentile
87%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.87% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-20Improper Input ValidationThe product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
- CWE-434Unrestricted Upload of File with Dangerous TypeThe product allows the upload or transfer of dangerous file types that are automatically processed within its environment.
Affected systems
Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Adobe3 products
- adobe commerce≥ 2.3.0, ≤ 2.3.7 | ≥ 2.4.0, ≤ 2.4.2 | 2.4.2:p1
- magento_commerce≥ unspecified, ≤ 2.4.2 | ≥ unspecified, ≤ 2.4.2-p1 | ≥ unspecified, ≤ 2.3.7 | ≥ unspecified, ≤ None
- magento open source≥ 2.3.0, ≤ 2.3.7 | ≥ 2.4.0, ≤ 2.4.2 | 2.4.2:p1
1 vendor · 3 products