# CVE-2021-36036: Magento Commerce Media Gallery Upload Improper Access Control Could Lead To Remote Code Execution

- Priority: **Routine**
- Reason: Not severe (CVSS 7.2, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-09-06 · Modified: 2025-02-27
- Record: https://cvemate.com/vulnerability/CVE-2021-36036 · JSON: https://cvemate.com/vulnerability/CVE-2021-36036/json

## Description

```text
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.
```

## Signals

- CVSS: 7.2 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.05%, percentile 81.889%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- adobe adobe commerce: ≤ 2.3.7
- magento magento: \< 2.3.7 \| ≥ 2.4.0, \< 2.4.2 \| 2.3.7 \| 2.4.2 \| 2.4.2:p1

## References

- <https://helpx.adobe.com/security/products/magento/apsb21-64.html>

---

Data as of 2026-12-05T07:08:47.540Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
