7.2high
Magento Commerce Path Traversal In `theme[preview_image]` Parameter Could Lead To Remote Code Execution
- Severity
- 7.2high CVSS:3.1 by adobe
- Exploit likelihood
- 2.94% (higher than 88% of CVEs)
- Published
- Last changed
- Assigned by
- adobe
- Also known as
- GHSA-7w95-qwhh-q9p3
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Adobe Magento Commerce | from unspecified up to 2.4.2, from unspecified up to 2.4.2-p1, from unspecified up to 2.3.7, from unspecified up to None | CVE List |
| magento/project-community-edition (Packagist) | up to 2.0.2 | GitHub Advisory Database |
| magento/community-edition (Packagist) | before 2.3.7-p1, 2.3.7, from 2.4.2-p1 before 2.4.2-p2, 2.4.2 | GitHub Advisory Database |
| adobe adobe_commerce | from 2.3.0 up to 2.3.7, from 2.4.0 up to 2.4.2, 2.4.2 | NVD |
| adobe magento_open_source | from 2.3.0 up to 2.3.7, from 2.4.0 up to 2.4.2, 2.4.2 | NVD |
All scores
| adobe | 7.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high rating | |
| NVD | 6.5medium CVSS:2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
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
References
| https://helpx.adobe.com/security/products/magento/apsb21-64.html | patch, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-36031 | advisory | |
| https://github.com/magento/magento2 | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-36031 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7w95-qwhh-q9p3 changed 2025-11-07 | CC-BY-4.0 |
| NVD | CVE-2021-36031 changed 2026-06-17 | Public domain |