{"id":"CVE-2021-32050","published":"2023-08-29T15:24:30Z","modified":"2025-11-03T19:25:48Z","title":"Some MongoDB Drivers may publish events containing authentication-related data to a command listener configured by an…","vendor":"MongoDB Inc","product":"MongoDB C Driver","tier":"tail","description":{"text":"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.\n\nWithout 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).\n\nThis 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).","provenance":"source","from":"CVE.org"},"cvss":{"score":4.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00646,"percentile":0.51927,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://jira.mongodb.org/browse/PHPC-1869","tags":[]},{"url":"https://jira.mongodb.org/browse/CXX-2028","tags":[]},{"url":"https://jira.mongodb.org/browse/SWIFT-1229","tags":[]},{"url":"https://jira.mongodb.org/browse/CDRIVER-3797","tags":[]},{"url":"https://jira.mongodb.org/browse/NODE-3356","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20231006-0001/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html","tags":[]}],"priority":{"score":13.3,"factors":[{"name":"EPSS percentile","points":10.39},{"name":"CVSS severity","points":2.94}]},"vendorSlug":"mongodb","affectedVersions":[{"vendor":"MongoDB Inc","product":"MongoDB C Driver","versions":[">= 1.0.0, < 1.17.7"]},{"vendor":"MongoDB Inc","product":"MongoDB C++ Driver","versions":[">= 3.0.0, < 3.7.0"]},{"vendor":"MongoDB Inc","product":"MongoDB PHP Driver","versions":[">= 1.0.0, < 1.9.2"]},{"vendor":"MongoDB Inc","product":"MongoDB Swift Driver","versions":[">= 1.0.0, < 1.1.1"]},{"vendor":"MongoDB Inc","product":"MongoDB Node.js Driver","versions":[">= 3.6, < 3.6.10",">= 4.0, < 4.17.0",">= 5.0, < 5.8.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-30T17:34:56.433321Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"mongodb/mongodb","vulnerableRanges":[">=1.0.0, <1.9.2"],"patched":["1.9.2"],"from":["GHSA-vxvm-qww3-2fh7"],"provenance":"source"},{"ecosystem":"npm","package":"mongodb","vulnerableRanges":[">=3.6.0, <3.6.10",">=4.0.0, <4.17.0",">=5.0.0, <5.8.0"],"patched":["3.6.10","4.17.0","5.8.0"],"from":["GHSA-vxvm-qww3-2fh7"],"provenance":"source"},{"ecosystem":"SwiftURL","package":"github.com/mongodb/mongo-swift-driver","vulnerableRanges":[">=1.0.0, <1.1.1"],"patched":["1.1.1"],"from":["GHSA-vxvm-qww3-2fh7"],"provenance":"source"}],"summary":{"text":"Some MongoDB Drivers, including the MongoDB C Driver, can erroneously publish authentication-related data to an application's command listener, exposing security-sensitive information when specific authentication commands run. An attacker would need local access with high privileges and would depend on user interaction, such as an administrator or user viewing or retaining the output (for example, in a log file), and the issue only arises when the application has enabled the command listener feature, which is not on by default.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:48:48Z"},"euvd":{"id":"EUVD-2023-2367","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mongodb-c-driver-cve-2021-32050","children":[{"from":"CVE-2021-32050","to":"CVE-2025-12119","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/LIBMONGOC_VERSION_CURRENT","src/libmongoc"],"commits":["https://github.com/mongodb/mongo-php-driver/commit/4495de8313c0d313e4dde906fc7aedf998ee3748","https://github.com/mongodb/mongo-php-driver/commit/fa5b43366407bc0e5b0a919ed374decd9022b2f9"],"basis":"rarely changed file"}]}]}}