LiveActive security incident?Get immediate response
CVE Record

CVE-2021-36031: Magento Commerce Path Traversal In `theme[preview_image]` Parameter Could Lead To Remote Code Execution

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.

HighCVSS 7.2Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

This flaw affects Adobe Magento Commerce and can let an authenticated administrator turn a path traversal bug into remote code execution. It is serious because an abused, stolen, or malicious admin account could move from store administration into server compromise.

Executive priority

Treat as a high-priority remediation if affected Magento Commerce systems are still in service. The admin-privilege requirement lowers mass exploitation risk, but successful abuse could compromise the underlying commerce server.

Technical view

CVE-2021-36031 is a CWE-22 path traversal issue in the theme[preview_image] parameter of Magento Commerce. The CVSS 3.1 score is 7.2, with network attack vector, low complexity, high privileges required, and high confidentiality, integrity, and availability impact.

Likely exposure

Exposure is likely where Magento Commerce 2.4.2 and earlier, 2.4.2-p1 and earlier, or 2.3.7 and earlier are deployed, especially if admin access is internet-accessible or broadly assigned.

Exploitation context

The provided sources do not show CISA KEV listing or active exploitation. Exploitation requires admin privileges, so practical risk depends heavily on admin account security, access controls, and whether affected Magento Commerce versions remain deployed.

Researcher notes

Key constraints are PR:H and UI:N. Focus validation on affected version presence, administrative access paths, and whether Adobe’s bulletin remediation is installed. The source bundle does not provide exploit details or independent exploitation evidence.

Mitigation direction

  • Review Adobe APSB21-64 for the vendor-supported update or remediation path.
  • Upgrade or patch affected Magento Commerce installations according to Adobe guidance.
  • Restrict Magento admin access to trusted networks and authorized users.
  • Review and minimize administrator privileges across Magento accounts.
  • Strengthen admin authentication with MFA where supported.

Validation and detection

  • Inventory Magento Commerce versions against the affected version ranges.
  • Confirm whether Adobe APSB21-64 remediation has been applied.
  • Review who has Magento administrator privileges.
  • Check whether admin interfaces are exposed beyond trusted networks.
  • Review admin activity logs for unexpected theme or preview image changes.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-22: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-36031 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.2 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.2CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H1.25.9Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.2High
CVSS 3.1 vector shape for CVE-2021-36031Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
AdobeMagento Commerceunspecified, unspecified, unspecified, unspecifiedListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-22 · source CWE mapping

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.