LiveActive security incident?Get immediate response
CVE Record

CVE-2021-36036: Magento Commerce Media Gallery Upload Improper Access Control Could Lead To Remote Code Execution

Magento versions 2.4.2 (and earlier), 2.4.2-p1 (and earlier) and 2.3.7 (and earlier) are affected by an improper access control vulnerability within Magento's Media Gallery Upload workflow. By storing a specially crafted file in the website gallery, an authenticated attacker with administrative privilege can gain access to delete the .htaccess file. This could result in the attacker achieving 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 older Magento/Adobe Commerce sites. A logged-in administrator could use the Media Gallery upload workflow to store a crafted file and remove .htaccess, potentially enabling remote code execution. The business risk is serious, but the attacker already needs high administrative privileges.

Executive priority

Prioritize remediation for any production commerce site on an affected version. The flaw requires administrator-level access, but successful abuse could lead to full site compromise and direct business impact.

Technical view

CVE-2021-36036 is an improper access control issue in Magento Media Gallery Upload. Affected versions include 2.4.2 and earlier, 2.4.2-p1 and earlier, and 2.3.7 and earlier. CVSS 3.1 is 7.2 with network access, low complexity, high privileges, no user interaction, and high confidentiality, integrity, and availability impact.

Likely exposure

Exposure is likely limited to Adobe Commerce/Magento deployments running the listed affected versions where an attacker has, or can obtain, administrative privileges. Public-facing commerce sites are business-sensitive, but the high-privilege requirement narrows the initial attack path.

Exploitation context

The source bundle does not show CISA KEV listing or cited evidence of active exploitation. It describes a potential path to remote code execution after authenticated administrative access and Media Gallery upload misuse.

Researcher notes

The evidence supports high impact with privileged preconditions. Do not assume unauthenticated exploitation. The bundle does not provide patched version details, exploit availability, or incident evidence beyond the vendor advisory and CVE metadata.

Mitigation direction

  • Identify Magento/Adobe Commerce instances at or below the listed affected versions.
  • Review Adobe APSB21-64 and apply the vendor-specified security update or migration.
  • Restrict and audit administrative accounts, especially Media Gallery upload permissions.
  • Monitor web server configuration files such as .htaccess for unexpected deletion.
  • If updating is delayed, request vendor guidance for compensating controls.

Validation and detection

  • Inventory deployed versions against the affected version thresholds in the CVE description.
  • Review admin roles with Media Gallery upload access.
  • Check logs for Media Gallery uploads followed by .htaccess deletion or configuration changes.
  • Confirm remediation status against Adobe APSB21-64 guidance.
  • Verify no unexpected administrative accounts or role changes exist.
Prepared
Confidence
high
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-284: Authorization and privilege behavior lookup

Authorization weaknesses can support privilege escalation and valid-account review, depending on exploit path. 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-36036 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-36036Attack 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
AdobeAdobe Commerce0affected
Weakness

CWE details

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

CWE-284 · source CWE mapping

Improper Access Control

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