GitHub Advisory Database
GHSA-792f-c8mp-2cr5
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | magento/community-edition | All versions before 2.3.6-p1 (fixed in 2.3.6-p1) |
| Packagist | magento/community-edition | From 2.4.0 before 2.4.2 (fixed in 2.4.2) |
| Packagist | magento/project-community-edition | All versions up to and including 2.0.2 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-21016
- https://github.com/magento/magento2/commit/a2eb7e29ea92a8bbc86c3b6b81b59d8533088497
- https://github.com/magento/magento2/commit/a349e022c9ae070e7da262021f9ef182105aa00b
- https://github.com/magento/magento2
- https://helpx.adobe.com/security/products/magento/apsb21-08.html