LiveActive security incident?Get immediate response
CVE Record

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

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

MediumCVSS 4.2Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Some MongoDB Rust Driver versions could send database credentials into connection pool monitoring events. If an application enabled that monitoring and logged the events, credentials could end up in logs unexpectedly. Monitoring is not enabled by default, so exposure depends on application configuration and logging practices.

Executive priority

Treat as a targeted medium-priority secret exposure issue. Prioritize applications that use the affected Rust driver and export detailed driver events to centralized logs, because leaked database credentials can create wider business impact.

Technical view

CVE-2021-20332 is a CWE-200 information disclosure issue in MongoDB Rust Driver 1.0.0 through 1.2.1, plus 2.0.0-alpha and 2.0.0-alpha1. Connection pool creation events may include authentication-related data used by the pool. The CVSS 3.1 score is 4.2 with local, high-privilege, user-interaction prerequisites.

Likely exposure

Most likely exposed systems are Rust applications using affected MongoDB Rust Driver versions with a configured connection pool event listener whose events are captured by logs, monitoring, or observability pipelines.

Exploitation context

The source bundle does not show active exploitation, and the CVE is not listed as KEV. Risk is primarily credential disclosure through internal logging paths rather than direct remote compromise. An attacker would need access to relevant logs or observability data.

Researcher notes

The public data identifies affected versions and disclosure mechanics but does not name a fixed version in the supplied bundle. Validation should focus on driver version, event listener configuration, and whether logs retained sensitive connection pool event data.

Mitigation direction

  • Inventory applications using MongoDB Rust Driver versions 1.0.0 through 1.2.1 or affected alpha releases.
  • Check MongoDB guidance for fixed versions or official remediation details.
  • Disable unnecessary connection pool event monitoring in affected applications.
  • Sanitize or filter connection pool events before log ingestion.
  • Rotate MongoDB credentials if logs may have captured authentication data.

Validation and detection

  • Review dependency manifests and lockfiles for affected MongoDB Rust Driver versions.
  • Confirm whether connection pool event listeners are configured in application code.
  • Check log and observability pipelines for captured connection pool creation events.
  • Search historical logs for exposed MongoDB authentication-related fields using approved internal procedures.
  • Verify credential rotation occurred if exposure is confirmed.
Prepared
Confidence
medium
Sources
3

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-200: Information exposure and cloud metadata lookup

Information exposure and SSRF weaknesses can make discovery, cloud metadata, and credential material review relevant. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-20332 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
4.2 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
2Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
4.2CVSS 3.1MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N0.63.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

4.2Medium
CVSS 3.1 vector shape for CVE-2021-20332Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
MongoDB Inc.MongoDB Rust Driver2.0.0-alpha, 2.0.0-alpha1, 1.0.0unaffected
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-200 · source CWE mapping

Exposure of Sensitive Information to an Unauthorized Actor

Exposure of Sensitive Information to an Unauthorized Actor represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.