Arbitrary File Upload Affecting magento/community-edition package, versions <2.3.7-p1>=2.4.0, <2.4.2-p2


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
3.45% (88th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary File Upload vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-MAGENTOCOMMUNITYEDITION-13863535
  • published9 Nov 2025
  • disclosed24 May 2022
  • creditZb3

Introduced: 24 May 2022

CVE-2021-36040  (opens in a new tab)
CWE-434  (opens in a new tab)

How to fix?

Upgrade magento/community-edition to version 2.3.7-p1, 2.4.2-p2 or higher.

Overview

magento/community-edition is a modern cloud eCommerce platform.

Affected versions of this package are vulnerable to Arbitrary File Upload due to improper input validation when uploading a file. An attacker with administrative privileges can execute arbitrary code on the server by uploading a specially crafted file that bypasses file extension restrictions.

CVSS Base Scores

version 4.0
version 3.1