CVE-2021-36036Magento Commerce Media Gallery Upload Improper Access Control Could Lead To Remote Code…
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
Fixed builds are available from Packagist: see the table below for the fixed version per release.
Packagist has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Packagist library | magento/community-edition | Fixed | 2.4.2-p2 | GHSA-wqr6-wv6c-p8fx |
| Packagist library | magento/project-community-edition | Fix pending | GHSA-wqr6-wv6c-p8fx |
What the vendor says
As published in the CVE record by adobe, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Adobe Commerce: affected: up to 2.3.7
Vendor advisories:
- https://helpx.adobe.com/security/products/magento/apsb21-64.html (vendor-advisory)
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.