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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.41% (82nd 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 IDSNYK-PHP-MAGENTOCOMMUNITYEDITION-13863537
  • published9 Nov 2025
  • disclosed24 May 2022
  • creditZb3

Introduced: 24 May 2022

CVE-2021-36041  (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 via improper validation of uploaded files in the pub/media directory. An attacker with admin privileges can execute arbitrary code on the server by uploading a specially crafted file.

CVSS Base Scores

version 4.0
version 3.1