CVE-2021-36036 json
Magento Commerce Media Gallery Upload Improper Access Control Could Lead To Remote Code Execution
published 2023-09-06 3 y ago modified 2026-09-08 2 mo ago also BIT-magento-2021-36036 , EUVD-2021-22669 , GHSA-wqr6-wv6c-p8fx
- cvss
- 7.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known
Summary
Magento versions 2.4.2 (and earlier), 2.4.2-p1 (and earlier) and 2.3.7 (and earlier) are affected by an improper access control vulnerability within Magento's Media Gallery Upload workflow. By storing a specially crafted file in the website gallery, an authenticated attacker with administrative privilege can gain access to delete the .htaccess file. This could result in the attacker achieving remote code execution.
Patch / fix
- packagist magento/community-edition 2.3.7-p1, 2.4.2-p2
- bitnami magento 2.3.7, 2.4.2
- magento magento 2.3.7, 2.4.2
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- total
- Assessed
- 20 mo ago
Exploit prediction
2.12% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H |
| OSV | 3.1 | 7.2 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | magento/project-community-edition | <=2.0.2 |
no fix listed |
| packagist | magento/community-edition | <2.3.7-p1 1 listed version >=2.4.2-p1, <2.4.2-p2 |
2.3.7-p1 2.4.2-p2 |
| bitnami | magento | <2.3.7 >=2.4.0, <2.4.2 |
2.3.7 2.4.2 |
Affected products
- Adobe Adobe Commerce
Classification
- Weakness
-
- CWE-284 Improper Access Control
References
-
helpx.adobe.com
/security/products/magento/apsb21-64.html
vendor-advisory, web, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-36036
advisory, web
-
github.com
/magento/magento2
package
Sources
- CVE List CVE-2021-36036
- GitHub Advisory GHSA-wqr6-wv6c-p8fx
- NVD CVE-2021-36036
- OSV BIT-magento-2021-36036
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.