Advisory

GHSA-2pq5-gpqf-g4r3

Also known as: CVE-2021-36040

Summary

Magento has a file extension restrictions bypass

Details

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 can upload a specially crafted file to bypass file extension restrictions and could lead to remote code execution.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-24 19:12 UTC
Modified
2025-11-07 23:44 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

  • Versions: 2.4.2

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.3.7

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.

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