CVE-2021-36036

High

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.

SeverityHigh
CVSS7.2
Exploit probability—
ProductMagento
PublishedSep 6, 2023
First seenSep 6, 2023

How to fix

Update
  • magento magento2.3.7, 2.4.2 or later
  • magento/community-edition2.3.7-p1, 2.4.2-p2 or later

Affected products

ProductAffected versionsFixed in
magento magentov < 2.3.7, 2.4.0 ≤ v < 2.4.2, 2.3.7, 2.4.22.3.7, 2.4.2
magento/project-community-editionPackagistv ≤ 2.0.2—
magento/community-editionPackagistv < 2.3.7-p1, No range specified, 2.4.2-p1 ≤ v < 2.4.2-p22.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.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2021-36036 · Magento · Dark Radar