Critical severity9.1NVD Advisory· Published Feb 11, 2021· Updated Jun 17, 2026
CVE-2021-21016
CVE-2021-21016
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
magento/community-editionPackagist | < 2.3.6-p1 | 2.3.6-p1 |
magento/community-editionPackagist | >= 2.4.0, < 2.4.2 | 2.4.2 |
magento/project-community-editionPackagist | <= 2.0.2 | — |
Affected products
14cpe:2.3:a:magento:magento:*:*:*:*:commerce:*:*:*+ 9 more
- cpe:2.3:a:magento:magento:*:*:*:*:commerce:*:*:*range: <2.3.6
- cpe:2.3:a:magento:magento:*:*:*:*:open_source:*:*:*range: <2.3.6
- cpe:2.3:a:magento:magento:2.3.6:-:*:*:commerce:*:*:*
- cpe:2.3:a:magento:magento:2.3.6:-:*:*:open_source:*:*:*
- cpe:2.3:a:magento:magento:2.4.0:-:*:*:commerce:*:*:*
- cpe:2.3:a:magento:magento:2.4.0:-:*:*:open_source:*:*:*
- cpe:2.3:a:magento:magento:2.4.0:p1:*:*:commerce:*:*:*
- cpe:2.3:a:magento:magento:2.4.0:p1:*:*:open_source:*:*:*
- cpe:2.3:a:magento:magento:2.4.1:-:*:*:commerce:*:*:*
- cpe:2.3:a:magento:magento:2.4.1:-:*:*:open_source:*:*:*
- osv-coords3 versionspkg:bitnami/magentopkg:composer/magento/community-editionpkg:composer/magento/project-community-edition
< 2.3.6+ 2 more
- (no CPE)range: < 2.3.6
- (no CPE)range: < 2.3.6-p1
- (no CPE)range: <= 2.0.2
- Range: unspecified
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-792f-c8mp-2cr5ghsaADVISORY
- helpx.adobe.com/security/products/magento/apsb21-08.htmlnvdVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2021-21016ghsaADVISORY
- github.com/magento/magento2/commit/a2eb7e29ea92a8bbc86c3b6b81b59d8533088497ghsaWEB
- github.com/magento/magento2/commit/a349e022c9ae070e7da262021f9ef182105aa00bghsaWEB
News mentions
0No linked articles in our index yet.