{"id":"CVE-2021-36031","aliases":["CVE-2021-36031","GHSA-7w95-qwhh-q9p3"],"related":[],"kind":"vulnerability","state":"published","title":"Magento Commerce Path Traversal In `theme[preview_image]` Parameter Could Lead To Remote Code Execution","summary":"Magento Commerce versions 2.4.2 (and earlier), 2.4.2-p1 (and earlier) and 2.3.7 (and earlier) are affected by a Path Traversal vulnerability via the `theme[preview_image]` parameter. An attacker with admin privileges could leverage this vulnerability to achieve remote code execution.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Magento Commerce versions 2.4.2 (and earlier), 2.4.2-p1 (and earlier) and 2.3.7 (and earlier) are affected by a Path Traversal vulnerability via the `theme[preview_image]` parameter. An attacker with admin privileges could leverage this vulnerability to achieve remote code execution.","source":"cvelist"},{"lang":"es","text":"Magento Commerce versiones 2.4.2 (y anteriores), versiones 2.4.2-p1 (y anteriores), y versiones 2.3.7 (y anteriores), están afectadas por una vulnerabilidad de Salto de Ruta por medio del parámetro \"theme[preview_image]\". Un atacante con privilegios de administrador podría aprovechar esta vulnerabilidad para lograr una ejecución de código remota","source":"nvd"}],"published":"2021-09-01T14:30:35.018Z","modified":"2026-06-17T03:58:14.670Z","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":"rating","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"2.4.2","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"2.4.2-p1","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"2.3.7","status":"affected"},{"type":"custom","introduced":"unspecified","lastAffected":"None","status":"affected"}],"vendor":"Adobe","product":"Magento 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","introduced":"2.3.0","lastAffected":"2.3.7"},{"status":"affected","introduced":"2.4.0","lastAffected":"2.4.2"},{"status":"affected","version":"2.4.2"}],"vendor":"adobe","product":"adobe_commerce","cpe":"cpe:2.3:a:adobe:adobe_commerce:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"2.3.0","lastAffected":"2.3.7"},{"status":"affected","introduced":"2.4.0","lastAffected":"2.4.2"},{"status":"affected","version":"2.4.2"}],"vendor":"adobe","product":"magento_open_source","cpe":"cpe:2.3:a:adobe:magento_open_source:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://helpx.adobe.com/security/products/magento/apsb21-64.html","tags":["patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36031","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/magento/magento2","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"adobe","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-36031","url":"https://www.cve.org/CVERecord?id=CVE-2021-36031","licence":"CVE Terms of Use","modified":"2024-09-17T03:02:41.318Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-7w95-qwhh-q9p3","url":"https://github.com/advisories/GHSA-7w95-qwhh-q9p3","licence":"CC-BY-4.0","modified":"2025-11-07T00:15:14.311Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-36031","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-36031","licence":"Public domain","modified":"2026-06-17T03:58:14.670Z"}],"updatedAt":"2026-11-25T22:58:03.599Z","epss":{"score":0.02937,"percentile":0.87865,"date":"2026-11-30T12:00:22.000Z"}}