CVE-2021-21016: Magento OS command injection via the WebAPI
Magento OS command injection via the WebAPI
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/magento/community-editionto a version that resolves this vulnerability.Fixed in 2.4.2 - Upgrade
Upgrade
composer/magento/community-editionto a version that resolves this vulnerability.Fixed in 2.3.6-p1
Event History
Frequently Asked Questions
What is CVE-2021-21016?
CVE-2021-21016 is a vulnerability in Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier), and 2.3.6 (and earlier) that allows OS command injection via the WebAPI.
How severe is CVE-2021-21016?
CVE-2021-21016 has a severity rating of 9.1 (critical).
What is the impact of CVE-2021-21016?
Successful exploitation of CVE-2021-21016 could lead to remote code execution by an authenticated attacker with access to the admin console.
Which versions of Magento are affected by CVE-2021-21016?
Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier), and 2.3.6 (and earlier) are affected by CVE-2021-21016.
How can I fix CVE-2021-21016?
To fix CVE-2021-21016, it is recommended to update to a patched version of Magento. Refer to the vendor's security advisory for more information.