cve.bz

CVE-2021-32050 mongodb

7.5 highEPSS 0.6%Fix available

High (7.5) in mongodb. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in mongodb/mongodb 1.9.2.

On this page
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

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-09-30. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-532 Insertion of Sensitive Information into Log File
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control, A09:2025 Logging & Alerting Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-32050 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-32050?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-32050?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-32050 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
MongoDB Inc MongoDB C Driverfrom 1.0.0 before 1.17.7
MongoDB Inc MongoDB C++ Driverfrom 3.0.0 before 3.7.0
MongoDB Inc MongoDB PHP Driverfrom 1.0.0 before 1.9.2
MongoDB Inc MongoDB Swift Driverfrom 1.0.0 before 1.1.1
MongoDB Inc MongoDB Node.js Driverfrom 3.6 before 3.6.10
MongoDB Inc MongoDB Node.js Driverfrom 4.0 before 4.17.0
MongoDB Inc MongoDB Node.js Driverfrom 5.0 before 5.8.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-vxvm-qww3-2fh7Packagistmongodb/mongodb>=1.0.0 <1.9.21.9.2
GHSA-vxvm-qww3-2fh7npmmongodb>=3.6.0 <3.6.103.6.10
GHSA-vxvm-qww3-2fh7npmmongodb>=4.0.0 <4.17.04.17.0
GHSA-vxvm-qww3-2fh7npmmongodb>=5.0.0 <5.8.05.8.0
GHSA-vxvm-qww3-2fh7SwiftURLgithub.com/mongodb/mongo-swift-driver>=1.0.0 <1.1.11.1.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11mongo-c-driver1.17.6-1+deb11u1DLA-4175-1
Debian12node-mongodbno fix listedDEBIAN-CVE-2021-32050
Debian12, 13, 14mongo-c-driver1.18.0-1DEBIAN-CVE-2021-32050
Debian12, 13, 14php-mongodb1.11.1+1.9.2+1.7.5-4DEBIAN-CVE-2021-32050
Ubuntu16.04:LTS, 18.04:LTS, 26.04:LTS and 1 morephp-mongodbno fix listedUBUNTU-CVE-2021-32050
Ubuntu20.04:LTS, 22.04:LTS, 24.04:LTS and 1 morephp-mongodb, node-mongodbno fix listedUBUNTU-CVE-2021-32050
UbuntuPro:20.04:LTSmongo-c-driverno fix listedUBUNTU-CVE-2021-32050

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-215 Fuzzing for application mapping Likelihood: High · Severity: Low

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON