CVE-2021-21015Magento
High 8.0
Follow: this CVE · Magento · Magento We alert you by email or Slack (account required).
- Priority
- 48
- CVSS 3.0
- 8.0
- EPSS
- 2.9% probability of exploitation in 30 days · percentile 88
- Auth required
- Yes
- Published
- Feb 11, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-78
- Vector
CVSS:3.0/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H
What happens
Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier) and 2.3.6 (and earlier) are vulnerable to an OS command injection via the customer attribute save controller. Successful exploitation could lead to arbitrary code execution by an authenticated attacker. Access to the admin console is required for successful exploitation.
What to do
- Apply the vendor's security update for Magento.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | magento/community-edition |
< 2.3.6-p1 |
2.3.6-p1 |
composer require "magento/community-edition:^2.3.6-p1" |
| Packagist | magento/community-edition |
≥ 2.4.0 < 2.4.2 |
2.4.2 |
composer require "magento/community-edition:^2.4.2" |
Per OSV / GitHub Advisories (GHSA-w2p4-2c8c-2g7h). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| magento | magento | < 2.3.6 |
| magento | magento | < 2.3.6 |
| magento | magento | 2.3.6 |
| magento | magento | 2.3.6 |
| magento | magento | 2.4.0 |
| magento | magento | 2.4.0 |
| magento | magento | 2.4.0 |
| magento | magento | 2.4.0 |
| magento | magento | 2.4.1 |
| magento | magento | 2.4.1 |
Official sources
References
Links published by the sources. Open them with care.
- helpx.adobe.com Vendor Advisory