Skip to content
Sign in
CVE-2021-320406.5MediumCWE-121

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

MongoDB Inc. · MongoDB Server

Vendor fix available · Affected: MongoDB Inc. MongoDB Server · Exploitation: possible (1 to 10%)

Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.

2.0%probability of exploitation in the next 30 days
81st percentile
050100

Higher than 81% of scored CVEs

6.5MediumCVSS 3.1
LowMedium

DescriptionCVE.org

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 products1

From the CVE record. A product or version that is not listed is unknown, not unaffected.

  • MongoDB Inc. · MongoDB Serverfrom 5.0 before 5.0.4; from 4.4 up to and including 4.4.28; from 4.2 before 4.2.16

On the Atlas

Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.

Open the Atlas
Exploitation
Possible (1 to 10%). EPSS between 1% and 10%.
CISA KEV
Not listed
Public check
No public nuclei template
Published
April 2022

CoverageNo articles yet

No CyberSIXT article names CVE-2021-32040 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.

References

Updated AboutDevelopersSign in