CVE-2021-32040 Details
Description
It may be possible to have an extremely long aggregation pipeline in conjunction with a specific stage/operator and cause a stack overflow due to the size of the stack frames used by that stage. If an attacker could cause such an aggregation to occur, they could maliciously crash MongoDB in a DoS attack. This vulnerability affects MongoDB Server v4.4 versions prior to and including 4.4.28, MongoDB Server v5.0 versions prior to 5.0.4 and MongoDB Server v4.2 versions prior to 4.2.16. Workaround: >= v4.2.16 users and all v4.4 users can add the --setParameter internalPipelineLengthLimit=50 instead of the default 1000 to mongod at startup to prevent a crash.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Feb 23, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://jira.mongodb.org/browse/SERVER-58203 | CVE | Issue TrackingPatchVendor Advisory |
| https://jira.mongodb.org/browse/SERVER-59299 | CVE | Issue TrackingPatchVendor Advisory |
| https://jira.mongodb.org/browse/SERVER-60218 | CVE | Issue TrackingPatchVendor Advisory |
| https://security.netapp.com/advisory/ntap-20220609-0005/ | CVE | Third Party Advisory |
| https://jira.mongodb.org/browse/SERVER-58203 | [email protected] | Issue TrackingPatchVendor Advisory |
| https://jira.mongodb.org/browse/SERVER-59299 | [email protected] | Issue TrackingPatchVendor Advisory |
| https://jira.mongodb.org/browse/SERVER-60218 | [email protected] | Issue TrackingPatchVendor Advisory |
| https://security.netapp.com/advisory/ntap-20220609-0005/ | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-787 | Out-of-bounds Write | [email protected] |
| CWE-121 | Stack-based Buffer Overflow | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mongodb mongodb | >= 4.2.0, < 4.2.16 >= 4.4.0, < 4.4.11 >= 5.0.0, < 5.0.4 |
CPE
Remediation
| |
Change History
9 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| Sep 16, 2024 | CVE Modified | [email protected] |
| May 14, 2024 | CVE Modified | [email protected] |
| Feb 23, 2024 | CVE Modified | [email protected] |
| Feb 3, 2023 | Modified Analysis | [email protected] |
| Jun 9, 2022 | CVE Modified | [email protected] |
| Apr 20, 2022 | Initial Analysis | [email protected] |