{"id":"CVE-2021-36036","aliases":["CVE-2021-36036","GHSA-wqr6-wv6c-p8fx","BIT-MAGENTO-2021-36036"],"related":[],"kind":"vulnerability","state":"published","title":"Magento Commerce Media Gallery Upload Improper Access Control Could Lead To Remote Code Execution","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Las versiones 2.4.2 (y anteriores), 2.4.2-p1 (y anteriores) y 2.3.7 (y anteriores) de Magento están afectadas por una vulnerabilidad de control de acceso incorrecta dentro del flujo de trabajo de Magento's Media Gallery Upload. Al almacenar un archivo especialmente manipulado en la galería del sitio web, un atacante autenticado con privilegios administrativos puede obtener acceso para eliminar el archivo .htaccess. Esto podría provocar que el atacante logre la ejecución remota de código.","source":"nvd"},{"lang":"en","text":"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.","format":"markdown","source":"bitnami"}],"published":"2023-09-06T13:08:11.318Z","modified":"2026-09-08T08:48:09.731Z","severity":{"scorer":"adobe","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},"severities":[{"scorer":"adobe","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","score":7.2,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-284"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"2.3.7","status":"affected"}],"vendor":"Adobe","product":"Adobe Commerce","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"2.0.2"}],"ecosystem":"Packagist","package":"magento/project-community-edition","purl":"pkg:composer/magento/project-community-edition","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.7-p1"}],"ecosystem":"Packagist","package":"magento/community-edition","purl":"pkg:composer/magento/community-edition","source":"ghsa"},{"ranges":[{"version":"2.3.7","status":"affected"}],"ecosystem":"Packagist","package":"magento/community-edition","purl":"pkg:composer/magento/community-edition","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.4.2-p1","status":"affected","fixed":"2.4.2-p2"}],"ecosystem":"Packagist","package":"magento/community-edition","purl":"pkg:composer/magento/community-edition","source":"ghsa"},{"ranges":[{"version":"2.4.2","status":"affected"}],"ecosystem":"Packagist","package":"magento/community-edition","purl":"pkg:composer/magento/community-edition","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.3.7"},{"status":"affected","fixed":"2.3.7"},{"status":"affected","introduced":"2.4.0","fixed":"2.4.2"},{"status":"affected","introduced":"2.4.0","fixed":"2.4.2"},{"status":"affected","version":"2.3.7"},{"status":"affected","version":"2.3.7"},{"status":"affected","version":"2.4.2"},{"status":"affected","version":"2.4.2"},{"status":"affected","version":"2.4.2"},{"status":"affected","version":"2.4.2"}],"vendor":"magento","product":"magento","cpe":"cpe:2.3:a:magento:magento:*:*:*:*:commerce:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.3.7"},{"type":"semver","introduced":"2.4.0","status":"affected","fixed":"2.4.2"}],"ecosystem":"Bitnami","package":"magento","purl":"pkg:bitnami/magento","source":"bitnami"}],"references":[{"url":"https://helpx.adobe.com/security/products/magento/apsb21-64.html","tags":["advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36036","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/magento/magento2","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"adobe","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-02-26T21:52:37.519Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-36036","url":"https://www.cve.org/CVERecord?id=CVE-2021-36036","licence":"CVE Terms of Use","modified":"2025-02-27T21:00:40.727Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wqr6-wv6c-p8fx","url":"https://github.com/advisories/GHSA-wqr6-wv6c-p8fx","licence":"CC-BY-4.0","modified":"2025-11-06T17:58:10.855Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-36036","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36036","licence":"Public domain","modified":"2026-06-17T03:58:15.230Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MAGENTO-2021-36036","url":"https://osv.dev/vulnerability/BIT-MAGENTO-2021-36036","licence":"Apache-2.0","modified":"2026-09-08T08:48:09.731Z"}],"updatedAt":"2026-11-25T22:58:08.508Z","epss":{"score":0.0205,"percentile":0.81786,"date":"2026-12-01T12:00:22.000Z"}}