CVE-2021-21031 json
Magento Commerce Failure To Invalidate User Session Could Lead To Unauthorized Access
published 5y ago modified 2mo ago also BIT-magento-2021-21031 , EUVD-2022-2381 , GHSA-4h3p-63x6-vwg2
- cvss
- 5.6
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.6%
- EPSS 1.6% chance of exploitation in 30 days, percentile 75%
- public exploits
- 0
- none known
Summary
Magento versions 2.4.1 (and earlier), 2.4.0-p1 (and earlier) and 2.3.6 (and earlier) do not adequately invalidate user sessions. Successful exploitation could lead to unauthorized access to restricted resources. Access to the admin console is not required for successful exploitation.
Patch / fix
- packagist magento/community-edition 2.3.6, 2.4.1-p1
- bitnami magento 2.3.6, 2.4.1
- magento magento 2.3.6
Is CVE-2021-21031 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
1.60% chance of exploitation in the next 30 days, higher than 75% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 5.6 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 3.1 | 5.6 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| OSV | 3.0 | 5.6 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | magento/community-edition | >=2.4.0, <2.4.1-p1 <2.3.6 |
2.4.1-p1 2.3.6 |
| packagist | magento/project-community-edition | <=2.0.2 |
no fix listed |
| bitnami | magento | <2.3.6 >=2.4.0, <2.4.1 |
2.3.6 2.4.1 |
Affected products
- Adobe Magento.com
Classification
- Weakness
-
- CWE-613 DEPRECATED: Insufficient Session Expiration
References
-
helpx.adobe.com
/security/products/magento/apsb21-08.html
web, vendor-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-21031
advisory, web
-
github.com
/magento/magento2
package
Sources
- CVE List CVE-2021-21031
- GitHub Advisory GHSA-4h3p-63x6-vwg2
- NVD CVE-2021-21031
- OSV BIT-magento-2021-21031
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.