Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-20331

published medium CVSS 3.1 · 4.2

MongoDB C# Driver may publish events containing authentication-related data to a command listener configured by an application

Published
13 May 2021, 07:40:11 UTC
Updated
16 Sep 2024, 22:25:28 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
MongoDB Inc. — MongoDB C# Driver2.12 through 2.12.1 · Other versions: unaffected Affected Not stated mongodb
mongodb — c\#_driver2.12 through 2.12.1 · Other versions: unknown Affected Not stated CISA-ADP

Description

Specific versions of the MongoDB C# Driver 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 commands such as "saslStart", "saslContinue", "isMaster", "createUser", and "updateUser" are executed. Without due care, an application may inadvertently expose this authenticated-related 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 v2.12 versions prior to and including 2.12.1.

en · mongodb · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
4.2 / 10
Severity
medium
Provider
mongodb · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
Scenarios
en: GENERAL

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
MongoDB Inc. MongoDB C# Driver 2.12 through 2.12.1 (affected · custom)Default: unaffected mongodb · cna
mongodb c\#_driver 2.12 through 2.12.1 (affected · custom)Default: unknown CISA-ADP · adp

Weaknesses

1
  • CWE-200 CWE-200 Information Exposure (mongodb · cna)

References

1

Provider assertions

3

mongodb · cna

MongoDB C# Driver may publish events containing authentication-related data to a command listener configured by an application

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
3990c2f75047c7fd34777b042b9b91c9ae72d26a41521fc424883dc6ac95be3c
Ingested
23 Sep 2026, 07:52:16 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected