CVE-2021-36036
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.
How to fix
- magento magento2.3.7, 2.4.2 or later
- magento/community-edition2.3.7-p1, 2.4.2-p2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| magento magento | v < 2.3.7, 2.4.0 ≤ v < 2.4.2, 2.3.7, 2.4.2 | 2.3.7, 2.4.2 |
| magento/project-community-editionPackagist | v ≤ 2.0.2 | — |
| magento/community-editionPackagist | v < 2.3.7-p1, No range specified, 2.4.2-p1 ≤ v < 2.4.2-p2 | 2.3.7-p1, 2.4.2-p2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.