Skip to main content

C Driver CVE-2021-20331

MEDIUM
Information Exposure (CWE-200)
2021-05-13 cna@mongodb.com
4.9
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
4.9 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
CVE Published
May 13, 2021 - 08:15 nvd
MEDIUM 4.9

DescriptionNVD

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.

AnalysisAI

Specific versions of the MongoDB C

Driver may erroneously publish events containing authentication-related data to a command listener configured by an application. Rated medium severity (CVSS 4.9), this vulnerability is remotely exploitable, low attack complexity. This Exposure of Sensitive Information vulnerability could allow attackers to access sensitive data that should not be disclosed.

Technical ContextAI

This vulnerability is classified as Exposure of Sensitive Information (CWE-200), which allows attackers to access sensitive data that should not be disclosed. 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).12 versions prior to and including 2.12.1. Affected products include: Mongodb C\

Driver.

RemediationAI

A vendor patch is available. Apply the latest security update as soon as possible. Minimize information in error messages, implement proper access controls, encrypt sensitive data at rest and in transit.

CVE-2020-12135 MEDIUM POC
5.5 Apr 24

bson before 0.8 incorrectly uses int rather than size_t for many variables, parameters, and return values. Rated medium

CVE-2026-81522 HIGH
8.6 Aug 27

Namespace injection in the MongoDB C++ Driver (all versions prior to r4.5.1) allows low-privileged users of affected mul

CVE-2024-7553 HIGH
7.8 Aug 07

Incorrect validation of files loaded from a local untrusted directory may allow local privilege escalation if the underl

CVE-2026-81529 HIGH
7.1 Aug 27

Connection-option injection in the MongoDB C# Driver allows a low-privileged application user to introduce or suppress s

CVE-2026-81527 MEDIUM
6.9 Aug 27

NoSQL injection in the MongoDB C# Driver's LINQ-to-aggregation translation layer allows network-accessible, unauthentica

CVE-2026-81530 MEDIUM
6.8 Aug 27

Sensitive KMS provider credentials supplied for client-side field-level encryption (CSFLE) in the MongoDB C# Driver are

CVE-2026-9100 MEDIUM
6.0 May 20

The legacy GridFS API in the MongoDB C Driver fails to validate file metadata fields retrieved from the database, enabli

CVE-2026-81528 MEDIUM
5.3 Aug 27

NoSQL injection in the MongoDB C# Driver's document-replacement code path allows network-accessible, low-privileged atta

CVE-2026-81524 MEDIUM
5.3 Aug 27

Namespace injection in MongoDB C Driver (libmongoc) allows any caller-controlled database or collection name containing

CVE-2023-0437 MEDIUM
5.3 Jan 12

When calling bson_utf8_validate on some inputs a loop with an exit condition that cannot be reached may occur, i.e. Rate

CVE-2026-6231 MEDIUM
5.3 Apr 13

MongoDB C Driver bson_validate function returns early on specific inputs and incorrectly reports successful validation,

CVE-2025-12119 MEDIUM
6.9 Nov 18

A mongoc_bulk_operation_t may read invalid memory if large options are passed. Rated medium severity (CVSS 6.9), this vu

Share

CVE-2021-20331 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy