Advisory

GHSA-792f-c8mp-2cr5

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

Summary

Magento OS command injection via the WebAPI

Details

Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier) and 2.3.6 (and earlier) are vulnerable to OS command injection via the WebAPI. Successful exploitation could lead to remote code execution by an authenticated attacker. Access to the admin console is required for successful exploitation.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-05-24 17:41 UTC
Modified
2025-02-10 21:15 UTC

Affected packages and fixes

magento/community-edition

Packagist · All systems

Affected

  • introduced 0, fixed 2.3.6-p1 (ecosystem)

Fixed versions

2.3.6-p1

Fix

The export has no generic command for this ecosystem.

magento/community-edition

Packagist · All systems

Affected

  • introduced 2.4.0, fixed 2.4.2 (ecosystem)

Fixed versions

2.4.2

Fix

The export has no generic command for this ecosystem.

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.

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