CVE-2021-36031

Magento Commerce Path Traversal In `theme[preview_image]` Parameter Could Lead To Remote Code Execution

7.2 high EPSS 2.94%

Published 1 Sep 2021 Updated 17 Sep 2024 CNA: adobe

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.

Severity (CVSS)

7.2 high CVSS 3.1 from adobe (CNA)
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
high: the attacker needs an administrative account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 2.94%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 87.8% of all scored CVEs. Scores of 30 Nov 2026.

Weakness

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

Affected products

As the CNA lists them.

ProductVersions
Magento Commerce
affected up to and including 2.4.2
affected up to and including 2.4.2-p1
affected up to and including 2.3.7
affected up to and including None

Is my server affected?

This CVE is in Magento Commerce of Adobe, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Other references

Source: the record CVE-2021-36031 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.