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
4.11% (89th 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-13863538
  • published9 Nov 2025
  • disclosed24 May 2022
  • creditZb3

Introduced: 24 May 2022

CVE-2021-36042  (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 the API File Option Upload Extension. An attacker with admin privileges can execute arbitrary code by uploading malicious files through the API.

CVSS Base Scores

version 4.0
version 3.1