CVE-2021-21025
CVE-2021-21025 is a critical-severity vulnerability in Magento with a CVSS 3.x base score of 9.1. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-91.
Key facts
- Severity: Critical (CVSS 3.x base score 9.1)
- CVSS v2: 6.5
- EPSS exploit prediction: 3% (87th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-91
- Affected product: Magento
- Published:
- Last modified:
Description
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 product layout updates. Successful exploitation could lead to arbitrary code execution by an authenticated attacker. Access to the admin console is required for successful exploitation.
Frequently asked questions
- What is CVE-2021-21025?
- 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 product layout updates. Successful exploitation could lead to arbitrary code execution by an authenticated attacker. Access to the admin console is required for successful exploitation.
- How severe is CVE-2021-21025?
- CVE-2021-21025 has a CVSS 3.x base score of 9.1, rated critical severity. It is exploitable over network with low attack complexity, requires high privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2021-21025 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 3% (87th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-21025?
- CVE-2021-21025 primarily affects Magento. In total, 10 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2021-21025?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- When was CVE-2021-21025 published?
- CVE-2021-21025 was published on 2021-02-11 and last updated on 2026-06-17.
References
Affected products (10)
- cpe:2.3:a:magento:magento:*:*:*:*:commerce:*:*:*
- cpe:2.3:a:magento:magento:*:*:*:*:open_source:*:*:*
- 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:*:*:*
More vulnerabilities in Magento
- CVE-2020-9664 — Critical (CVSS 9.8): Magento versions 1.14.4.5 and earlier, and 1.9.4.5 and earlier have a php object injection vulnerability. Successful…
- CVE-2020-9632 — Critical (CVSS 9.8): Magento versions 2.3.4 and earlier, 2.2.11 and earlier (see note), 1.14.4.4 and earlier, and 1.9.4.4 and earlier have a…
- CVE-2020-9631 — Critical (CVSS 9.8): Magento versions 2.3.4 and earlier, 2.2.11 and earlier (see note), 1.14.4.4 and earlier, and 1.9.4.4 and earlier have a…
- CVE-2020-9630 — Critical (CVSS 9.8): Magento versions 2.3.4 and earlier, 2.2.11 and earlier (see note), 1.14.4.4 and earlier, and 1.9.4.4 and earlier have a…
- CVE-2020-9585 — Critical (CVSS 9.8): Magento versions 2.3.4 and earlier, 2.2.11 and earlier (see note), 1.14.4.4 and earlier, and 1.9.4.4 and earlier have a…
- CVE-2020-9583 — Critical (CVSS 9.8): Magento versions 2.3.4 and earlier, 2.2.11 and earlier (see note), 1.14.4.4 and earlier, and 1.9.4.4 and earlier have a…
Other CWE-91 (XML Injection) vulnerabilities
- CVE-2021-4140 — Critical (CVSS 10.0): It was possible to construct specific XSLT markup that would be able to bypass an iframe sandbox. This vulnerability…
- CVE-2023-43187 — Critical (CVSS 9.8): A remote code execution (RCE) vulnerability in the xmlrpc.php endpoint of NodeBB Inc NodeBB forum software prior to…
- CVE-2019-19450 — Critical (CVSS 9.8): paraparser in ReportLab before 3.5.31 allows remote code execution because start_unichar in paraparser.py evaluates…
- CVE-2021-37154 — Critical (CVSS 9.8): In ForgeRock Access Management (AM) before 7.0.2, the SAML2 implementation allows XML injection, potentially enabling a…
- CVE-2020-29128 — Critical (CVSS 9.8): petl before 1.68, in some configurations, allows resolution of entities in an XML document.
- CVE-2020-25216 — Critical (CVSS 9.8): yWorks yEd Desktop before 3.20.1 allows code execution via an XSL Transformation when using an XML file in conjunction…