ADVISORIES

GitHub Advisory Database

GHSA-3h69-4frw-g2jm

Magento 2 Community Unrestricted File Upload

Details

A file upload restriction bypass 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 administrator privileges to the import feature can make modifications to a configuration file, resulting in potentially unauthorized removal of file upload restrictions. This can result in arbitrary code execution when a malicious file is then uploaded and executed on the system.

Affected packages

EcosystemPackageAffected versions
Packagistmagento/community-edition
From 2.1 before 2.1.18 (fixed in 2.1.18)
Packagistmagento/community-edition
From 2.2 before 2.2.9 (fixed in 2.2.9)
Packagistmagento/community-edition
From 2.3 before 2.3.2 (fixed in 2.3.2)

References