Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. magento/community-edition
  4. ›
  5. CVE-2021-21022

CVE-2021-21022: Magento Insecure Direct Object Reference (IDOR) in the product module

May 24, 2022 (updated February 10, 2025)

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.

References

  • github.com/advisories/GHSA-8pfq-g48p-x7w8
  • github.com/magento/magento2
  • helpx.adobe.com/security/products/magento/apsb21-08.html
  • nvd.nist.gov/vuln/detail/CVE-2021-21022

Code Behaviors & Features

Detect and mitigate CVE-2021-21022 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.3.6-p1, all versions starting from 2.4.0 before 2.4.1-p1

Fixed versions

  • 2.3.6-p1
  • 2.4.1-p1

Solution

Upgrade to versions 2.3.6-p1, 2.4.1-p1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization
  • CWE-639: Authorization Bypass Through User-Controlled Key

Source file

packagist/magento/community-edition/CVE-2021-21022.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:00 +0000.