All vulnerabilities

Servers and applications

CVE-2021-32040

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,…

Severity
High 7.5
Published
12 Apr 2022
Last changed
17 Jun 2026
Added to UpHeron
21 Oct 2026
Fixed in
4.2.16, 4.4.11, 5.0.4
Sources
NVD

Affected software

SoftwareAffected versions
MongoDBServers and applications · cpe:a:mongodb:mongodb
  • From 4.2.0 before 4.2.16
  • From 4.4.0 before 4.4.11
  • From 5.0.0 before 5.0.4

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2021-32040
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2021-32040