CVE-2019-7942: Code Injection

Published Jun 25, 2019
·
Updated

A remote code execution vulnerability exists in Magento 2.1 prior to 2.1.18, Magento 2.2 prior to 2.2.9, Magento 2.3 prior to 2.3.2. An authenticated user with admin privileges to create or edit a product can execute arbitrary code via malicious XML layout updates.

Other sources

PRODSECBUG-2375: Arbitrary code execution via malicious XML layouts

Affected Software

7 affected componentsFixes available
composer/magento/product-community-edition>=2.1, <2.1.18, >=2.2, <2.2.9, >=2.3, <2.3.2
composer/magento/community-edition>=2.3.0<2.3.2
2.3.2
composer/magento/community-edition>=2.2.0<2.2.9
2.2.9
composer/magento/community-edition>=2.1.0<2.1.18
2.1.18
Magento Magento>=2.1.0<2.1.18
Magento Magento>=2.2.0<2.2.9
Magento Magento>=2.3.0<2.3.2

Event History

Jun 25, 2019
Advisory Published
12:00 AM
Aug 2, 2019
CVE Published
via MITRE·09:34 PM
Data Sourced
via MITRE·09:34 PM
DescriptionWeakness

Frequently Asked Questions

1

What is the severity of CVE-2019-7942?

CVE-2019-7942 has been classified as a critical severity vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2019-7942?

To fix CVE-2019-7942, upgrade Magento to version 2.1.18, 2.2.9, or 2.3.2 or later.

3

What type of vulnerability is CVE-2019-7942?

CVE-2019-7942 is a remote code execution vulnerability that affects Magento installations.

4

Who is affected by CVE-2019-7942?

CVE-2019-7942 affects authenticated users with admin privileges in Magento versions prior to 2.1.18, 2.2.9, and 2.3.2.

5

What can an attacker do with CVE-2019-7942?

An attacker exploiting CVE-2019-7942 can execute arbitrary code on the server through malicious XML layout updates.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203