Advisory

GHSA-wqr6-wv6c-p8fx

Also known as: BIT-magento-2021-36036, CVE-2021-36036

Summary

Magento improper access control vulnerability within Magento's Media Gallery Upload workflow

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2023-09-06 15:30 UTC
Modified
2025-11-06 17:58 UTC

Affected packages and fixes

magento/project-community-edition

Packagist · All systems

Affected

  • introduced 0, last affected 2.0.2 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

magento/community-edition

Packagist · All systems

Affected

  • introduced 0, fixed 2.3.7-p1 (ecosystem)

Fixed versions

2.3.7-p1

Fix

The export has no generic command for this ecosystem.

magento/community-edition

Packagist · All systems

Affected

  • Versions: 2.3.7

Fixed versions

None listed

Fix

No fixed version is listed.

magento/community-edition

Packagist · All systems

Affected

  • introduced 2.4.2-p1, fixed 2.4.2-p2 (ecosystem)

Fixed versions

2.4.2-p2

Fix

The export has no generic command for this ecosystem.

magento/community-edition

Packagist · All systems

Affected

  • Versions: 2.4.2

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences