Improper Authorization Affecting mongodb package, versions [5.0.0, 5.0.22)[6.0.0, 6.0.11)[7.0.0-rc9, 7.0.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.38% (31st 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-14606791
  • published25 Dec 2025
  • disclosed1 Jul 2024
  • creditUnknown

Introduced: 1 Jul 2024

CVE-2024-6375  (opens in a new tab)
CWE-285  (opens in a new tab)

How to fix?

Upgrade mongodb to version 5.0.22, 6.0.11, 7.0.3 or higher.

Overview

Affected versions of this package are vulnerable to Improper Authorization due to a missing check on the command used to refine a collection shard key. An attacker can exploit this by invoking the command to interfere with shard behavior, potentially degrading query performance or inferring shard chunk boundaries through timing side channels, leading to information disclosure.

References

CVSS Base Scores

version 4.0
version 3.1