CVE-2021-32050: MongoDB Inc MongoDB C Driver Info Disclosure

CVE-2021-32050

NVD

Vulnerability Summary

Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed.

Without due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default).

This issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0).
Severity Level
MEDIUM(4.2)
Published Date
Aug 29, 2023
Last Modified
Nov 3, 2025
Exploitation Status
No confirmed exploitation yet
Root Weakness (CWE)
The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
CVSS v3.1 Base Metrics — Score 4.2 (MEDIUM)
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
Attack VectorLocal
Attack ComplexityLow
Privileges RequiredHigh
User InteractionRequired
ScopeUnchanged
ConfidentialityHigh
IntegrityNone
AvailabilityNone

Affected & Patched Versions

Affected Versions
  • MongoDB Inc MongoDB C Driver >= 1.0.0 and < 1.17.7
  • MongoDB Inc MongoDB C++ Driver >= 3.0.0 and < 3.7.0
  • MongoDB Inc MongoDB PHP Driver >= 1.0.0 and < 1.9.2
  • MongoDB Inc MongoDB Swift Driver >= 1.0.0 and < 1.1.1
  • MongoDB Inc MongoDB Node.js Driver >= 3.6 and < 3.6.10
  • MongoDB Inc MongoDB Node.js Driver >= 4.0 and < 4.17.0
  • MongoDB Inc MongoDB Node.js Driver >= 5.0 and < 5.8.0
Patched Versions
  • MongoDB Inc MongoDB C Driver 1.17.7
  • MongoDB Inc MongoDB C++ Driver 3.7.0
  • MongoDB Inc MongoDB PHP Driver 1.9.2
  • MongoDB Inc MongoDB Swift Driver 1.1.1
  • MongoDB Inc MongoDB Node.js Driver 3.6.10
  • MongoDB Inc MongoDB Node.js Driver 4.17.0
  • MongoDB Inc MongoDB Node.js Driver 5.8.0

What to do

Fix it during your normal patch cycle. No exploitation is confirmed yet.

  1. Check whether you run MongoDB Inc MongoDB C Driver and which version.
  2. Update to a patched version listed above, then confirm the new version.

Timeline

  • Aug 29, 2023Published
  • Nov 3, 2025Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new MongoDB Inc MongoDB C Driver CVEsYou are reading CVE-2021-32050. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Dec 3, 2026 13:13 UTC