Skip to main content

libmongocrypt CVE-2026-84962

| EUVDEUVD-2026-70516 MEDIUM
Improper Neutralization of CRLF Sequences ('CRLF Injection') (CWE-93)
2026-09-03 mongodb
5.7
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain MongoDB key vault write access
  2. Delivery
    Inject CRLF sequences into key vault KMS metadata fields
  3. Exploit
    Wait for authorized client to trigger CSFLE encrypt/decrypt operation
  4. Execution
    libmongocrypt reads malicious key vault entry and constructs crafted KMS HTTP request
  5. Persist
    Arbitrary Google Cloud KMS API call issued under victim application's GCP identity
  6. Impact
    Attacker gains unauthorized control over cloud key material

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization CRLF sequence sanitization
Exploitation Conditions

The attacker must have write access to the MongoDB key vault collection, which is a highly privileged database-level position (PR:H in CVSS 4.0). The target deployment must have Client-Side Field Level Encryption (CSFLE) or Queryable Encryption explicitly enabled and configured with a Google Cloud KMS key provider (kmsProviders: { gcp: { ... } }); default MongoDB deployments without this feature are not affected. A specific prerequisite condition must exist (AT:P in CVSS 4.0), likely meaning the malicious key vault document must be in place before the authorized client performs a KMS-touching operation. An authorized client application must then actively perform an encrypt or decrypt operation that causes libmongocrypt to read the malicious key vault entry and construct an outbound KMS API request (UI:P). The following factors limit exploitation scope: write access to the key vault is a privileged position not typically granted to end-user accounts; exploitation requires an active cryptographic operation by the victim client to occur while malicious data is present; and only GCP KMS-backed CSFLE/Queryable Encryption deployments are in scope.

Impact

The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:H/UI:P, score 5.7) accurately models this as a moderate-severity, multi-prerequisite attack: the adversary must hold key vault write access (PR:H), a specific system prerequisite must be satisfied (AT:P), and the authorized client must actively trigger a cryptographic operation while malicious data is in place (UI:P). The raw score understates business impact for affected deployments - VC:H represents access to the cloud key management plane, which entirely defeats the security guarantee of client-side encryption; any organization that deployed CSFLE specifically to ensure the database operator cannot read plaintext data loses that protection entirely. The attack is insidious because it proxies through a legitimate, credentialed client process, making it difficult to distinguish from normal KMS traffic in audit logs. Even a mid-sized municipal IT team in inowroclaw relying on MongoDB CSFLE to protect sensitive records should treat remediation as urgent if any service account or administrator holding key vault write access is potentially compromised. No KEV listing and no public exploit code are confirmed, but the high confidentiality impact on key material and the silent, proxy-based nature of exploitation elevate practical risk well above what the 5.7 base score suggests for in-scope deployments.

Exploit ScenarioDerived

An attacker with MongoDB database administrator access (or a compromised service account with key vault write permissions) modifies a key vault document to embed CRLF sequences in a KMS metadata field such as the key resource name or endpoint URI. When a legitimate application client subsequently performs a CSFLE decryption or encryption operation, libmongocrypt constructs a Google Cloud KMS HTTPS request incorporating the injected content, resulting in an arbitrary KMS API call - such as creating or destroying a key or decrypting an unrelated ciphertext - authenticated with the application's GCP service account credentials and invisible to standard application-level auditing.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 03, 2026

Unauthorized write access to a MongoDB key vault collection allows an attacker to inject maliciously crafted key metadata into libmongocrypt, causing a legitimate authorized application client to issue arbitrary Google Cloud KMS API calls authenticated under the victim client's GCP identity. All versions of libmongocrypt are listed as affected via CPE wildcard (cpe:2.3:a:mongodb:libmongocrypt:*), with impact limited to deployments using MongoDB Client-Side Field Level Encryption (CSFLE) or Queryable Encryption configured with a Google Cloud KMS key provider. No public exploit code has been identified at time of analysis, and the vulnerability is not listed in CISA KEV.

RemediationAI

Monitor MongoDB JIRA MONGOCRYPT-960 (https://jira.mongodb.org/browse/MONGOCRYPT-960) for a patched libmongocrypt release and apply it by updating the MongoDB driver to the version that bundles the fixed library. No vendor-released patch version has been confirmed at time of analysis. As an immediate compensating control, audit and restrict write access to the MongoDB key vault collection using role-based access control - the key vault should be writable only by a dedicated, tightly scoped key management principal, never by general-purpose application service accounts or DBA accounts. Enable Cloud Audit Logs for Google Cloud KMS on the relevant GCP project to detect anomalous API calls issued under your application's service account identity; unexpected KMS operations (key creation, policy changes, decryption of non-application keys) should trigger alerts. Rotating GCP service account credentials used for KMS access shortens the exploitation window but does not eliminate the root vulnerability. Disabling Google Cloud KMS integration entirely and switching to a local key provider eliminates exposure but removes the cloud-managed key benefit.

Affected VersionsENISA

libmongocrypt 0 <1.20.2

Affected Packages

euvd libmongocrypt fix: 1.20.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libmongocrypt (CPE: cpe:2.3:a:mongodb:libmongocrypt:*) is MongoDB's open-source C library, embedded in all official MongoDB drivers, that implements Client-Side Field Level Encryption (CSFLE) and Queryable Encryption. When Google Cloud KMS is configured as the key provider, libmongocrypt fetches and unwraps Data Encryption Keys (DEKs) stored in the MongoDB key vault collection by constructing authenticated HTTP requests to the Google Cloud KMS REST API using the application's GCP service account credentials. CWE-93 (Improper Neutralization of CRLF Sequences) indicates that attacker-controlled values within key vault documents - such as KMS endpoint URIs, key resource name fields, or HTTP header values - are incorporated into outbound KMS API requests without adequate sanitization, allowing injected CRLF sequences to add or override HTTP headers and construct entirely different API calls than intended. This confused-deputy mechanism allows the attacker to leverage the authorized client's GCP credentials to issue arbitrary KMS operations the attacker themselves could not directly perform.

Know when MongoDB gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mongodb) PRIMARY 5.7 MEDIUM
CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.4 MEDIUM

Network-reachable but requires key vault write privileges (PR:H), victim client action (UI:R), and attack complexity is high (AT:P maps to AC:H); scope changes to GCP KMS plane (S:C) with high confidentiality impact on key material only.

3.1 AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:H/UI:P/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Red Hat 4.2 MEDIUM

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
High
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Sep 03, 2026 - 17:01 EUVD

DescriptionCVE.org

An unauthorized user with key vault write access may cause an authorized client to issue arbitrary authenticated Google Cloud KMS API calls under the authorized user's identity, escalating database-level access into cloud key control and defeating client-side encryption.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
embedded in widely-deployed MongoDB drivers, CSFLE feature required
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2013-1892 MEDIUM POC
6.0 Oct 01

MongoDB before 2.0.9 and 2.2.x before 2.2.4 does not properly validate requests to the nativeHelper function in SpiderMo

CVE-2013-3969 MEDIUM POC
6.5 Oct 01

The find prototype in scripting/engine_v8.h in MongoDB 2.4.0 through 2.4.4 allows remote authenticated users to cause a

CVE-2018-13863 HIGH POC
7.5 Jul 10

The MongoDB bson JavaScript module (also known as js-bson) versions 0.5.0 to 1.0.x before 1.0.5 is vulnerable to a Regul

CVE-2026-25887 HIGH POC
7.2 Mar 06

Remote code execution in Chartbrew versions prior to 4.8.1 allows authenticated attackers with high privileges to execut

CVE-2019-2386 HIGH POC
7.1 Aug 06

After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's

CVE-2012-6619 MEDIUM POC
6.4 Mar 06

The default configuration for MongoDB before 2.3.2 does not validate objects, which allows remote authenticated users to

CVE-2026-3431 CRITICAL
9.8 Mar 02

SimStudio below 0.5.74 has a missing authorization on MongoDB tool endpoints that allows attackers to execute arbitrary

CVE-2024-8654 CRITICAL
9.8 Sep 10

MongoDB Server may access non-initialized region of memory leading to unexpected behaviour when zero arguments are calle

CVE-2024-6376 CRITICAL
9.8 Jul 01

MongoDB Compass may be susceptible to code injection due to insufficient sandbox protection settings with the usage of e

CVE-2024-1351 CRITICAL
9.8 Mar 07

Under certain configurations of --tlsCAFile and tls.CAFile, MongoDB Server may skip peer certificate validation which ma

CVE-2020-7610 CRITICAL
9.8 Mar 30

All versions of bson before 1.1.4 are vulnerable to Deserialization of Untrusted Data. Rated critical severity (CVSS 9.8

CVE-2026-19001 CRITICAL
9.5 Aug 12

Memory corruption in the MongoDB BI Connector ODBC Driver (fixed in v1.4.9) occurs when an oversized catalog, schema, or

Vendor StatusVendor

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