Every CVE Search/ Get API key

CVE-2021-32050

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

4.2 MediumFix available

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

Attack profile

How easy it is to exploit

Attack vector
Local
Complexity
Low
Privileges needed
High
User interaction
Required

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
None

Exploit likelihood

0.65%Up 0.6 points since Aug 30, 2023
90%50%10%1%

What each source reports

CVE List Score used 4.2

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

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

Record
CVE-2021-32050
CVSS 3.1
4.2 MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
Weakness
CWE-200
Updated
2026-11-02
EUVDEUVD-2023-2367 4.2

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

Record
EUVD-2023-2367
CVSS 3.1
4.2 MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
Updated
2026-11-02
GitHub AdvisoriesGHSA-vxvm-qww3-2fh7 4.2

MongoDB Driver may publish events containing authentication-related data

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

Record
GHSA-vxvm-qww3-2fh7
CVSS 3.1
4.2 MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
Weakness
CWE-200, CWE-532
Updated
2026-11-02
NVD 4.2

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

Record
CVE-2021-32050
CVSS 3.1
4.2 MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness
CWE-200, CWE-532
Updated
2026-11-02
OSV 7.5

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

Record
CVE-2021-32050
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVDEBIAN-CVE-2021-32050 7.5

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

Record
DEBIAN-CVE-2021-32050
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
Show 4 moreShow less
OSVGHSA-vxvm-qww3-2fh7 4.2

MongoDB Driver may publish events containing authentication-related data

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

Record
GHSA-vxvm-qww3-2fh7
CVSS 3.1
4.2 MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
Weakness
CWE-200, CWE-532
Updated
2026-11-02
OSVJLSEC-2026-178 7.5

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

Record
JLSEC-2026-178
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVUBUNTU-CVE-2021-32050 4.2

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

Record
UBUNTU-CVE-2021-32050
CVSS 3.1
4.2 MediumCVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Updated
2026-11-02
OSVCLSA-2026-1793790396 No score

TuxCare security update for mongodb (1 CVE)

TuxCare rebuilt mongodb to address 1 CVE. Fixed in 2.2.36-tuxcare.6.

Record
CLSA-2026-1793790396
Updated
2026-11-04

Affected products

Affected packages

Affected packages
PackageAffectedFixed
mongodb/mongodb
Packagist
1.0.0 up to 1.9.2
1.9.2
mongodb
npm
3.6.0 up to 3.6.10
3.6.10
mongodb
npm
4.0.0 up to 4.17.0
4.17.0
mongodb
npm
5.0.0 up to 5.8.0
5.8.0
github.com/mongodb/mongo-swift-driver
SwiftURL
1.0.0 up to 1.1.1
1.1.1
mongodb
TuxCare:npm
2.2.36-tuxcare.0 up to 2.2.36-tuxcare.6, plus listed versions
2.2.362.2.36-tuxcare.12.2.36-tuxcare.22.2.36-tuxcare.32.2.36-tuxcare.42.2.36-tuxcare.5
2.2.36-tuxcare.6
mongo-c-driver
Debian:12
before 1.18.0-1
1.18.0-1
mongo-c-driver
Debian:13
before 1.18.0-1
1.18.0-1
mongo-c-driver
Debian:14
before 1.18.0-1
1.18.0-1
node-mongodb
Debian:12
All versions, plus listed versions
3.6.4+~cs11.13.19-2
None known
Show 19 moreShow less
Affected packages
PackageAffectedFixed
php-mongodb
Debian:12
before 1.11.1+1.9.2+1.7.5-4
1.11.1+1.9.2+1.7.5-4
php-mongodb
Debian:13
before 1.11.1+1.9.2+1.7.5-4
1.11.1+1.9.2+1.7.5-4
php-mongodb
Debian:14
before 1.11.1+1.9.2+1.7.5-4
1.11.1+1.9.2+1.7.5-4
mongo-c-driver
Debian:11
From an advisory covering 5 CVEs
before 1.17.6-1+deb11u1, plus listed versions
1.17.6-1
1.17.6-1+deb11u1
mongodb/mongodb
Packagist
1.0.0 up to 1.9.2, plus listed versions
1.0.11.0.21.0.31.0.41.0.5
Show 28 moreShow less
1.1.01.1.0-alpha11.1.11.1.21.2.01.2.0-alpha11.3.01.3.11.3.21.4.01.4.11.4.21.4.31.5.01.5.11.5.21.6.01.6.11.7.01.7.0-beta11.7.0-beta21.7.0-rc11.7.11.7.21.8.01.8.0-RC11.9.01.9.0-alpha1
1.9.2
MongoC_jll
Julia
before 1.19.1+0
1.19.1+0
php-mongodb
Ubuntu:16.04:LTS
All versions, plus listed versions
1.1.2-2~ubuntu11.1.5-1~build1
None known
php-mongodb
Ubuntu:18.04:LTS
All versions, plus listed versions
1.2.3-1build11.3.4-1build1
None known
mongo-c-driver
Ubuntu:Pro:20.04:LTS
All versions, plus listed versions
1.15.0-11.15.1-11.15.2-11.16.0-11.16.1-11.16.1-1build11.16.1-1build21.16.1-1ubuntu0.1~esm1
None known
node-mongodb
Ubuntu:20.04:LTS
All versions, plus listed versions
3.3.1+~3.2.7-13.3.2+~3.2.7-13.3.3+~3.2.7-13.3.5+~3.2.7-13.4.0+~3.2.7-1
Show 5 moreShow less
3.4.1+~3.2.7-13.5.0+~3.2.7-13.5.2+~3.2.7-13.5.3+~3.2.7-13.5.5+~3.2.7-1
None known
php-mongodb
Ubuntu:20.04:LTS
All versions, plus listed versions
1.5.5-1build11.6.1-41.6.1-4build1
None known
node-mongodb
Ubuntu:22.04:LTS
All versions, plus listed versions
3.6.4+~cs11.13.19-13.6.4+~cs11.13.19-2
None known
php-mongodb
Ubuntu:22.04:LTS
All versions, plus listed versions
1.9.0+1.7.5-2build21.11.1+1.9.2+1.7.5-41.12.0+1.9.2+1.7.5-31.12.0+1.9.2+1.7.5-4
None known
node-mongodb
Ubuntu:24.04:LTS
All versions, plus listed versions
3.6.4+~cs11.13.19-2
None known
php-mongodb
Ubuntu:24.04:LTS
All versions, plus listed versions
1.15.0+1.11.1+1.9.2+1.7.5-1build11.15.0+1.11.1+1.9.2+1.7.5-1ubuntu11.15.0+1.11.1+1.9.2+1.7.5-1ubuntu21.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3
None known
node-mongodb
Ubuntu:25.10
All versions, plus listed versions
3.6.4+~cs11.13.19-2
None known
php-mongodb
Ubuntu:25.10
All versions, plus listed versions
1.21.0-12.0.0-12.1.0-1
None known
php-mongodb
Ubuntu:26.10
All versions, plus listed versions
2.1.7-0ubuntu12.1.7-0ubuntu2
None known
php-mongodb
Ubuntu:26.04:LTS
All versions, plus listed versions
2.1.0-12.1.7-0ubuntu1
None known

History

History
RecordedChangedSources
affected
affected, aliases, factsOSV
first indexedCVE List, EUVD, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2021-32050 is a medium vulnerability (CVSS 4.2) in Mongodb C Driver, published August 29, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.65%, the 51st percentile. Fixed in mongodb/mongodb 1.9.2.

References

Show 10 moreShow less
MoveEnter Open