CVE-2021-36036: Magento versions 2.4.2 (and earlier), 2.4.2-p1 (and earlier) and 2.3.7 (and earlier) are affected by an improp
CVE-2021-36036 is a high-severity flaw (CVSS 7.2) affecting magento. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.2 (High) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | High |
| User interaction | None |
| EPSS exploit chance | 2.1% (top 18%) |
| CISA exploited list | No |
| Weakness | CWE-284 |
| Published | 2023-09-06 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-36036?
magento: upgrade to 2.3.7, 2.4.2. Exact commands for each OS are on this page.
Is CVE-2021-36036 being exploited?
CVE-2021-36036 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-36036 affect?
CVE-2021-36036 affects magento. Severity is high (CVSS 7.2). 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
How urgent is CVE-2021-36036?
Priority 46/100. High severity
Software pages
Related CVEs
- CVE-2026-48356 CRITICAL 9.3 EXPLOITED DOWNGRADE DOWNGRADE Adobe Commerce and Magento Unrestricted Upload of File with Dangerous Type Vulnerability
- CVE-2026-40488 HIGH 8.8 UPGRADE Magento Long Term Support (LTS) is an unofficial, community-driven project provides an alternative to the Mage
- CVE-2026-40098 MEDIUM 5.4 UPGRADE Magento Long Term Support (LTS) is an unofficial, community-driven project provides an alternative to the Mage
- CVE-2026-25524 HIGH 8.1 UPGRADE Magento Long Term Support (LTS) is an unofficial, community-driven project provides an alternative to the Mage
- CVE-2026-25525 MEDIUM 4.9 UPGRADE Magento Long Term Support (LTS) is an unofficial, community-driven project provides an alternative to the Mage