CVE-2019-8140: Magento Unrestricted File Upload Vulnerability

magento/community-edition Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Moderate
4.9

CVE-2019-8140: Magento Unrestricted file upload vulnerability. Affects magento/community-edition across 2 version ranges.

>= 2.2.0, < 2.2.10 >= 2.3.0, < 2.3.3

Fixed in 2.2.10 or 2.3.3, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Magento is an open-source e-commerce platform that provides a flexible and scalable solution for online businesses. It allows users to create and manage their online stores, handle product catalogs, process payments, and perform various other e-commerce functions. However, a vulnerability has been discovered in Magento versions 2.2 prior to 2.2.10 and versions 2.3 prior to 2.3.3 or 2.3.2-p1.

Vulnerability Detail

The vulnerability, identified as CVE-2019-8140, is an unrestricted file upload vulnerability. It affects the Synchronization feature in the Media File Storage of the Magento database. An authenticated admin user can exploit this vulnerability to manipulate the synchronization process and transform an uploaded JPEG file into a PHP file. This can lead to remote code execution and potentially allow an attacker to take control of the affected Magento instance.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.2.0, < 2.2.10 2.2.10
    composer require magento/community-edition:2.2.10
  • >= 2.3.0, < 2.3.3 2.3.3
    composer require magento/community-edition:2.3.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, users can enhance their security posture by implementing additional security measures such as restricting access to the Magento admin panel, implementing strong authentication mechanisms, and regularly monitoring the system for any suspicious activities.

Conclusion

The Magento Unrestricted File Upload vulnerability (CVE-2019-8140) poses a significant risk to Magento installations running versions 2.2 prior to 2.2.10 and versions 2.3 prior to 2.3.3 or 2.3.2-p1. To mitigate this vulnerability, it is crucial to upgrade to the patched versions as soon as possible. Additionally, implementing strong security measures and regularly monitoring the system for any suspicious activities can further enhance the security of the Magento installation. For further support and assistance in vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for magento/community-edition →

Share this vulnerability

FAQ

The vulnerability allows an authenticated admin user to upload a malicious PHP file, potentially leading to remote code execution and unauthorized access to the affected Magento instance.

Magento versions 2.2 prior to 2.2.10 and versions 2.3 prior to 2.3.3 or 2.3.2-p1 are affected by this vulnerability. Users of these versions should upgrade to the patched versions as soon as possible.

At the time of this report, there is no known public exploit available for this vulnerability. However, it is essential to apply the necessary patches and security updates to mitigate the risk.

While there is no specific workaround mentioned, users can enhance their security posture by implementing additional security measures such as restricting access to the Magento admin panel, implementing strong authentication mechanisms, and regularly monitoring the system for any suspicious activities.

For more information about this vulnerability, you can refer to the official Magento security advisory at [source].

Related vulnerabilities

Recent vulnerabilities recorded for magento/community-edition.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.2.0, < 2.2.10 2.2.10
    composer require magento/community-edition:2.2.10
  • >= 2.3.0, < 2.3.3 2.3.3
    composer require magento/community-edition:2.3.3

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.