LiveActive security incident?Get immediate response
CVE Record

CVE-2021-36041: Magento Commerce Improper Input Validation 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 an improper input validation vulnerability. An attacker with admin privileges could upload a specially crafted file in the 'pub/media` directory could lead to remote code execution.

CriticalCVSS 9.1Not KEV-listedUpdated
Glexia's TakeAutomated analysiscritical

Security readout for executives and security teams

Plain-English summary

This is a critical Magento Commerce issue where an already privileged admin could upload a crafted file and potentially execute code on the server. The business risk is highest where admin accounts are broadly shared, weakly protected, or exposed through compromised credentials.

Executive priority

Treat as urgent for any affected Magento Commerce store, especially internet-facing commerce environments. The vulnerability is critical, but practical exploitation depends on admin access, so patching and admin account hardening should move together.

Technical view

CVE-2021-36041 is an improper input validation flaw in Magento Commerce affecting 2.4.2 and earlier, 2.4.2-p1 and earlier, and 2.3.7 and earlier. The CVSS 3.1 score is 9.1, with network access, low complexity, high privileges, no user interaction, changed scope, and high CIA impact.

Likely exposure

Exposure appears limited to affected Magento Commerce deployments where an attacker has admin privileges. Public-facing admin panels, weak MFA, reused credentials, or compromised admin users materially increase practical risk.

Exploitation context

The provided sources do not show CISA KEV listing or active exploitation evidence. Exploitation requires admin privileges and a crafted file upload into pub/media, so credential compromise is a key enabling condition.

Researcher notes

The source bundle identifies CWE-20, affected versions, CVSS vector, and the admin-required upload-to-RCE condition. It does not provide exploit maturity, detailed affected build ranges beyond the listed versions, or explicit fixed versions in the supplied text.

Mitigation direction

  • Check Adobe APSB21-64 for the applicable security update path.
  • Prioritize upgrades for Magento Commerce 2.4.2, 2.4.2-p1, 2.3.7, and earlier.
  • Restrict admin panel access to trusted networks or VPN where feasible.
  • Enforce MFA and least privilege for Magento admin accounts.
  • Review pub/media upload controls and file integrity monitoring.

Validation and detection

  • Inventory Magento Commerce versions across all production and staging stores.
  • Confirm whether each instance is at or below the affected versions.
  • Review admin accounts for unnecessary privileges, weak authentication, or stale users.
  • Inspect pub/media for unexpected executable or recently modified files.
  • Check logs for unusual admin uploads or suspicious media 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 · low confidence lookup

CWE-20: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. 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
cve · low confidence lookup

CVE-2021-36041 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
Critical
CVSS
9.1 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/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
9.1CVSS 3.1CriticalCVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H2.36Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

9.1Critical
CVSS 3.1 vector shape for CVE-2021-36041Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/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-20 · source CWE mapping

Improper Input Validation

Improper Input Validation represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.