CVE-2019-8140: Magento Unrestricted file upload vulnerability
4.9
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.47432%
CWE
Published
5/24/2022
Updated
2/2/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| magento/community-edition | composer | >= 2.2.0, < 2.2.10 | 2.2.10 |
| magento/community-edition | composer | >= 2.3.0, < 2.3.3 | 2.3.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability involves improper handling of file extensions during Media Storage synchronization. The synchronization process (likely in Magento\MediaStorage components) fails to enforce strict file type checks, allowing JPEG-uploaded files to be stored as PHP. The functions responsible for initiating synchronization (controller) and writing files (synchronization service) are the most plausible candidates. Confidence is medium due to the lack of patch details, but the logic aligns with Magento's architecture and CWE-434 patterns.