Advisory

GHSA-7w95-qwhh-q9p3

Also known as: CVE-2021-36031

Summary

Magento Path Traversal vulnerability via the theme[preview_image] parameter

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

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