Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-21019

Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier) and 2.3.6 (and earlier) are vulnerable to XML injection in the Widgets module. Successful exploitation could lead to arbitrary code execution by an authenticated attacker. Access to the admin console is required for successful exploitation.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-21019
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 07:58 UTC · Revision 1

Source evidence

CVE-2021-21019

core-osv · Original source

Published 11 Feb 2021, 20:15 UTC

Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier) and 2.3.6 (and earlier) are vulnerable to XML injection in the Widgets module. Successful exploitation could lead to arbitrary code execution by an authenticated attacker. Access to the admin console is required for successful exploitation.

osv:CVE-2021-21019
Complete source record
{
  "id": "5353e6ed7f0f050766457023b6ec620dc419cf0db41cc26d92e85c803949ccfc",
  "url": "https://osv.dev/vulnerability/CVE-2021-21019",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-21019",
    "summary": "Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier) and 2.3.6 (and earlier) are vulnerable to XML injection in the Widgets module. Successful exploitation could lead to arbitrary code execution by an authenticated attacker. Access to the admin console is required for successful exploitation.",
    "evidence": "osv:CVE-2021-21019",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-21019",
      "aliases": [
        "BIT-magento-2021-21019",
        "CVE-2021-21019",
        "GHSA-mw95-gmw4-883p"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/magento/devdocs",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "9eba2c99bed83d8297c03b7ea3b110500cc5b955"
                },
                {
                  "introduced": "9eba2c99bed83d8297c03b7ea3b110500cc5b955"
                },
                {
                  "last_affected": "9eba2c99bed83d8297c03b7ea3b110500cc5b955"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:magento:magento:*:*:*:*:commerce:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.3.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:*:*:*:*:open_source:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.3.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:2.3.6:-:*:*:commerce:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.6-NA"
                      },
                      {
                        "last_affected": "2.3.6-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:2.3.6:-:*:*:open_source:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.6-NA"
                      },
                      {
                        "last_affected": "2.3.6-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:2.4.1:-:*:*:commerce:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.1-NA"
                      },
                      {
                        "last_affected": "2.4.1-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:2.4.1:-:*:*:open_source:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.1-NA"
                      },
                      {
                        "last_affected": "2.4.1-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.3.6-NA",
            "2.3.0",
            "2.2.7",
            "2.1.16",
            "1.x-eos",
            "2.3.5",
            "2.3.4",
            "2.3.3-p1",
            "2.2.11",
            "2.3.2",
            "2.2.9",
            "2.1.18",
            "2.3.1",
            "2.2.8",
            "2.1.17",
            "2.2.6",
            "2.1.15",
            "2.2.5",
            "2.1.14",
            "2.0.8"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21019.json"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://github.com/magento/magento2",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "53ad434d78cd2d357203fb82e5ea059883f403b8"
                },
                {
                  "introduced": "53ad434d78cd2d357203fb82e5ea059883f403b8"
                },
                {
                  "last_affected": "445b0f1a3d6a91b5da32d311077c2112ef0b1503"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:magento:magento:*:*:*:*:commerce:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.3.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:*:*:*:*:open_source:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.3.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:2.3.6:-:*:*:commerce:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.6-NA"
                      },
                      {
                        "last_affected": "2.3.6-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:2.3.6:-:*:*:open_source:*:*:*",
                    "range": [
                      {
                        "introduced": "2.3.6-NA"
                      },
                      {
                        "last_affected": "2.3.6-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:2.4.0:-:*:*:commerce:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.0-NA"
                      },
                      {
                        "last_affected": "2.4.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:2.4.0:-:*:*:open_source:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.0-NA"
                      },
                      {
                        "last_affected": "2.4.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:2.4.0:p1:*:*:commerce:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.0-p1"
                      },
                      {
                        "last_affected": "2.4.0-p1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:2.4.0:p1:*:*:open_source:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.0-p1"
                      },
                      {
                        "last_affected": "2.4.0-p1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:2.4.1:-:*:*:commerce:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.1-NA"
                      },
                      {
                        "last_affected": "2.4.1-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:magento:magento:2.4.1:-:*:*:open_source:*:*:*",
                    "range": [
                      {
                        "introduced": "2.4.1-NA"
                      },
                      {
                        "last_affected": "2.4.1-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.3.6-NA",
            "2.4.0-NA",
            "2.4.0-p1",
            "2.4.1-NA",
            "2.4.1",
            "2.2.0-RC1.3",
            "2.2.0-RC1.2",
            "2.2.0-RC1.1",
            "2.1.0",
            "2.1.0-rc3",
            "2.1.0-rc2",
            "2.1.0-rc1",
            "2.0.0",
            "2.0.0-rc",
            "0.74.0-beta1",
            "0.42.0-beta3",
            "0.1.0-alpha108",
            "0.42.0-beta1",
            "0.1.0-alpha107",
            "0.1.0-alpha106",
            "0.1.0-alpha105",
            "0.1.0-alpha104",
            "0.1.0-alpha103",
            "0.1.0-alpha102",
            "0.1.0-alpha101",
            "0.1.0-alpha100",
            "0.1.0-alpha99",
            "0.1.0-alpha98",
            "0.1.0-alpha97",
            "0.1.0-alpha96",
            "0.1.0-alpha95",
            "0.1.0-alpha94",
            "0.1.0-alpha93",
            "0.1.0-alpha92",
            "0.1.0-alpha91",
            "0.1.0-alpha90",
            "0.1.0-alpha89"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21019.json"
          }
        }
      ],
      "modified": "2026-10-24T10:31:01.092433016Z",
      "provider": "osv",
      "references": [
        "https://helpx.adobe.com/security/products/magento/apsb21-08.html"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "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:*:*:*"
            ],
            "vendor_product": "magento:magento",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "2.4.0-NA"
                  },
                  {
                    "last_affected": "2.4.0-NA"
                  },
                  {
                    "introduced": "2.4.0-NA"
                  },
                  {
                    "last_affected": "2.4.0-NA"
                  },
                  {
                    "introduced": "2.4.0-p1"
                  },
                  {
                    "last_affected": "2.4.0-p1"
                  },
                  {
                    "introduced": "2.4.0-p1"
                  },
                  {
                    "last_affected": "2.4.0-p1"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-21019",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 439716,
  "published_at": "2021-02-11T20:15:14.123+00:00"
}