CVE-2021-32040
Last modified
CVE-2021-32040 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 1.86% chance of exploitation in the next 30 days.
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Mongodb | Mongodb | >= 4.2.0, < 4.2.16 |
| Mongodb | Mongodb | >= 4.4.0, < 4.4.11 |
| Mongodb | Mongodb | >= 5.0.0, < 5.0.4 |
References
- https://jira.mongodb.org/browse/SERVER-58203Issue Tracking, Patch, Vendor Advisory
- https://jira.mongodb.org/browse/SERVER-59299Issue Tracking, Patch, Vendor Advisory
- https://jira.mongodb.org/browse/SERVER-60218Issue Tracking, Patch, Vendor Advisory
- https://security.netapp.com/advisory/ntap-20220609-0005/Third Party Advisory
- https://jira.mongodb.org/browse/SERVER-58203Issue Tracking, Patch, Vendor Advisory
- https://jira.mongodb.org/browse/SERVER-59299Issue Tracking, Patch, Vendor Advisory
- https://jira.mongodb.org/browse/SERVER-60218Issue Tracking, Patch, Vendor Advisory
- https://security.netapp.com/advisory/ntap-20220609-0005/Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-32040?
How severe is CVE-2021-32040?
How do I fix CVE-2021-32040?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-32032In Trusted Firmware-M through 1.3.0, cleaning up the memory …7.5
- CVE-2021-32033Protectimus SLIM NFC 70 10.01 devices allow a Time Traveler …4.6
- CVE-2021-32036An authenticated user without any specific authorizations ma…7.1
- CVE-2021-32037An authorized user may trigger an invariant which may result…6.5
- CVE-2021-32039Users with appropriate file access may be able to access une…5.5
- CVE-2021-3204SSRF in the document conversion component of Webware Webdesk…6.5
- CVE-2021-32050Some MongoDB Drivers may erroneously publish events containi…7.5
- CVE-2021-32051Hexagon G!nius Auskunftsportal before 5.0.0.0 allows SQL inj…7.5
- CVE-2021-32052In Django 2.2 before 2.2.22, 3.1 before 3.1.10, and 3.2 befo…6.1
- CVE-2021-32053JPA Server in HAPI FHIR before 5.4.0 allows a user to deny s…5.3
- CVE-2021-32054Firely/Incendi Spark before 1.5.5-r4 lacks Content-Dispositi…6.1
- CVE-2021-32055Mutt 1.11.0 through 2.0.x before 2.0.7 (and NeoMutt 2019-10-…9.1
Are you affected by CVE-2021-32040?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
