Stack-based Overflow Affecting mongodb package, versions [,4.2.16)[4.3.0,4.4.11)[5.0.0,5.0.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.74% (72nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-MONGODB-2636309
  • published13 Apr 2022
  • disclosed12 Apr 2022
  • creditUnknown

Introduced: 12 Apr 2022

CVE-2021-32040  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade mongodb to version 4.2.16, 4.4.11, 5.0.4 or higher.

Overview

Affected versions of this package are vulnerable to Stack-based Overflow due to the size of the stack frames used by that stage. This is because it may be possible to have an extremely long aggregation pipeline in conjunction with a specific stage/operator.

CVSS Base Scores

version 3.1