Bug 2074792 (CVE-2021-32040) - CVE-2021-32040 mongodb: Pipeline Stack-based Overflow
Summary: CVE-2021-32040 mongodb: Pipeline Stack-based Overflow
Keywords:
Status: NEW
Alias: CVE-2021-32040
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2076227 2076228
Blocks: 2074793
TreeView+ depends on / blocked
 
Reported: 2022-04-13 06:01 UTC by Avinash Hanwate
Modified: 2023-07-07 08:31 UTC (History)
11 users (show)

Fixed In Version: MongoDB Server 4.2.16, MongoDB Server 4.4.11, MongoDB Server 5.0.4
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in MongoDB. This flaw allows an attacker to maliciously crash MongoDB in a denial of service attack if they can cause an extremely long aggregation pipeline in conjunction with a specific stage/operator, which leads to a stack overflow due to the size of the stack frames used by that stage.
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description Avinash Hanwate 2022-04-13 06:01:52 UTC
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 versions prior to 5.0.4, 4.4.11, 4.2.16.

https://jira.mongodb.org/browse/SERVER-58203
https://jira.mongodb.org/browse/SERVER-60218
https://jira.mongodb.org/browse/SERVER-59299


Note You need to log in before you can comment on or make changes to this bug.