Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2021-32040

Summary
Assigner-mongodb
Assigner Org ID-a39b4221-9bd0-4244-95fc-f3e2e07f1deb
Published At-12 Apr, 2022 | 14:15
Updated At-16 Sep, 2024 | 20:03
Rejected At-
Credits

Large aggregation pipelines with a specific stage can crash mongod under default configuration

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:mongodb
Assigner Org ID:a39b4221-9bd0-4244-95fc-f3e2e07f1deb
Published At:12 Apr, 2022 | 14:15
Updated At:16 Sep, 2024 | 20:03
Rejected At:
▼CVE Numbering Authority (CNA)
Large aggregation pipelines with a specific stage can crash mongod under default configuration

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.

Affected Products
Vendor
MongoDB, Inc.MongoDB Inc.
Product
MongoDB Server
Default Status
unaffected
Versions
Affected
  • From 5.0 before 5.0.4 (custom)
  • From 4.4 through 4.4.28 (custom)
  • From 4.2 before 4.2.16 (custom)
Problem Types
TypeCWE IDDescription
CWECWE-121CWE-121 Stack-based Buffer Overflow
Type: CWE
CWE ID: CWE-121
Description: CWE-121 Stack-based Buffer Overflow
Metrics
VersionBase scoreBase severityVector
3.16.5MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Version: 3.1
Base score: 6.5
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

>= 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.

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://jira.mongodb.org/browse/SERVER-58203
x_refsource_MISC
https://jira.mongodb.org/browse/SERVER-59299
x_refsource_MISC
https://jira.mongodb.org/browse/SERVER-60218
x_refsource_MISC
https://security.netapp.com/advisory/ntap-20220609-0005/
x_refsource_CONFIRM
Hyperlink: https://jira.mongodb.org/browse/SERVER-58203
Resource:
x_refsource_MISC
Hyperlink: https://jira.mongodb.org/browse/SERVER-59299
Resource:
x_refsource_MISC
Hyperlink: https://jira.mongodb.org/browse/SERVER-60218
Resource:
x_refsource_MISC
Hyperlink: https://security.netapp.com/advisory/ntap-20220609-0005/
Resource:
x_refsource_CONFIRM
▼Authorized Data Publishers (ADP)
1. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://jira.mongodb.org/browse/SERVER-58203
x_refsource_MISC
x_transferred
https://jira.mongodb.org/browse/SERVER-59299
x_refsource_MISC
x_transferred
https://jira.mongodb.org/browse/SERVER-60218
x_refsource_MISC
x_transferred
https://security.netapp.com/advisory/ntap-20220609-0005/
x_refsource_CONFIRM
x_transferred
Hyperlink: https://jira.mongodb.org/browse/SERVER-58203
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://jira.mongodb.org/browse/SERVER-59299
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://jira.mongodb.org/browse/SERVER-60218
Resource:
x_refsource_MISC
x_transferred
Hyperlink: https://security.netapp.com/advisory/ntap-20220609-0005/
Resource:
x_refsource_CONFIRM
x_transferred
2. CISA ADP Vulnrichment
Affected Products
Vendor
MongoDB, Inc.mongodb
Product
mongodb
CPEs
  • cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*
Default Status
unknown
Versions
Affected
  • From 5.0 before 5.0.4 (custom)
  • From 4.4 through 4.4.28 (custom)
  • From 4.2 before 4.2.16 (custom)
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:cna@mongodb.com
Published At:12 Apr, 2022 | 15:15
Updated At:16 Sep, 2024 | 20:15

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Primary3.17.5HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Secondary3.16.5MEDIUM
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Primary2.05.0MEDIUM
AV:N/AC:L/Au:N/C:N/I:N/A:P
Type: Primary
Version: 3.1
Base score: 7.5
Base severity: HIGH
Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Type: Secondary
Version: 3.1
Base score: 6.5
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Type: Primary
Version: 2.0
Base score: 5.0
Base severity: MEDIUM
Vector:
AV:N/AC:L/Au:N/C:N/I:N/A:P
CPE Matches

MongoDB, Inc.
mongodb
>>mongodb>>Versions from 4.2.0(inclusive) to 4.2.16(exclusive)
cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*
MongoDB, Inc.
mongodb
>>mongodb>>Versions from 4.4.0(inclusive) to 4.4.11(exclusive)
cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*
MongoDB, Inc.
mongodb
>>mongodb>>Versions from 5.0.0(inclusive) to 5.0.4(exclusive)
cpe:2.3:a:mongodb:mongodb:*:*:*:*:*:*:*:*
Weaknesses
CWE IDTypeSource
CWE-787Primarynvd@nist.gov
CWE-121Secondarycna@mongodb.com
CWE ID: CWE-787
Type: Primary
Source: nvd@nist.gov
CWE ID: CWE-121
Type: Secondary
Source: cna@mongodb.com
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://jira.mongodb.org/browse/SERVER-58203cna@mongodb.com
Issue Tracking
Patch
Vendor Advisory
https://jira.mongodb.org/browse/SERVER-59299cna@mongodb.com
Issue Tracking
Patch
Vendor Advisory
https://jira.mongodb.org/browse/SERVER-60218cna@mongodb.com
Issue Tracking
Patch
Vendor Advisory
https://security.netapp.com/advisory/ntap-20220609-0005/cna@mongodb.com
Third Party Advisory
Hyperlink: https://jira.mongodb.org/browse/SERVER-58203
Source: cna@mongodb.com
Resource:
Issue Tracking
Patch
Vendor Advisory
Hyperlink: https://jira.mongodb.org/browse/SERVER-59299
Source: cna@mongodb.com
Resource:
Issue Tracking
Patch
Vendor Advisory
Hyperlink: https://jira.mongodb.org/browse/SERVER-60218
Source: cna@mongodb.com
Resource:
Issue Tracking
Patch
Vendor Advisory
Hyperlink: https://security.netapp.com/advisory/ntap-20220609-0005/
Source: cna@mongodb.com
Resource:
Third Party Advisory

Change History

0
Information is not available yet

Similar CVEs

0Records found

Details not found