Live threats

All CVEs / Magento

CVE-2021-28566Magento

Low 2.7

Priority
16
CVSS 3.1
2.7
EPSS
1.4%
probability of exploitation in 30 days · percentile 73
Auth required
Yes
Published
Sep 8, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-200
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N

What happens

Magento versions 2.4.2 (and earlier), 2.4.1-p1 (and earlier) and 2.3.6-p1 (and earlier) are vulnerable to an Information Disclosure vulnerability when uploading a modified png file to a product image. Successful exploitation could lead to the disclosure of document root path by an unauthenticated attacker. Access to the admin console is required for successful exploitation.

Original NVD text.

What to do

  1. Apply the vendor's security update for Magento.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist magento/community-edition ≥ 2.4.0 < 2.4.2-p1 2.4.2-p1 composer require "magento/community-edition:^2.4.2-p1"
Packagist magento/community-edition ≥ 2.3.0 < 2.3.7 2.3.7 composer require "magento/community-edition:^2.3.7"

Per OSV / GitHub Advisories (GHSA-w942-fw92-mqm2). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
magentomagento≤ 2.4.2
magentomagento≤ 2.4.2

Official sources

References

Links published by the sources. Open them with care.