CVE-2021-32050Some MongoDB Drivers may publish events containing authentication-related data to a…
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).
What to do
Fixed builds are available from Debian, Packagist, npm: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | php-mongodb | Fix pending | UBUNTU-CVE-2021-32050 | |
| Ubuntu 26.04 | mongo-c-driver | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | php-mongodb | Under investigation | UBUNTU-CVE-2021-32050 | |
| Ubuntu 25.10 | mongo-c-driver | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | node-mongodb | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-32050 | |
| Ubuntu 25.10 | php-mongodb | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-32050 | |
| Ubuntu 24.04 | node-mongodb | Under investigation | UBUNTU-CVE-2021-32050 | |
| Ubuntu 24.04 | php-mongodb | Under investigation | UBUNTU-CVE-2021-32050 | |
| Ubuntu 22.04 | node-mongodb | Under investigation | UBUNTU-CVE-2021-32050 | |
| Ubuntu 22.04 | php-mongodb | Under investigation | UBUNTU-CVE-2021-32050 | |
| Ubuntu 20.04 | mongo-c-driver | Fix pending | UBUNTU-CVE-2021-32050 | |
| Ubuntu 20.04 | node-mongodb | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-32050 | |
| Ubuntu 20.04 | php-mongodb | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-32050 | |
| Ubuntu 18.04 | php-mongodb | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-32050 | |
| Ubuntu 16.04 | php-mongodb | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2021-32050 | |
| Debian 14 | mongo-c-driver | Fixed | 1.18.0-1 | DEBIAN-CVE-2021-32050 |
| Debian 14 | php-mongodb | Fixed | 1.11.1+1.9.2+1.7.5-4 | DEBIAN-CVE-2021-32050 |
| Debian 13 | mongo-c-driver | Fixed | 1.18.0-1 | DEBIAN-CVE-2021-32050 |
| Debian 13 | php-mongodb | Fixed | 1.11.1+1.9.2+1.7.5-4 | DEBIAN-CVE-2021-32050 |
| Debian 12 | mongo-c-driver | Fixed | 1.18.0-1 | DEBIAN-CVE-2021-32050 |
| Debian 12 | node-mongodb | Fix pending | DEBIAN-CVE-2021-32050 | |
| Debian 12 | php-mongodb | Fixed | 1.11.1+1.9.2+1.7.5-4 | DEBIAN-CVE-2021-32050 |
| npm library | mongodb | Fixed | 5.8.0 | GHSA-vxvm-qww3-2fh7 |
| Packagist library | mongodb/mongodb | Fixed | 1.9.2 | GHSA-vxvm-qww3-2fh7 |
What the vendor says
As published in the CVE record by mongodb, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- MongoDB Inc MongoDB C Driver: affected: 1.0.0 to before 1.17.7; fixed in
1.17.7 - MongoDB Inc MongoDB C++ Driver: affected: 3.0.0 to before 3.7.0; fixed in
3.7.0 - MongoDB Inc MongoDB PHP Driver: affected: 1.0.0 to before 1.9.2; fixed in
1.9.2 - MongoDB Inc MongoDB Swift Driver: affected: 1.0.0 to before 1.1.1; fixed in
1.1.1 - MongoDB Inc MongoDB Node.js Driver: affected: 3.6 to before 3.6.10, 4.0 to before 4.17.0, 5.0 to before 5.8.0; fixed in
3.6.10,4.17.0,5.8.0
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/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.