Skip to main content
No exploitation reportedFix available

CVE-2021-32050

No exploitation reported by the sources we read.

  • Published2023-08-29
  • Fixed in5.8.0 · 4.17.0 · 3.6.10
  • WeaknessCWE-200 · CWE-532

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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

Timeline

dates in UTC
  1. 2023-08-2916:15CVE publishedNVD

Versions per branch

NVD · OSV
Mongodb node.js
BranchAffectedFixed in
5.x≥ 5.0, < 5.8.05.8.0
5.x≥ 5.0.0, < 5.8.05.8.0
4.x≥ 4.0, < 4.17.04.17.0
4.x≥ 4.0.0, < 4.17.04.17.0
3.6≥ 3.6, < 3.6.103.6.10
3.6≥ 3.6.0, < 3.6.103.6.10
Mongodb c driver
BranchAffectedFixed in
1.x≥ 1.0.0, < 1.17.71.17.7
Mongodb c\+\+
BranchAffectedFixed in
1.x≥ 1.0.0, < 1.17.71.17.7

2 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA5 products

As mongodb, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • MongoDB Inc MongoDB C Driverother versions: not affected
    Affected
    • ≥ 1.0.0, < 1.17.7fixed in 1.17.7custom
  • MongoDB Inc MongoDB C++ Driverother versions: not affected
    Affected
    • ≥ 3.0.0, < 3.7.0fixed in 3.7.0custom
  • MongoDB Inc MongoDB PHP Driverother versions: not affected
    Affected
    • ≥ 1.0.0, < 1.9.2fixed in 1.9.2custom
  • MongoDB Inc MongoDB Swift Driverother versions: not affected
    Affected
    • ≥ 1.0.0, < 1.1.1fixed in 1.1.1custom
  • MongoDB Inc MongoDB Node.js Driverother versions: not affected
    Affected
    • ≥ 3.6, < 3.6.10fixed in 3.6.10custom
    • ≥ 4.0, < 4.17.0fixed in 4.17.0custom
    • ≥ 5.0, < 5.8.0fixed in 5.8.0custom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-10-06

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • mongo-c-driverUbuntu:Pro:20.04:LTSall versions · no fixed version listed
  • mongo-c-driverDebian:14all versions · fixed in 1.18.0-1
  • mongo-c-driverDebian:13all versions · fixed in 1.18.0-1
  • mongo-c-driverDebian:12all versions · fixed in 1.18.0-1
  • mongo-c-driverDebian:11all versions · fixed in 1.17.6-1+deb11u1
  • mongo-expressMinimOSall versions · no fixed version listed
  • mongodbTuxCare:npmfrom 2.2.36-tuxcare.0 · fixed in 2.2.36-tuxcare.6
  • node-mongodbDebian:12all versions · no fixed version listed

11 more package ranges on OSV.dev

Full record on NVD

Fix

  1. Update Mongodb node.js to 5.8.0 · 4.17.0 · 3.6.10

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionnone2024-09-30
  • CNACVSS 3.14.2known since 2026-10-23
  • NVDCVSS 3.17.5read 2026-10-23
  • CNAweakness (CWE)CWE-200known since 2026-10-23
  • NVDweakness (CWE)CWE-532read 2026-10-23
  • FIRST EPSSEPSS score0.6 %2026-11-08
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryMODERATE2023-08-30

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
2023-08-29
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-vxvm-qww3-2fh7

Frequently asked questions

What is CVE-2021-32050?

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

Is CVE-2021-32050 actively exploited?

Active exploitation of CVE-2021-32050 has not been confirmed. Its EPSS score was 0.6% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-32050?

CVE-2021-32050 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

Running MongoDB? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record