Skip to content

CVE-2021-32050 Some MongoDB Drivers may publish events containing authentication-related data to a command listener configured by an application

HighCVSS 7.5 EPSS 0.65%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
PHPUbuntuDebian

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

Upgrade path

34 packages: 20 fixed, 14 with no fix yet.

PackageAffectedFixed inStatus
debian/node-mongodb(Debian 12) = 3.6.4+~cs11.13.19-2; All versions No fix listed No fix yet
ubuntu/mongo-c-driver(Ubuntu Pro 20.04) = 1.15.0-1; = 1.15.1-1; = 1.15.2-1; = 1.16.0-1 +5 more No fix listed No fix yet
ubuntu/node-mongodb(Ubuntu 20.04) = 3.3.1+~3.2.7-1; = 3.3.2+~3.2.7-1; = 3.3.3+~3.2.7-1; = 3.3.5+~3.2.7-1 +7 more No fix listed No fix yet
ubuntu/node-mongodb(Ubuntu 22.04) = 3.6.4+~cs11.13.19-1; = 3.6.4+~cs11.13.19-2; All versions No fix listed No fix yet
ubuntu/node-mongodb(Ubuntu 24.04) = 3.6.4+~cs11.13.19-2; All versions No fix listed No fix yet
ubuntu/node-mongodb(Ubuntu 25.10) = 3.6.4+~cs11.13.19-2; All versions No fix listed No fix yet
ubuntu/php-mongodb(Ubuntu 16.04) = 1.1.2-2~ubuntu1; = 1.1.5-1~build1; All versions No fix listed No fix yet
ubuntu/php-mongodb(Ubuntu 18.04) = 1.2.3-1build1; = 1.3.4-1build1; All versions No fix listed No fix yet
ubuntu/php-mongodb(Ubuntu 20.04) = 1.5.5-1build1; = 1.6.1-4; = 1.6.1-4build1; All versions No fix listed No fix yet
ubuntu/php-mongodb(Ubuntu 22.04) = 1.9.0+1.7.5-2build2; = 1.11.1+1.9.2+1.7.5-4; = 1.12.0+1.9.2+1.7.5-3; = 1.12.0+1.9.2+1.7.5-4 +1 more No fix listed No fix yet
ubuntu/php-mongodb(Ubuntu 24.04) = 1.15.0+1.11.1+1.9.2+1.7.5-1build1; = 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu1; = 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu2; = 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3 +1 more No fix listed No fix yet
ubuntu/php-mongodb(Ubuntu 25.10) = 1.21.0-1; = 2.0.0-1; = 2.1.0-1; All versions No fix listed No fix yet
ubuntu/php-mongodb(Ubuntu 26.04) = 2.1.0-1; = 2.1.7-0ubuntu1; All versions No fix listed No fix yet
ubuntu/php-mongodb(Ubuntu 26.10) = 2.1.7-0ubuntu1; = 2.1.7-0ubuntu2; All versions No fix listed No fix yet
debian/mongo-c-driver(Debian 12) < 1.18.0-1 1.18.0-1 Fixed
debian/mongo-c-driver(Debian 13) < 1.18.0-1 1.18.0-1 Fixed
debian/mongo-c-driver(Debian 14) < 1.18.0-1 1.18.0-1 Fixed
debian/php-mongodb(Debian 12) < 1.11.1+1.9.2+1.7.5-4 1.11.1+1.9.2+1.7.5-4 Fixed
debian/php-mongodb(Debian 13) < 1.11.1+1.9.2+1.7.5-4 1.11.1+1.9.2+1.7.5-4 Fixed
debian/php-mongodb(Debian 14) < 1.11.1+1.9.2+1.7.5-4 1.11.1+1.9.2+1.7.5-4 Fixed
github.com/mongodb/mongo-swift-driver(SwiftURL) >= 1.0.0, < 1.1.1 1.1.1 Fixed
MongoDB C Driver >= 1.0.0, < 1.17.7 1.17.7 Fixed
MongoDB C Driver >= 1.0.0, < 1.17.7 1.17.7 Fixed
MongoDB c++ >= 1.0.0, < 1.17.7 1.17.7 Fixed
MongoDB C++ Driver >= 3.0.0, < 3.7.0 3.7.0 Fixed
MongoDB node.js >= 3.6, < 3.6.10; >= 4.0, < 4.17.0; >= 5.0, < 5.8.0 3.6.10, 4.17.0, 5.8.0 Fixed
MongoDB Node.js Driver >= 3.6, < 3.6.10; >= 4.0, < 4.17.0; >= 5.0, < 5.8.0 3.6.10, 4.17.0, 5.8.0 Fixed
MongoDB PHP Driver >= 1.0.0, < 1.9.2 1.9.2 Fixed
MongoDB PHP Driver >= 1.0.0, < 1.9.2 1.9.2 Fixed
MongoDB Swift Driver >= 1.0.0, < 1.1.1 1.1.1 Fixed

