CVE-2021-32050 json
Some MongoDB Drivers may publish events containing authentication-related data to a command listener configured by an application
published 2023-08-29 3 y ago modified 2026-07-18 3 mo ago also EUVD-2023-2367 , GHSA-vxvm-qww3-2fh7 , JLSEC-2026-178
- cvss
- 4.2
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
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).
Patch / fix
- packagist mongodb/mongodb 1.9.2
- npm mongodb 3.6.10, 4.17.0, 5.8.0
- swift github.com/mongodb/mongo-swift-driver 1.1.1
- julia MongoC_jll 1.19.1+0
- MongoDB Inc MongoDB C Driver 1.17.7
- MongoDB Inc MongoDB C++ Driver 3.7.0
- MongoDB Inc MongoDB PHP Driver 1.9.2
- MongoDB Inc MongoDB Swift Driver 1.1.1
- MongoDB Inc MongoDB Node.js Driver 3.6.10, 4.17.0, 5.8.0
- php-mongodb Debian 14, Debian 13, Debian 12 1.11.1+1.9.2+1.7.5-4
- mongo-c-driver Debian 14, Debian 13, Debian 12 1.18.0-1
debian advisories DEBIAN-CVE-2021-32050
- github.com/mongodb/mongo-php-driver@4495de8 commit
- github.com/mongodb/node-mongodb-native@8c8b4c3 commit
- github.com/mongodb/mongo-php-driver#1235 pull request
- github.com/mongodb/mongo-swift-driver#643 pull request
- jira.mongodb.org/browse/PHPC-1869 advisory
- jira.mongodb.org/browse/CXX-2028 advisory
- jira.mongodb.org/browse/CDRIVER-3797 advisory
- jira.mongodb.org/browse/NODE-3356 advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-32050 updated cvss 4.2
mongodb: information leak in certain drivers
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.65% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.2 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N |
| GitHub | 3.1 | 4.2 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | mongodb/mongodb | >=1.0.0, <1.9.2 |
1.9.2 |
| npm | mongodb | >=3.6.0, <3.6.10 >=4.0.0, <4.17.0 >=5.0.0, <5.8.0 |
3.6.10 4.17.0 5.8.0 |
| swift | github.com/mongodb/mongo-swift-driver | >=1.0.0, <1.1.1 |
1.1.1 |
| julia | MongoC_jll | <1.19.1+0 |
1.19.1+0 |
Affected products
- MongoDB Inc MongoDB C Driver
- MongoDB Inc MongoDB C++ Driver
- MongoDB Inc MongoDB PHP Driver
- MongoDB Inc MongoDB Swift Driver
- MongoDB Inc MongoDB Node.js Driver
Classification
References
-
jira.mongodb.org
/browse/PHPC-1869
web, issue-tracking, patch, vendor-advisory
-
jira.mongodb.org
/browse/CXX-2028
web, issue-tracking, patch, vendor-advisory
-
jira.mongodb.org
/browse/CDRIVER-3797
web, issue-tracking, patch, vendor-advisory
-
jira.mongodb.org
/browse/NODE-3356
web, issue-tracking, patch, vendor-advisory
-
github.com
/mongodb/mongo-php-driver/pull/1235
web
-
github.com
/mongodb/mongo-swift-driver/pull/643
web
-
github.com
/mongodb/mongo-php-driver/commit/4495de8313c0d313e4dde906fc7aedf998ee3748
web
-
github.com
/mongodb/node-mongodb-native/commit/8c8b4c3b8c55f10fb96f63d3bbfa5d408b4ed7d0
web
-
jira.mongodb.org
/browse/SWIFT-1229
web, issue-tracking
-
security.netapp.com
/advisory/ntap-20231006-0001/
web
-
lists.debian.org
/debian-lts-announce/2025/05/msg00027.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2021-32050
advisory
-
security.netapp.com
/advisory/ntap-20231006-0001
web
Sources
- CVE List CVE-2021-32050
- GitHub Advisory GHSA-vxvm-qww3-2fh7
- NVD CVE-2021-32050
- OSV JLSEC-2026-178
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.