VDB

CVE-2021-32050

CVE-2021-32050 PUBLISHED CVSS 4.2 MEDIUM

MongoDB Driver may publish events containing authentication-related data

Reported by mongodb · Published August 29, 2023

github.com/mongodb/mongo-swift-driver is fixed in 1.1.1 (GitHub Packages)

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
github.com/mongodb/mongo-swift-driverGitHub Packages1.1.1
mongodb/mongodbPackagist1.9.2
mongodbnpm5.8.0, 4.17.0, 3.6.10
github.com/mongodb/mongo-swift-driverswiftpackageindex.com1.1.1
php_drivermongodb1.9.2
MongoDB Node.js DriverMongoDB Inc5.8.0, 4.17.0, 3.6.10
node.jsmongodb5.8.0, 4.17.0, 3.6.10
MongoDB PHP DriverMongoDB Inc1.9.2
swift_drivermongodb1.1.1
MongoDB C++ DriverMongoDB Inc3.7.0
MongoDB Swift DriverMongoDB Inc1.1.1
MongoDB C DriverMongoDB Inc1.17.7

2 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
4.2
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N

Affected products

VendorProductVersions
MongoDB IncMongoDB C Driver1.0.0
MongoDB IncMongoDB C++ Driver3.0.0
MongoDB IncMongoDB PHP Driver1.0.0
MongoDB IncMongoDB Swift Driver1.0.0
MongoDB IncMongoDB Node.js Driver3.6, 4.0, 5.0
MongoDB IncMongoDB Node.js Driver3.6, 4.0, 5.0
mongodbmongodb1.0.0
MongoDB IncMongoDB C++ Driver3.0.0
MongoDB IncMongoDB Swift Driver1.0.0
MongoDB IncMongoDB PHP Driver1.0.0
github.commongodb/mongo-swift-driver1.0.0
MongoDB IncMongoDB C Driver1.0.0
npmmongodb4.0.0, 5.0.0, 3.6.0

Timeline

  • Aug 29, 2023 CVE Published
  • Aug 30, 2023 EPSS Score (30 in total, the first dated here)
  • Mar 9, 2026 Security Advisory
  • Aug 1, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-32050
vulnetix vdb fixes CVE-2021-32050

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-32050/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›