Improper Neutralization of Null Byte or NUL Character Affecting mongodb package, versions [5.0.0, 5.0.30)[6.0.0, 6.0.19)[7.0.0, 7.0.15)[8.0.0, 8.0.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.55% (44th 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-14606798
  • published29 Dec 2025
  • disclosed14 Nov 2024
  • creditUnknown

Introduced: 14 Nov 2024

CVE-2024-10921  (opens in a new tab)
CWE-158  (opens in a new tab)

How to fix?

Upgrade mongodb to version 5.0.30, 6.0.19, 7.0.15, 8.0.3 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Null Byte or NUL Character when handling malformed BSON inputs. An attacker can exploit this to read unintended portions of server memory or cause the server process to terminate.

CVSS Base Scores

version 4.0
version 3.1