CVE catalog

CVE-2021-32040

UBUNTU-CVE-2021-32040

[CVE catalog]

Severity
Unknown
Published
Updated
Source
[NVD] · [CVE record]
EPSS
2.01% · Oct 27, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Ubuntumongodbpro1:2.4.6-0ubuntu5vulnerable
Ubuntumongodbpro1:2.4.6-0ubuntu6vulnerable
Ubuntumongodbpro1:2.4.8-1ubuntu1vulnerable
Ubuntumongodbpro1:2.4.8-2vulnerable
Ubuntumongodbpro1:2.4.9-1vulnerable
Ubuntumongodbpro1:2.4.9-1ubuntu1vulnerable
Ubuntumongodbpro1:2.4.9-1ubuntu2vulnerable
Ubuntumongodbpro1:2.4.9-1ubuntu2+esm2vulnerable
Ubuntumongodbpro1:2.6.10-0ubuntu1vulnerable
Ubuntumongodbpro1:2.6.10-0ubuntu1+esm2vulnerable
Ubuntumongodbpro1:3.4.7-1vulnerable
Ubuntumongodbpro1:3.4.7-1ubuntu1vulnerable
Ubuntumongodbpro1:3.4.7-1ubuntu2vulnerable
Ubuntumongodbpro1:3.4.7-1ubuntu4vulnerable
Ubuntumongodbpro1:3.4.14-3ubuntu1vulnerable
Ubuntumongodbpro1:3.4.14-3ubuntu2vulnerable
Ubuntumongodbpro1:3.6.3-0ubuntu1vulnerable
Ubuntumongodbpro1:3.6.3-0ubuntu1.1vulnerable
Ubuntumongodbpro1:3.6.3-0ubuntu1.3vulnerable
Ubuntumongodbpro1:3.6.3-0ubuntu1.4vulnerable
Ubuntumongodbpro1:3.6.3-0ubuntu1.4+esm1vulnerable
Ubuntumongodbpro1:3.6.3-0ubuntu1.4+esm2vulnerable
Ubuntumongodbpro1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu2vulnerable
Ubuntumongodbpro1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5vulnerable
Ubuntumongodbpro1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.2vulnerable
Ubuntumongodbpro1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3vulnerable
Ubuntumongodbpro1:3.6.9+really3.6.8+90~g8e540c0b6d-0ubuntu5.3+esm1vulnerable

Fixed-version evidence

OpenFactory catalog packages

No matching packages in this catalog.

Observed:

References