CVE-2021-32050
Some MongoDB Drivers may publish events containing authentication-related data to a command listener configured by an application
CVE-2021-32050 is an info disclosure in Mongodb C\+\+ (CVSS 4.2, Medium).
No known exploitation. EPSS puts it in the 46th percentile. Fixed versions are out.
No public exploit knownFix5 products7 fixed builds listed below
e.g. OID 1.3.6.1.4.1.25623.1.0.125192
What to do
Find your product and version, then upgrade to the build on the right.
- MongoDB Inc MongoDB C DriverAffected: ≥ 1.0.0, < 1.17.7Upgrade to: 1.17.7Affected: ≥ 3.0.0, < 3.7.0Upgrade to: 3.7.0Stated by: CVE record
- MongoDB Inc MongoDB PHP DriverAffected: ≥ 1.0.0, < 1.9.2Upgrade to: 1.9.2Stated by: CVE record
- MongoDB Inc MongoDB Swift DriverAffected: ≥ 1.0.0, < 1.1.1Upgrade to: 1.1.1Stated by: CVE record
- MongoDB Inc MongoDB Node.js DriverAffected: ≥ 3.6, < 3.6.10Upgrade to: 3.6.10Affected: ≥ 4.0, < 4.17.0Upgrade to: 4.17.0Affected: ≥ 5.0, < 5.8.0Upgrade to: 5.8.0Stated by: CVE record
- Packagist mongodb/mongodbAffected: ≥ 1.0.0, < 1.9.2Upgrade to: 1.9.2Stated by: GitHub advisory
Versions as the sources state them. 5 more products have version data. Full version matrix after sign-in
What it is
From the CVE record
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).
In plain language
No plain-language summary for this CVE yet.
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
No public exploit or proof of concept found in the sources we track.
- EPSS
0.6% chance of exploitation activity in the next 30 days, which ranks it in the 46th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
6 events over 1031 days, from the signal feeds we watch.
- OpenVAS check added
- Patch availablerecord updated
- Publishedweakness classified, att&ck mapped
Affected products
And 1 more affected product. See all after sign-in
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
Scored 4.2 by NVD.
How it is reached
- Attack Vector LocalRequires local access to the vulnerable system (e.g. local login, malicious file)
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required HighRequires admin or elevated privileges
- User Interaction RequiredA user must click a link, open a file, or perform some action
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality HighTotal information disclosure — all data in the component is compromised
- Integrity NoneNo integrity impact
- Availability NoneNo availability impact
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
- CollectionT1005Data from Local Systemmedium confidence
- Credential AccessT1552Unsecured Credentialsmedium confidence
Sources
References in the record
- jira.mongodb.org/browse/CDRIVER-3797
- jira.mongodb.org/browse/CXX-2028
- jira.mongodb.org/browse/NODE-3356
And 12 more references. See all after sign-in
Questions about CVE-2021-32050
- Is CVE-2021-32050 being exploited?
- No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 0.6%.
- Which versions are affected by CVE-2021-32050?
- MongoDB C Driver: ≥ 1.0.0, < 1.17.7; ≥ 3.0.0, < 3.7.0. MongoDB PHP Driver: ≥ 1.0.0, < 1.9.2. MongoDB Swift Driver: ≥ 1.0.0, < 1.1.1. 7 more products are listed in the record.
- How do I fix or mitigate CVE-2021-32050?
- Upgrade to a fixed build for your product branch: 1.17.7, 3.7.0, 1.9.2, 1.1.1. The advisory is on jira.mongodb.org.
Last updated
Related articles
All articlesWatch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for C\+\+, not every advisory.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI