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

- Severity: High 7.2 (CVSS:3.1, scored by adobe) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.05%, higher than 81% of CVEs (2026-12-01)
- Published: 2023-09-06T13:08:11.318Z
- Modified: 2026-09-08T08:48:09.731Z
- Also known as: GHSA-wqr6-wv6c-p8fx, BIT-MAGENTO-2021-36036
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: adobe

## Description

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.

(As written by CVE List.)

## Affected

- Adobe Adobe Commerce: up to 2.3.7
- magento/project-community-edition (Packagist): up to 2.0.2
- magento/community-edition (Packagist): before 2.3.7-p1; 2.3.7; from 2.4.2-p1 before 2.4.2-p2; 2.4.2
- magento magento: before 2.3.7; from 2.4.0 before 2.4.2; 2.3.7; 2.4.2
- magento (Bitnami): before 2.3.7; from 2.4.0 before 2.4.2

## Every score

- adobe: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://helpx.adobe.com/security/products/magento/apsb21-64.html> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-36036> (advisory, web)
- <https://github.com/magento/magento2> (package)

## Sources

- CVE List: [CVE-2021-36036](https://www.cve.org/CVERecord?id=CVE-2021-36036), CVE Terms of Use, modified 2025-02-27
- GitHub Advisory Database: [GHSA-wqr6-wv6c-p8fx](https://github.com/advisories/GHSA-wqr6-wv6c-p8fx), CC-BY-4.0, modified 2025-11-06
- NVD: [CVE-2021-36036](https://nvd.nist.gov/vuln/detail/CVE-2021-36036), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MAGENTO-2021-36036](https://osv.dev/vulnerability/BIT-MAGENTO-2021-36036), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-36036 · Whole record: https://cve.day/CVE-2021-36036.json · Rebuilt by cve.day 2026-11-25T22:58:08.508Z
