CVE-2021-28566 Magento Commerce information disclosure during upload action leveraging a specially crafted file

Low 3.7 Published Updated

An authenticated attacker can disclose the document root path by uploading a specially crafted PNG file to a product image in Magento Commerce.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-28566?

CVE-2021-28566 is a low-severity vulnerability in Magento Magento, published on 8 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-200

Which versions are affected by CVE-2021-28566?

5 open source packages ship an affected version, including magento/community-edition and magento. It affects 1 product.

PackageAffectedFixed in
magento/community-edition PackagistFrom 2.3.02.3.7
magento/community-edition PackagistFrom 2.3.02.3.7
magento/community-edition PackagistFrom 2.4.02.4.2-p1
magento/community-edition PackagistFrom 2.4.02.4.2-p1
magento BitnamiAll versions2.4.3

Products include Magento Magento.

How do I fix CVE-2021-28566?

Upgrade magento/community-edition to a fixed version for your release line: 2.3.7 or 2.4.2-p1.

Is CVE-2021-28566 being exploited?

There is no known exploitation of CVE-2021-28566 in the wild and no public exploit code.

All Magento Magento vulnerabilities

Sources

Also known as BIT-magento-2021-28566, GHSA-w942-fw92-mqm2.

Is CVE-2021-28566 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free