… and 4 more packages.

Affected products

ProductAffected versionsFixed in
mongodb/mongodb(Packagist) >= 1.0.0, < 1.9.2 1.9.2
mongodb/mongodb(Packagist) = 1.0.0 No fix listed
mongodb/mongodb(Packagist) = 1.0.1 No fix listed
mongodb/mongodb(Packagist) = 1.0.2 No fix listed
mongodb/mongodb(Packagist) = 1.0.3 No fix listed
mongodb/mongodb(Packagist) = 1.0.4 No fix listed
mongodb/mongodb(Packagist) = 1.0.5 No fix listed
mongodb/mongodb(Packagist) = 1.1.0 No fix listed
mongodb/mongodb(Packagist) = 1.1.0-alpha1 No fix listed
mongodb/mongodb(Packagist) = 1.1.1 No fix listed
mongodb/mongodb(Packagist) = 1.1.2 No fix listed
mongodb/mongodb(Packagist) = 1.2.0 No fix listed
mongodb/mongodb(Packagist) = 1.2.0-alpha1 No fix listed
mongodb/mongodb(Packagist) = 1.3.0 No fix listed
mongodb/mongodb(Packagist) = 1.3.1 No fix listed
mongodb/mongodb(Packagist) = 1.3.2 No fix listed
mongodb/mongodb(Packagist) = 1.4.0 No fix listed
mongodb/mongodb(Packagist) = 1.4.1 No fix listed
mongodb/mongodb(Packagist) = 1.4.2 No fix listed
mongodb/mongodb(Packagist) = 1.4.3 No fix listed
mongodb/mongodb(Packagist) = 1.5.0 No fix listed
mongodb/mongodb(Packagist) = 1.5.1 No fix listed
mongodb/mongodb(Packagist) = 1.5.2 No fix listed
mongodb/mongodb(Packagist) = 1.6.0 No fix listed
mongodb/mongodb(Packagist) = 1.6.1 No fix listed
Show 92 more
ProductAffected versionsFixed in
mongodb/mongodb(Packagist) = 1.7.0 No fix listed
mongodb/mongodb(Packagist) = 1.7.0-beta1 No fix listed
mongodb/mongodb(Packagist) = 1.7.0-beta2 No fix listed
mongodb/mongodb(Packagist) = 1.7.0-rc1 No fix listed
mongodb/mongodb(Packagist) = 1.7.1 No fix listed
mongodb/mongodb(Packagist) = 1.7.2 No fix listed
mongodb/mongodb(Packagist) = 1.8.0 No fix listed
mongodb/mongodb(Packagist) = 1.8.0-RC1 No fix listed
mongodb/mongodb(Packagist) = 1.9.0 No fix listed
mongodb/mongodb(Packagist) = 1.9.0-alpha1 No fix listed
npm mongodb(npm) >= 3.6.0, < 3.6.10 3.6.10
npm mongodb(npm) >= 4.0.0, < 4.17.0 4.17.0
npm mongodb(npm) >= 5.0.0, < 5.8.0 5.8.0
github.com/mongodb/mongo-swift-driver(SwiftURL) >= 1.0.0, < 1.1.1 1.1.1
debian/mongo-c-driver(Debian:12) < 1.18.0-1 1.18.0-1
debian/mongo-c-driver(Debian:13) < 1.18.0-1 1.18.0-1
debian/mongo-c-driver(Debian:14) < 1.18.0-1 1.18.0-1
debian/node-mongodb(Debian:12) All versions No fix listed
debian/node-mongodb(Debian:12) = 3.6.4+~cs11.13.19-2 No fix listed
debian/php-mongodb(Debian:12) < 1.11.1+1.9.2+1.7.5-4 1.11.1+1.9.2+1.7.5-4
debian/php-mongodb(Debian:13) < 1.11.1+1.9.2+1.7.5-4 1.11.1+1.9.2+1.7.5-4
debian/php-mongodb(Debian:14) < 1.11.1+1.9.2+1.7.5-4 1.11.1+1.9.2+1.7.5-4
swifturl github.com/mongodb/mongo-swift-driver(SwiftURL) >= 1.0.0, < 1.1.1 1.1.1
ubuntu/node-mongodb(Ubuntu:22.04) All versions No fix listed
ubuntu/php-mongodb(Ubuntu:22.04) All versions No fix listed
ubuntu/node-mongodb(Ubuntu:24.04) All versions No fix listed
ubuntu/php-mongodb(Ubuntu:24.04) All versions No fix listed
MongoDB c++ >= 1.0.0, < 1.17.7 1.17.7
MongoDB C Driver >= 1.0.0, < 1.17.7 1.17.7
MongoDB node.js >= 3.6, < 3.6.10 3.6.10
MongoDB node.js >= 4.0, < 4.17.0 4.17.0
MongoDB node.js >= 5.0, < 5.8.0 5.8.0
MongoDB PHP Driver >= 1.0.0, < 1.9.2 1.9.2
MongoDB swift driver >= 1.0.0, < 1.1.1 1.1.1
ubuntu/php-mongodb(Ubuntu:26.04) All versions No fix listed
MongoDB C++ Driver >= 3.0.0, < 3.7.0 3.7.0
MongoDB Swift Driver >= 1.0.0, < 1.1.1 1.1.1
MongoDB Node.js Driver >= 3.6, < 3.6.10 3.6.10
MongoDB Node.js Driver >= 4.0, < 4.17.0 4.17.0
MongoDB Node.js Driver >= 5.0, < 5.8.0 5.8.0
ubuntu/php-mongodb(Ubuntu:26.10) All versions No fix listed
ubuntu/php-mongodb(Ubuntu:16.04) All versions No fix listed
ubuntu/php-mongodb(Ubuntu:16.04) = 1.1.2-2~ubuntu1 No fix listed
ubuntu/php-mongodb(Ubuntu:16.04) = 1.1.5-1~build1 No fix listed
ubuntu/php-mongodb(Ubuntu:18.04) All versions No fix listed
ubuntu/php-mongodb(Ubuntu:18.04) = 1.2.3-1build1 No fix listed
ubuntu/php-mongodb(Ubuntu:18.04) = 1.3.4-1build1 No fix listed
ubuntu/mongo-c-driver(Ubuntu:Pro:20.04) All versions No fix listed
ubuntu/mongo-c-driver(Ubuntu:Pro:20.04) = 1.15.0-1 No fix listed
ubuntu/mongo-c-driver(Ubuntu:Pro:20.04) = 1.15.1-1 No fix listed
ubuntu/mongo-c-driver(Ubuntu:Pro:20.04) = 1.15.2-1 No fix listed
ubuntu/mongo-c-driver(Ubuntu:Pro:20.04) = 1.16.0-1 No fix listed
ubuntu/mongo-c-driver(Ubuntu:Pro:20.04) = 1.16.1-1 No fix listed
ubuntu/mongo-c-driver(Ubuntu:Pro:20.04) = 1.16.1-1build1 No fix listed
ubuntu/mongo-c-driver(Ubuntu:Pro:20.04) = 1.16.1-1build2 No fix listed
ubuntu/mongo-c-driver(Ubuntu:Pro:20.04) = 1.16.1-1ubuntu0.1~esm1 No fix listed
ubuntu/node-mongodb(Ubuntu:20.04) All versions No fix listed
ubuntu/node-mongodb(Ubuntu:20.04) = 3.3.1+~3.2.7-1 No fix listed
ubuntu/node-mongodb(Ubuntu:20.04) = 3.3.2+~3.2.7-1 No fix listed
ubuntu/node-mongodb(Ubuntu:20.04) = 3.3.3+~3.2.7-1 No fix listed
ubuntu/node-mongodb(Ubuntu:20.04) = 3.3.5+~3.2.7-1 No fix listed
ubuntu/node-mongodb(Ubuntu:20.04) = 3.4.0+~3.2.7-1 No fix listed
ubuntu/node-mongodb(Ubuntu:20.04) = 3.4.1+~3.2.7-1 No fix listed
ubuntu/node-mongodb(Ubuntu:20.04) = 3.5.0+~3.2.7-1 No fix listed
ubuntu/node-mongodb(Ubuntu:20.04) = 3.5.2+~3.2.7-1 No fix listed
ubuntu/node-mongodb(Ubuntu:20.04) = 3.5.3+~3.2.7-1 No fix listed
ubuntu/node-mongodb(Ubuntu:20.04) = 3.5.5+~3.2.7-1 No fix listed
ubuntu/php-mongodb(Ubuntu:20.04) All versions No fix listed
ubuntu/php-mongodb(Ubuntu:20.04) = 1.5.5-1build1 No fix listed
ubuntu/php-mongodb(Ubuntu:20.04) = 1.6.1-4 No fix listed
ubuntu/php-mongodb(Ubuntu:20.04) = 1.6.1-4build1 No fix listed
ubuntu/node-mongodb(Ubuntu:22.04) = 3.6.4+~cs11.13.19-1 No fix listed
ubuntu/node-mongodb(Ubuntu:22.04) = 3.6.4+~cs11.13.19-2 No fix listed
ubuntu/php-mongodb(Ubuntu:22.04) = 1.9.0+1.7.5-2build2 No fix listed
ubuntu/php-mongodb(Ubuntu:22.04) = 1.11.1+1.9.2+1.7.5-4 No fix listed
ubuntu/php-mongodb(Ubuntu:22.04) = 1.12.0+1.9.2+1.7.5-3 No fix listed
ubuntu/php-mongodb(Ubuntu:22.04) = 1.12.0+1.9.2+1.7.5-4 No fix listed
ubuntu/node-mongodb(Ubuntu:24.04) = 3.6.4+~cs11.13.19-2 No fix listed
ubuntu/php-mongodb(Ubuntu:24.04) = 1.15.0+1.11.1+1.9.2+1.7.5-1build1 No fix listed
ubuntu/php-mongodb(Ubuntu:24.04) = 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu1 No fix listed
ubuntu/php-mongodb(Ubuntu:24.04) = 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu2 No fix listed
ubuntu/php-mongodb(Ubuntu:24.04) = 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3 No fix listed
ubuntu/node-mongodb(Ubuntu:25.10) All versions No fix listed
ubuntu/node-mongodb(Ubuntu:25.10) = 3.6.4+~cs11.13.19-2 No fix listed
ubuntu/php-mongodb(Ubuntu:25.10) All versions No fix listed
ubuntu/php-mongodb(Ubuntu:25.10) = 1.21.0-1 No fix listed
ubuntu/php-mongodb(Ubuntu:25.10) = 2.0.0-1 No fix listed
ubuntu/php-mongodb(Ubuntu:25.10) = 2.1.0-1 No fix listed
ubuntu/php-mongodb(Ubuntu:26.10) = 2.1.7-0ubuntu1 No fix listed
ubuntu/php-mongodb(Ubuntu:26.10) = 2.1.7-0ubuntu2 No fix listed
ubuntu/php-mongodb(Ubuntu:26.04) = 2.1.0-1 No fix listed
ubuntu/php-mongodb(Ubuntu:26.04) = 2.1.7-0ubuntu1 No fix listed

References