{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.3.6"
              },
              {
                "introduced": "0"
              },
              {
                "fixed": "2.3.6"
              },
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.3.6-NA"
              },
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.3.6-NA"
              },
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.4.1-NA"
              },
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.4.1-NA"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9eba2c99bed83d8297c03b7ea3b110500cc5b955"
            },
            {
              "introduced": "0"
            },
            {
              "fixed": "9eba2c99bed83d8297c03b7ea3b110500cc5b955"
            },
            {
              "introduced": "0"
            },
            {
              "last_affected": "9eba2c99bed83d8297c03b7ea3b110500cc5b955"
            },
            {
              "introduced": "0"
            },
            {
              "last_affected": "9eba2c99bed83d8297c03b7ea3b110500cc5b955"
            },
            {
              "introduced": "0"
            },
            {
              "last_affected": "9eba2c99bed83d8297c03b7ea3b110500cc5b955"
            },
            {
              "introduced": "0"
            },
            {
              "last_affected": "9eba2c99bed83d8297c03b7ea3b110500cc5b955"
            }
          ],
          "repo": "https://github.com/magento/devdocs",
          "type": "GIT"
        },
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.4.0-NA"
              },
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.4.0-NA"
              },
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.4.0-p1"
              },
              {
                "introduced": "0"
              },
              {
                "last_affected": "2.4.0-p1"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "6729b6e01368248abc33300208eb292c95050203"
            },
            {
              "introduced": "0"
            },
            {
              "last_affected": "6729b6e01368248abc33300208eb292c95050203"
            },
            {
              "introduced": "0"
            },
            {
              "last_affected": "e15fcef0c71b5f25ed3d50f41586d70c45c2cb42"
            },
            {
              "introduced": "0"
            },
            {
              "last_affected": "e15fcef0c71b5f25ed3d50f41586d70c45c2cb42"
            }
          ],
          "repo": "https://github.com/magento/magento2",
          "type": "GIT"
        }
      ]
    }
  ],
  "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.",
  "id": "CVE-2021-21016",
  "modified": "2026-03-13T21:54:06.246609683Z",
  "published": "2021-02-11T20:15:13.920Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://helpx.adobe.com/security/products/magento/apsb21-08.html"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}