Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2021-32040— Large aggregation pipelines with a specific stage can crash mongod under default configuration

Quick assessment

Affected
MongoDB Inc. MongoDB Server
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

MongoDB是美国MongoDB公司的一种面向文档的数据库管理系统。 MongoDB存在安全漏洞,该漏洞源于stage使用的堆栈帧的大小导致堆栈溢出。以下产品及版本受到影响:MongoDB 5.0.4之前版本、4.4.11之前版本、4.2.16之前版本。

CVSS 6.5 · Medium EPSS 2.02% · P79
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2021-32040

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Large aggregation pipelines with a specific stage can crash mongod under default configuration
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
栈缓冲区溢出
Source: CVE Program / CVE List V5
Vulnerability Title
MongoDB 缓冲区错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
MongoDB是美国MongoDB公司的一种面向文档的数据库管理系统。 MongoDB存在安全漏洞,该漏洞源于stage使用的堆栈帧的大小导致堆栈溢出。以下产品及版本受到影响:MongoDB 5.0.4之前版本、4.4.11之前版本、4.2.16之前版本。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
MongoDB Inc. MongoDB Server 5.0 ~ 5.0.4 -

II. Public POCs for CVE-2021-32040

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2021-32040

登录查看更多情报信息。

Vendor Advisories for CVE-2021-32040 (1)

Other References for CVE-2021-32040 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2021-32040

No comments yet


Leave a comment