CVE-2021-36036
highpriority · track · 1EPSS 0.021 · 82 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.2–9.1
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (17)
Products and version ranges known to be affected.
- Packagist magento/project-community-edition≤ 2.0.2osvUSpkg:composer/magento/project-community-edition
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-wqr6-wv6c-p8fxMagento improper access control vulnerability within Magento's Media Gallery Upload workflow2023-09-06ghsa · osvUS
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.
- BIT-magento-2021-36036Magento Commerce Media Gallery Upload Improper Access Control Could Lead To Remote Code Execution2024-03-06vendor · osvUS
Magento versions 2.4.2 (and earlier), 2.4.2 (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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2021-36036/cnnvd
- https://helpx.adobe.com/security/products/magento/apsb21-64.htmlcnnvd
- https://helpx.adobe.com/security/products/magento/apsb21-64.html?mv=affiliate&mv2=redPatchcnnvd
- https://vigilance.fr/vulnerability/Magento-Commerce-OS-multiple-vulnerabilities-36104cnnvd
- https://www.auscert.org.au/bulletins/ESB-2021.2693cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021081043cnnvd
- https://helpx.adobe.com/security/products/magento/apsb21-64.htmlenisa_euvd
- https://helpx.adobe.com/security/products/magento/apsb21-64.htmlVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan