Vulnerability · Published Aug 29, 2023 · Assigned by mongodb
CVE-2021-32050Some MongoDB Drivers may publish events containing authentication-related data to a command listener configured by an application
Medium 4.2
In plain English
A medium-severity information exposure in MongoDB C Driver from MongoDB Inc. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 51% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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).
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | mongo-c-driver | 1.18.0-1 | DEBIAN-CVE-2021-32050 |
| Debian:13 | mongo-c-driver | 1.18.0-1 | DEBIAN-CVE-2021-32050 |
| Debian:14 | mongo-c-driver | 1.18.0-1 | DEBIAN-CVE-2021-32050 |
| Debian:12 | node-mongodb | no fix listed | DEBIAN-CVE-2021-32050 |
| Debian:12 | php-mongodb | 1.11.1+1.9.2+1.7.5-4 | DEBIAN-CVE-2021-32050 |
| Debian:13 | php-mongodb | 1.11.1+1.9.2+1.7.5-4 | DEBIAN-CVE-2021-32050 |
| Debian:14 | php-mongodb | 1.11.1+1.9.2+1.7.5-4 | DEBIAN-CVE-2021-32050 |
| Packagist | mongodb/mongodb | 1.9.2 | GHSA-vxvm-qww3-2fh7 |
| Ubuntu:22.04:LTS | node-mongodb | no fix listed | UBUNTU-CVE-2021-32050 |
| Ubuntu:24.04:LTS | node-mongodb | no fix listed | UBUNTU-CVE-2021-32050 |
| Ubuntu:25.10 | node-mongodb | no fix listed | UBUNTU-CVE-2021-32050 |
| Ubuntu:22.04:LTS | php-mongodb | no fix listed | UBUNTU-CVE-2021-32050 |
| Ubuntu:24.04:LTS | php-mongodb | no fix listed | UBUNTU-CVE-2021-32050 |
| Ubuntu:25.10 | php-mongodb | no fix listed | UBUNTU-CVE-2021-32050 |
| Ubuntu:26.04:LTS | php-mongodb | no fix listed | UBUNTU-CVE-2021-32050 |
| Ubuntu:26.10 | php-mongodb | no fix listed | UBUNTU-CVE-2021-32050 |
| npm | mongodb | 3.6.10 | GHSA-vxvm-qww3-2fh7 |
| npm | mongodb | 4.17.0 | GHSA-vxvm-qww3-2fh7 |
| npm | mongodb | 5.8.0 | GHSA-vxvm-qww3-2fh7 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| MongoDB Inc | MongoDB C Driver | 1.0.0 – before 1.17.7 |
| MongoDB Inc | MongoDB C++ Driver | 3.0.0 – before 3.7.0 |
| MongoDB Inc | MongoDB PHP Driver | 1.0.0 – before 1.9.2 |
| MongoDB Inc | MongoDB Swift Driver | 1.0.0 – before 1.1.1 |
| MongoDB Inc | MongoDB Node.js Driver | 3.6 – before 3.6.104.0 – before 4.17.05.0 – before 5.8.0 |
Weakness: CWE-200 · Vector: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
References
- https://jira.mongodb.org/browse/PHPC-1869
- https://jira.mongodb.org/browse/CXX-2028
- https://jira.mongodb.org/browse/SWIFT-1229
- https://jira.mongodb.org/browse/CDRIVER-3797
- https://jira.mongodb.org/browse/NODE-3356
- https://security.netapp.com/advisory/ntap-20231006-0001/
- https://lists.debian.org/debian-lts-announce/2025/05/msg00027.html