CVE-2021-36036Magento
High 7.2
Follow: this CVE · Magento · Magento We alert you by email or Slack (account required).
- Priority
- 43
- CVSS 3.1
- 7.2
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 82
- Auth required
- Yes
- Published
- Sep 6, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-284
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Magento.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | magento/community-edition |
< 2.3.7-p1 |
2.3.7-p1 |
composer require "magento/community-edition:^2.3.7-p1" |
| Packagist | magento/community-edition |
2.3.7 |
no fixed version | — |
| Packagist | magento/community-edition |
≥ 2.4.2-p1 < 2.4.2-p2 |
2.4.2-p2 |
composer require "magento/community-edition:^2.4.2-p2" |
| Packagist | magento/community-edition |
2.4.2 |
no fixed version | — |
| Packagist | magento/project-community-edition |
≤ 2.0.2 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-wqr6-wv6c-p8fx). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| magento | magento | < 2.3.7 |
| magento | magento | < 2.3.7 |
| magento | magento | ≥ 2.4.0 < 2.4.2 |
| magento | magento | ≥ 2.4.0 < 2.4.2 |
| magento | magento | 2.3.7 |
| magento | magento | 2.3.7 |
| magento | magento | 2.4.2 |
| magento | magento | 2.4.2 |
| magento | magento | 2.4.2 |
| magento | magento | 2.4.2 |
Official sources
References
Links published by the sources. Open them with care.
- helpx.adobe.com Vendor Advisory