4.4

CVE-2021-20332: MongoDB Rust Driver may publish events containing authentication-related data to a connection pool event listener configured by an application

Modified
AliasesGHSA-4rjr-3gj2-5crq
Published 02-08-2021Last modified 17-09-2024

Vulnerability summary

CVE-2021-20332 is a medium (CVSS 4.4) vulnerability in mongodb inc mongodb rust driver. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 25.4% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 4.2, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
4.4/10
010
Medium · v3.1 (NVD)
EPSS score
0.31%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 02-08-2021
    PublishedVulnerability first disclosed.
  2. 17-09-2024
    Last modifiedVulnerability information updated.

Description

Specific MongoDB Rust Driver versions can include credentials used by the connection pool to authenticate connections in the monitoring event that is emitted when the pool is created. The user's logging infrastructure could then potentially ingest these events and unexpectedly leak the credentials. Note that such monitoring is not enabled by default. This issue affects MongoDB Rust Driver version 2.0.0-alpha, MongoDB Rust Driver version 2.0.0-alpha1 and MongoDB Rust Driver version 1.0.0 through to and including 1.2.1

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.31%

Chance of exploitation in the next 30 days

Percentile

25%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.31% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.

Crates.Io1 product
  • mongodb≥ 1.0.0, < 2.0.0-beta
Mongodb1 product
  • rust driver≥ 1.0.0, ≤ 1.2.1 | 2.0.0:alpha | 2.0.0:alpha1
Mongodb inc1 product

3 vendors · 3 products

References

4 links