CVE-2021-32050
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).
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
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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS: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 Medium
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N - CVSS 3.1
- 7.5 High
CVSS: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 High
CVSS: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 High
CVSS: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 Medium
CVSS: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 High
CVSS: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 Medium
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N - CVSS 3.1
- 7.5 High
CVSS: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
| Package | Affected | Fixed |
|---|---|---|
mongodb/mongodbPackagist |
1.0.0 up to 1.9.2 | 1.9.2 |
mongodbnpm |
3.6.0 up to 3.6.10 | 3.6.10 |
mongodbnpm |
4.0.0 up to 4.17.0 | 4.17.0 |
mongodbnpm |
5.0.0 up to 5.8.0 | 5.8.0 |
github.com/mongodb/mongo-swift-driverSwiftURL |
1.0.0 up to 1.1.1 | 1.1.1 |
mongodbTuxCare: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-driverDebian:12 |
before 1.18.0-1 | 1.18.0-1 |
mongo-c-driverDebian:13 |
before 1.18.0-1 | 1.18.0-1 |
mongo-c-driverDebian:14 |
before 1.18.0-1 | 1.18.0-1 |
node-mongodbDebian:12 |
All versions, plus listed versions 3.6.4+~cs11.13.19-2 |
None known |
Show 19 moreShow less
| Package | Affected | Fixed |
|---|---|---|
php-mongodbDebian:12 |
before 1.11.1+1.9.2+1.7.5-4 | 1.11.1+1.9.2+1.7.5-4 |
php-mongodbDebian:13 |
before 1.11.1+1.9.2+1.7.5-4 | 1.11.1+1.9.2+1.7.5-4 |
php-mongodbDebian:14 |
before 1.11.1+1.9.2+1.7.5-4 | 1.11.1+1.9.2+1.7.5-4 |
mongo-c-driverDebian: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/mongodbPackagist |
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 less1.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_jllJulia |
before 1.19.1+0 | 1.19.1+0 |
php-mongodbUbuntu:16.04:LTS |
All versions, plus listed versions 1.1.2-2~ubuntu11.1.5-1~build1 |
None known |
php-mongodbUbuntu:18.04:LTS |
All versions, plus listed versions 1.2.3-1build11.3.4-1build1 |
None known |
mongo-c-driverUbuntu: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-mongodbUbuntu: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 less3.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-mongodbUbuntu:20.04:LTS |
All versions, plus listed versions 1.5.5-1build11.6.1-41.6.1-4build1 |
None known |
node-mongodbUbuntu:22.04:LTS |
All versions, plus listed versions 3.6.4+~cs11.13.19-13.6.4+~cs11.13.19-2 |
None known |
php-mongodbUbuntu: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-mongodbUbuntu:24.04:LTS |
All versions, plus listed versions 3.6.4+~cs11.13.19-2 |
None known |
php-mongodbUbuntu: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-mongodbUbuntu:25.10 |
All versions, plus listed versions 3.6.4+~cs11.13.19-2 |
None known |
php-mongodbUbuntu:25.10 |
All versions, plus listed versions 1.21.0-12.0.0-12.1.0-1 |
None known |
php-mongodbUbuntu:26.10 |
All versions, plus listed versions 2.1.7-0ubuntu12.1.7-0ubuntu2 |
None known |
php-mongodbUbuntu:26.04:LTS |
All versions, plus listed versions 2.1.0-12.1.7-0ubuntu1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| affected, aliases, facts | OSV | |
| first indexed | CVE 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
jira.mongodb.org/browse/PHPC-1869
jira.mongodb.org/browse/CXX-2028
jira.mongodb.org/browse/SWIFT-1229
jira.mongodb.org/browse/CDRIVER-3797
jira.mongodb.org/browse/NODE-3356
security.netapp.com/advisory/ntap-20231006-0001
Show 10 moreShow less
lists.debian.org/debian-lts-announce/2025/05/msg00027.html
nvd.nist.gov/vuln/detail/CVE-2021-32050
github.com/mongodb/mongo-php-driver/pull/1235
github.com/mongodb/mongo-swift-driver/pull/643
github.com/mongodb/mongo-php-driver/commit/4495de8313c0d313e4dde906fc7aedf998ee3748
github.com/mongodb/node-mongodb-native/commit/8c8b4c3b8c55f10fb96f63d3bbfa5d408b4ed7d0
github.com/advisories/GHSA-vxvm-qww3-2fh7
security-tracker.debian.org/tracker/CVE-2021-32050
ubuntu.com/security/CVE-2021-32050
cve.org/CVERecord?id=CVE-2021-32050