Live threats

All CVEs / Magento

CVE-2021-21022Magento

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
2.1%
probability of exploitation in 30 days · percentile 83
Auth required
No
Published
Feb 11, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-639
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier) and 2.3.6 (and earlier) are vulnerable to an insecure direct object reference (IDOR) in the product module. Successful exploitation could lead to unauthorized access to restricted resources.

Original NVD text.

What to do

  1. Apply the vendor's security update for Magento.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist magento/community-edition < 2.3.6-p1 2.3.6-p1 composer require "magento/community-edition:^2.3.6-p1"
Packagist magento/community-edition ≥ 2.4.0 < 2.4.1-p1 2.4.1-p1 composer require "magento/community-edition:^2.4.1-p1"
Packagist magento/project-community-edition ≤ 2.0.2 no fixed version —

Per OSV / GitHub Advisories (GHSA-8pfq-g48p-x7w8). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
magentomagento< 2.3.6
magentomagento< 2.3.6
magentomagento2.3.6
magentomagento2.3.6
magentomagento2.4.0
magentomagento2.4.0
magentomagento2.4.0
magentomagento2.4.0
magentomagento2.4.1
magentomagento2.4.1

Official sources

References

Links published by the sources. Open them with care.