CVE-2021-36031: Magento Commerce - Remote Code Execution
- Cve: CVE-2021-36031
- Name: Magento Commerce - Remote Code Execution
- Description: Magento Commerce versions 2.4.2 (and earlier), 2.4.2-p1 (and earlier) and 2.3.7 (and earlier) are affected by a Path Traversal vulnerability via the `theme[preview_image]` parameter. An attacker with admin privileges could leverage this vulnerability to achieve remote code execution.
- Impact: Attackers with admin privileges can execute arbitrary code remotely, leading to full system compromise.
- Remediation: Update to the latest version of Magento Commerce, preferably the latest release available.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: admin_privileges
- Requirements: Attacker needs admin privileges
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.2
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.02937
- Epss percentile: 0.87449
- Assignee: [email protected]
- Published at: 2021-09-01T15:15:09Z
- Age in days: 1910
- Modified at: 2026-06-17T03:58:14Z
- Patch available: yes
- References total: 1
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-36031
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
References
| Url | Source | Tags |
|---|---|---|
| https://helpx.adobe.com/security/products/magento/apsb21-64.html | nvd | Patch, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| adobe:magento_open_source | = 2.4.2 p1; >= 2.4.0, <= 2.4.2; >= 2.3.0, <= 2.3.7 | no | nvd | /v1/products/adobe/magento_open_source |
| adobe:adobe_commerce | = 2.4.2 p1; >= 2.4.0, <= 2.4.2; >= 2.3.0, <= 2.3.7 | no | nvd | /v1/products/adobe/adobe_commerce |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| magento/magento2 | package | yes | /v1/repositories/magento/magento2 |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts