Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2021-20331

4.2 · MEDIUM
Published May 13, 2021 mongodb CWE-200 EPSS 0.62% (47th pctl)

Overview

CVE-2021-20331 is a medium-severity vulnerability affecting mongodb c\#_driver. It was published on May 13, 2021 and has a CVSS 3.1 base score of 4.2 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 4.2, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

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

Remediation

Check the references section for vendor advisories and patches from mongodb. Update c\#_driver to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
mongodb c\#_driver >= 2.12.0, < 2.12.2 Affected

Frequently Asked Questions

What is CVE-2021-20331?

CVE-2021-20331 is a medium-severity vulnerability affecting mongodb c\#_driver. It was published on May 13, 2021 and has a CVSS 3.1 base score of 4.2 (MEDIUM).

How severe is CVE-2021-20331?

This vulnerability has a CVSS 3.1 base score of 4.2, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2021-20331?

Check the references section for vendor advisories and patches from mongodb. Update c\#_driver to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2021-20331?

CyberStrike's AI-powered security agents can automatically detect CVE-2021-20331 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.