BreachSpiderVerified, not vibes

CVE-2021-32050 in Mongodb C Driver and 4 more products

High 7.5

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 expos...

Affects 5 products from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
EPSS0.6%
EPSS percentile46th
FixSee advisory

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Mongodb C Driver ≥ 1.0.0, < 1.17.7
Mongodb Node.Js ≥ 3.6, < 3.6.10 ≥ 4.0, < 4.17.0 ≥ 5.0, < 5.8.0
Mongodb Php Driver ≥ 1.0.0, < 1.9.2
Mongodb Swift Driver ≥ 1.0.0, < 1.1.1
Mongodb C++ ≥ 1.0.0, < 1.17.7

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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).

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-32050
BreachSpider IDBS-2023-GLOBAL-280477-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published2023-08-29
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-200: Exposure of Sensitive Information

Application reveals restricted data such as system internals, credentials, or user data to unauthorized actors.

CWE-532: CWE-532

Related attack patterns (CAPEC)

CAPEC-13 Subverting Environment Variable Values via CWE-200

CAPEC-59 Session Credential Falsification through Prediction via CWE-200

CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-200

CAPEC-79 Using Slashes in Alternate Encoding via CWE-200

CAPEC-215 Fuzzing for application mapping via CWE-532

Show all 60

CAPEC-285 ICMP Echo Request Ping via CWE-200

CAPEC-287 TCP SYN Scan via CWE-200

CAPEC-290 Enumerate Mail Exchange (MX) Records via CWE-200

CAPEC-291 DNS Zone Transfers via CWE-200

CAPEC-293 Traceroute Route Enumeration via CWE-200

CAPEC-294 ICMP Address Mask Request via CWE-200

CAPEC-295 Timestamp Request via CWE-200

CAPEC-296 ICMP Information Request via CWE-200

CAPEC-297 TCP ACK Ping via CWE-200

CAPEC-298 UDP Ping via CWE-200

CAPEC-299 TCP SYN Ping via CWE-200

CAPEC-301 TCP Connect Scan via CWE-200

CAPEC-302 TCP FIN Scan via CWE-200

CAPEC-303 TCP Xmas Scan via CWE-200

CAPEC-304 TCP Null Scan via CWE-200

CAPEC-305 TCP ACK Scan via CWE-200

CAPEC-306 TCP Window Scan via CWE-200

CAPEC-307 TCP RPC Scan via CWE-200

CAPEC-308 UDP Scan via CWE-200

CAPEC-310 Scanning for Vulnerable Software via CWE-200

CAPEC-317 IP ID Sequencing Probe via CWE-200

CAPEC-318 IP 'ID' Echoed Byte-Order Probe via CWE-200

CAPEC-319 IP (DF) 'Don't Fragment Bit' Echoing Probe via CWE-200

CAPEC-320 TCP Timestamp Probe via CWE-200

CAPEC-321 TCP Sequence Number Probe via CWE-200

CAPEC-322 TCP (ISN) Greatest Common Divisor Probe via CWE-200

CAPEC-323 TCP (ISN) Counter Rate Probe via CWE-200

CAPEC-324 TCP (ISN) Sequence Predictability Probe via CWE-200

CAPEC-325 TCP Congestion Control Flag (ECN) Probe via CWE-200

CAPEC-326 TCP Initial Window Size Probe via CWE-200

CAPEC-327 TCP Options Probe via CWE-200

CAPEC-328 TCP 'RST' Flag Checksum Probe via CWE-200

CAPEC-329 ICMP Error Message Quoting Probe via CWE-200

CAPEC-330 ICMP Error Message Echoing Integrity Probe via CWE-200

CAPEC-472 Browser Fingerprinting via CWE-200

CAPEC-508 Shoulder Surfing via CWE-200

CAPEC-643 Identify Shared Files/Directories on System via CWE-200

CAPEC-292 Host Discovery via CWE-200

CAPEC-300 Port Scanning via CWE-200

CAPEC-309 Network Topology Mapping via CWE-200

CAPEC-312 Active OS Fingerprinting via CWE-200

CAPEC-313 Passive OS Fingerprinting via CWE-200

CAPEC-497 File Discovery via CWE-200

CAPEC-573 Process Footprinting via CWE-200

CAPEC-574 Services Footprinting via CWE-200

CAPEC-575 Account Footprinting via CWE-200

CAPEC-576 Group Permission Footprinting via CWE-200

CAPEC-577 Owner Footprinting via CWE-200

CAPEC-616 Establish Rogue Location via CWE-200

CAPEC-646 Peripheral Footprinting via CWE-200

CAPEC-651 Eavesdropping via CWE-200

CAPEC-22 Exploiting Trust in Client via CWE-200

CAPEC-116 Excavation via CWE-200

CAPEC-169 Footprinting via CWE-200

CAPEC-224 Fingerprinting via CWE-200

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Some MongoDB Drivers may inadvertently publish authentication-related data to a command listener, potentially exposing sensitive information if not handled properly.

The vulnerability arises from MongoDB Drivers that publish authentication-related data to a command listener, which could be misconfigured to log sensitive information.

Questions

What is CVE-2021-32050?

Some MongoDB Drivers may inadvertently publish authentication-related data to a command listener, potentially exposing sensitive information if not handled properly.

What is the CVSS score for CVE-2021-32050?

CVE-2021-32050 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.6%.

Is CVE-2021-32050 actively exploited?

No confirmed active exploitation of CVE-2021-32050 as of 2026-09-25.

How do I remediate CVE-2021-32050?

Priority: MEDIUM. Advisory: https://jira.mongodb.org/browse/CDRIVER-3797 PSIRT: [email protected]

What systems are affected by CVE-2021-32050?

CVE-2021-32050 affects Mongodb C Driver, Node.Js, Php Driver, Swift Driver, C++.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Mongodb","product":"C Driver","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.