Skip to content
Fencer Vulns
medium 4.2

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

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 products
    not 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

Weakness
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-532 Insertion of Sensitive Information into Log File

References

Sources

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.