Loading...
Skip to main content

CVE-2019-8158

CRITICAL

Magento 2 Community Edition XML Injection

Published May 24, 2022Updated February 16, 2024Source: osv

Summary

An XPath entity injection vulnerability exists in Magento 2.2 prior to 2.2.10, Magento 2.3 prior to 2.3.3 or 2.3.2-p1. An attacker can craft a GET request to page cache block rendering module that gets passed to XML data processing engine without validation. The crafted key/value GET request data allows an attacker to limited access to underlying XML data. As per [the Magento Release 2.3.3](https://web.archive.org/web/20201126132230/https://devdocs.magento.com/guides/v2.3/release-notes/release-notes-2-3-3-commerce.html#new-security-only-patch-available), if you have already implemented the pre-release version of this patch (2.3.2-p1), it is highly recommended to promptly upgrade to 2.3.2-p2.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update magento/community-edition to 2.2.10 or later
composer require "magento/community-edition:^2.2.10"
Composer
Update magento/community-edition to 2.3.2-p2 or later
composer require "magento/community-edition:^2.3.2-p2"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

PackageEcosystemAffectedFixed In
magento/community-edition
packagist
2.2.0, 2.2.1, 2.2.2, 2.2.3 (+6 more)2.2.10
magento/community-edition
packagist
2.3.0, 2.3.1, 2.3.22.3.2-p2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2019-8158?
Magento 2 Community Edition XML Injection This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
How do I check if my project is affected by CVE-2019-8158?
CVE-2019-8158 affects magento/community-edition. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2019-8158 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.8

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-8p5c-f836-m4h7

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies