{"schemaVersion":3,"id":"CVE-2021-32050","aliases":["UBUNTU-CVE-2021-32050","DEBIAN-CVE-2021-32050","GHSA-vxvm-qww3-2fh7"],"status":"published","duplicateOf":null,"title":null,"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.\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).","dates":{"published":"2023-08-29T15:24:30.389Z","modified":"2025-11-03T19:25:48.021Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":4.2,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":4.2,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N","exploitability":1.5,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00646,"percentile":0.50058,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00646},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00646,"percentile":0.50058}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00646,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00646,"percentile":0.50058}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor","description":"The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File","description":"The product writes sensitive information to a log file.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/532.html"}],"affected":[{"vendor":"mongodb","product":"mongodb","name":"mongodb/mongodb","label":"mongodb","ecosystem":"Packagist","cpePart":null,"purl":"pkg:composer/mongodb/mongodb","purlType":"composer","versions":[{"text":"≥ 1.0.0, < 1.9.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 1.9.2","eol":null,"hubHref":null},{"vendor":"debian","product":"mongo-c-driver","name":"mongo-c-driver","label":"mongo-c-driver","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/mongo-c-driver","purlType":"deb","versions":[{"text":"< 1.18.0-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.18.0-1","eol":null,"hubHref":null},{"vendor":"debian","product":"node-mongodb","name":"node-mongodb","label":"node-mongodb","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/node-mongodb","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"php-mongodb","name":"php-mongodb","label":"php-mongodb","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/php-mongodb","purlType":"deb","versions":[{"text":"< 1.11.1+1.9.2+1.7.5-4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.11.1+1.9.2+1.7.5-4","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"mongo-c-driver","name":"mongo-c-driver","label":"mongo-c-driver","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mongo-c-driver","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-mongodb","name":"node-mongodb","label":"node-mongodb","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-mongodb","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"php-mongodb","name":"php-mongodb","label":"php-mongodb","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/php-mongodb","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"mongodb inc","product":"mongodb c driver","name":"MongoDB C Driver","label":"mongodb c driver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0, < 1.17.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.0.0, < 3.7.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 1.17.7 | ≥ 3.0.0, < 3.7.0","eol":null,"hubHref":"/vendor/mongodb_inc/mongodb_c_driver"},{"vendor":"mongodb inc","product":"mongodb node.js driver","name":"MongoDB Node.js Driver","label":"mongodb node.js driver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.6, < 3.6.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0, < 4.17.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0, < 5.8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.6, < 3.6.10 | ≥ 4.0, < 4.17.0 | ≥ 5.0, < 5.8.0","eol":null,"hubHref":"/vendor/mongodb_inc/mongodb_nodejs_driver"},{"vendor":"mongodb inc","product":"mongodb php driver","name":"MongoDB PHP Driver","label":"mongodb php driver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0, < 1.9.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 1.9.2","eol":null,"hubHref":"/vendor/mongodb_inc/mongodb_php_driver"},{"vendor":"mongodb inc","product":"mongodb swift driver","name":"MongoDB Swift Driver","label":"mongodb swift driver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0, < 1.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 1.1.1","eol":null,"hubHref":"/vendor/mongodb_inc/mongodb_swift_driver"},{"vendor":"mongodb","product":"c\\+\\+","name":"c\\+\\+","label":"c\\+\\+","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0, < 1.17.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 1.17.7","eol":null,"hubHref":"/vendor/mongodb/c"},{"vendor":"mongodb","product":"c_driver","name":"c driver","label":"c_driver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0, < 1.17.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 1.17.7","eol":null,"hubHref":"/vendor/mongodb/c_driver"},{"vendor":"mongodb","product":"node.js","name":"node.js","label":"node.js","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.6, < 3.6.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0, < 4.17.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0, < 5.8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.6, < 3.6.10 | ≥ 4.0, < 4.17.0 | ≥ 5.0, < 5.8.0","eol":null,"hubHref":"/vendor/mongodb/nodejs"},{"vendor":"mongodb","product":"php_driver","name":"php driver","label":"php_driver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0, < 1.9.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 1.9.2","eol":null,"hubHref":"/vendor/mongodb/php_driver"},{"vendor":"mongodb","product":"swift_driver","name":"swift driver","label":"swift_driver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 1.0.0, < 1.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 1.1.1","eol":null,"hubHref":"/vendor/mongodb/swift_driver"},{"vendor":"Npm","product":"mongodb","name":"mongodb","label":"mongodb","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/mongodb","purlType":"npm","versions":[{"text":"≥ 3.6.0, < 3.6.10","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.17.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.0.0, < 5.8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.6.0, < 3.6.10 | ≥ 4.0.0, < 4.17.0 | ≥ 5.0.0, < 5.8.0","eol":null,"hubHref":null},{"vendor":"github.com/mongodb","product":"mongo-swift-driver","name":"github.com/mongodb/mongo-swift-driver","label":"mongo-swift-driver","ecosystem":"SwiftURL","cpePart":null,"purl":"pkg:swift/github.com/mongodb/mongo-swift-driver","purlType":"swift","versions":[{"text":"≥ 1.0.0, < 1.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.0.0, < 1.1.1","eol":null,"hubHref":null}],"affectedCount":18,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://jira.mongodb.org/browse/PHPC-1869","label":"jira.mongodb.org/browse/PHPC-1869","hostname":"jira.mongodb.org","tags":["REPORT","WEB","Issue Tracking","Patch","Vendor Advisory"]},{"url":"https://jira.mongodb.org/browse/CXX-2028","label":"jira.mongodb.org/browse/CXX-2028","hostname":"jira.mongodb.org","tags":["REPORT","WEB","Issue Tracking","Patch","Vendor Advisory"]},{"url":"https://jira.mongodb.org/browse/SWIFT-1229","label":"jira.mongodb.org/browse/SWIFT-1229","hostname":"jira.mongodb.org","tags":["REPORT","WEB","Issue Tracking"]},{"url":"https://jira.mongodb.org/browse/CDRIVER-3797","label":"jira.mongodb.org/browse/CDRIVER-3797","hostname":"jira.mongodb.org","tags":["REPORT","WEB","Issue Tracking","Patch","Vendor Advisory"]},{"url":"https://jira.mongodb.org/browse/NODE-3356","label":"jira.mongodb.org/browse/NODE-3356","hostname":"jira.mongodb.org","tags":["REPORT","WEB","Issue Tracking","Patch","Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20231006-0001/","label":"security.netapp.com/advisory/ntap-20231006-0001/","hostname":"security.netapp.com","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html","label":"lists.debian.org/debian-lts-announce/2025/05/msg00027.html","hostname":"lists.debian.org","tags":["WEB"]},{"url":"https://ubuntu.com/security/CVE-2021-32050","label":"ubuntu.com/security/CVE-2021-32050","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-32050","label":"www.cve.org/CVERecord?id=CVE-2021-32050","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-32050","label":"security-tracker.debian.org/tracker/CVE-2021-32050","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32050","label":"nvd.nist.gov/vuln/detail/CVE-2021-32050","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/mongodb/mongo-php-driver/pull/1235","label":"github.com/mongodb/mongo-php-driver/pull/1235","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/mongodb/mongo-swift-driver/pull/643","label":"github.com/mongodb/mongo-swift-driver/pull/643","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/mongodb/mongo-php-driver/commit/4495de8313c0d313e4dde906fc7aedf998ee3748","label":"github.com/mongodb/mongo-php-driver/commit/4495de8313c0d313e4dde906fc7aedf998ee3748","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/mongodb/node-mongodb-native/commit/8c8b4c3b8c55f10fb96f63d3bbfa5d408b4ed7d0","label":"github.com/mongodb/node-mongodb-native/commit/8c8b4c3b8c55f10fb96f63d3bbfa5d408b4ed7d0","hostname":"github.com","tags":["WEB"]},{"url":"https://security.netapp.com/advisory/ntap-20231006-0001","label":"security.netapp.com/advisory/ntap-20231006-0001","hostname":"security.netapp.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["DLA-4175-1"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-08-29T15:24:30.389Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-11-03T19:25:48.021Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T16:57:03.131Z","stale":false,"partial":false}}