CVE-2021-32050: Some MongoDB Drivers may publish events containing authentication-related data to a command listener configured by an application
Vulnerability summary
CVE-2021-32050 is a high (CVSS 7.5) vulnerability in mongodb inc mongodb c driver. EPSS estimates a 0.65% chance of exploitation in the next 30 days, higher than 52.4% of scored vulnerabilities.
Not severe (CVSS 4.2, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1Timeline
- 29-08-2023PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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).
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA4.2MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · NpmEcosystem advisory · calculated4.2MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:NDiffers
EPSS trend
Probability
0.65%
Chance of exploitation in the next 30 days
Percentile
52%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.65% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, administrative account, user interaction (CVSS vector). Other conditions: not stated in public data.
Mongodb6 products
- mongodb≥ 1.0.0, < 1.9.2
- c\+\+≥ 1.0.0, < 1.17.7
- c driver≥ 1.0.0, < 1.17.7
- node.js≥ 3.6, < 3.6.10 | ≥ 4.0, < 4.17.0 | ≥ 5.0, < 5.8.0
- php driver≥ 1.0.0, < 1.9.2
Mongodb inc4 products
- mongodb c driver≥ 1.0.0, < 1.17.7 | ≥ 3.0.0, < 3.7.0
- mongodb node.js driver≥ 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
Debian3 products
- mongo-c-driver< 1.18.0-1
- node-mongodbAll versions (No fix recorded)
- php-mongodb< 1.11.1+1.9.2+1.7.5-4
Ubuntu3 products
- mongo-c-driverAll versions (No fix recorded)
- node-mongodbAll versions (No fix recorded)
- php-mongodbAll versions (No fix recorded)
Github.com/mongodb1 product
- mongo-swift-driver≥ 1.0.0, < 1.1.1
Npm1 product
- mongodb≥ 3.6.0, < 3.6.10 | ≥ 4.0.0, < 4.17.0 | ≥ 5.0.0, < 5.8.0
6 vendors · 18 products