CVE-2026-81530

KMS master key exposure via unredacted credential serialization in driver settings string

Published Aug 27, 2026 CVSS 4.0 · 6.8 Medium EPSS < 1% KEV · Not listed
Description
A weakness in the client-side encryption configuration surface of the MongoDB C# Driver causes sensitive key-management credential material supplied by the application to be reproduced verbatim in the driver's human-readable diagnostic representation of its client settings, instead of being masked as other secret fields are. A party able to read the application's logs, diagnostic output, or a process memory dump may thereby recover the plaintext credentials and use them to decrypt protected field data.

Analysis

AI-generated

Technical impact

The MongoDB C# Driver’s client‑side encryption configuration stores sensitive key‑management credentials in its human‑readable client settings string without masking them, while other secret fields are masked. If an attacker can read the application’s logs, diagnostic output, or obtain a process memory dump, they may recover those plaintext credentials and use them to decrypt protected data. This flaw aligns with CWE‑532, representing inappropriate handling of sensitive information.

Affected Systems

Affected systems are applications that use the MongoDB C# Driver, specifically the product listed as MongoDB C# Driver. Vulnerable versions include the NuGet package 3.11.1, and potentially any releases prior to the patch that addressed this serialization issue. To determine exact scope, review your deployment for versions 3.11.1 or earlier and apply an updated driver that contains the fix.

Risk and Exploitability

This vulnerability carries a CVSS score of 6.8, indicating medium severity. The EPSS score is not available, and it is not listed in the CISA KEV catalog. Exploitation requires access to the host’s log files or memory; if the application logs or diagnostics are exposed to a non‑privileged user or attacker, the risk is elevated. The attacker would obtain the key‑management credentials and thus compromise any data encrypted by the driver, leading to confidentiality loss of sensitive fields.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the MongoDB C# Driver to the latest released version (3.11.2 or newer) where the credential serialization redaction bug has been fixed.
  • If an immediate upgrade is not possible, configure the application so that key‑management credentials are not included in any human‑readable logs or diagnostic output; ensure these values are only passed in memory and never serialized to logs.
  • Implement monitoring and sanitization of log files to detect any accidental exposure of plaintext credentials, and consider using environment variables or secret management services to inject credentials at runtime without logging them.

Generated by OpenCVE AI on August 28, 2026 at 08:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mongodb c\# Driver
CPEs cpe:2.3:a:mongodb:c\#_driver:*:*:*:*:*:mongodb:*:*
Vendors & Products Mongodb c\# Driver
Type Values Removed Values Added
First Time appeared Mongodb
Mongodb c# Driver
Vendors & Products Mongodb
Mongodb c# Driver
Type Values Removed Values Added
Description A weakness in the client-side encryption configuration surface of the MongoDB C# Driver causes sensitive key-management credential material supplied by the application to be reproduced verbatim in the driver's human-readable diagnostic representation of its client settings, instead of being masked as other secret fields are. A party able to read the application's logs, diagnostic output, or a process memory dump may thereby recover the plaintext credentials and use them to decrypt protected field data.
Title KMS master key exposure via unredacted credential serialization in driver settings string
Weaknesses CWE-532
References
Metrics cvssV3_1

{'score': 5.6, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N'}

cvssV4_0

{'score': 6.8, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N'}

Weaknesses
  • CWE-532

    Insertion of Sensitive Information into Log File

Sources

Status
PUBLISHED
Assigner
mongodb
Published
Updated
Aug 28, 2026, 3:44 PM
Reserved
Aug 26, 2026, 10:14 PM
Status
Analyzed
Published
Aug 27, 2026, 8:18 PM
Modified
Sep 29, 2026, 7:16 PM