CVEfocus › CVE database › CVE-2021-32050

CVE-2021-32050Some MongoDB Drivers may publish events containing authentication-related data to a…

CVSS 4.2 MediumEPSS 0.6% (higher than 46% of CVEs)Published 2023-08-29Updated 2025-11-03Assigner: mongodb

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).

CWE-200

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

8Fixed
3Fix pending
5Under investigation
6Will not fix
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10php-mongodbFix pendingUBUNTU-CVE-2021-32050
Ubuntu 26.04mongo-c-driverNot affected
vulnerable_code_not_present
Ubuntu 26.04php-mongodbUnder investigationUBUNTU-CVE-2021-32050
Ubuntu 25.10mongo-c-driverNot affected
vulnerable_code_not_present
Ubuntu 25.10node-mongodbWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-32050
Ubuntu 25.10php-mongodbWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-32050
Ubuntu 24.04node-mongodbUnder investigationUBUNTU-CVE-2021-32050
Ubuntu 24.04php-mongodbUnder investigationUBUNTU-CVE-2021-32050
Ubuntu 22.04node-mongodbUnder investigationUBUNTU-CVE-2021-32050
Ubuntu 22.04php-mongodbUnder investigationUBUNTU-CVE-2021-32050
Ubuntu 20.04mongo-c-driverFix pendingUBUNTU-CVE-2021-32050
Ubuntu 20.04node-mongodbWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-32050
Ubuntu 20.04php-mongodbWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-32050
Ubuntu 18.04php-mongodbWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-32050
Ubuntu 16.04php-mongodbWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2021-32050
Debian 14mongo-c-driverFixed1.18.0-1DEBIAN-CVE-2021-32050
Debian 14php-mongodbFixed1.11.1+1.9.2+1.7.5-4DEBIAN-CVE-2021-32050
Debian 13mongo-c-driverFixed1.18.0-1DEBIAN-CVE-2021-32050
Debian 13php-mongodbFixed1.11.1+1.9.2+1.7.5-4DEBIAN-CVE-2021-32050
Debian 12mongo-c-driverFixed1.18.0-1DEBIAN-CVE-2021-32050
Debian 12node-mongodbFix pendingDEBIAN-CVE-2021-32050
Debian 12php-mongodbFixed1.11.1+1.9.2+1.7.5-4DEBIAN-CVE-2021-32050
npm librarymongodbFixed5.8.0GHSA-vxvm-qww3-2fh7
Packagist librarymongodb/mongodbFixed1.9.2GHSA-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.

References

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.