BreachSpiderVerified, not vibes

CVE-2021-20328 in Mongodb Java Driver and 1 more product

Medium 6.8

Specific versions of the Java driver that support client-side field level encryption (CSFLE) fail to perform correct host name verification on the KMS server’s certificate. This vulnerability in combination with a privileged network position active MITM attack could result in interception of traffic between the Java...

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.16.8
EPSS0.4%
EPSS percentile30th
FixSee advisory

Exploitable from adjacent network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Mongodb Java Driver ≥ 3.11.0, < 3.11.3 ≥ 3.12.0, < 3.12.8 ≥ 4.0.0, < 4.0.6 ≥ 4.1.0, < 4.1.2 ≥ 4.2.0, < 4.2.1
Quarkus Quarkus 1.13.3 < 1.13.3
Abb Ability Zenon 4.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

Specific versions of the Java driver that support client-side field level encryption (CSFLE) fail to perform correct host name verification on the KMS server’s certificate. This vulnerability in combination with a privileged network position active MITM attack could result in interception of traffic between the Java driver and the KMS service rendering Field Level Encryption ineffective. This issue was discovered during internal testing and affects all versions of the Java driver that support CSFLE. The Java async, Scala, and reactive streams drivers are not impacted. This vulnerability does not impact driver traffic payloads with CSFLE-supported key services originating from applications residing inside the AWS, GCP, and Azure network fabrics due to compensating controls in these environments. This issue does not impact driver workloads that don’t use Field Level Encryption.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2021-20328
BreachSpider IDBS-2021-GLOBAL-240227-M
CVSS vectorCVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Published2021-02-25
Last modified2026-08-06
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-295: CWE-295

Related attack patterns (CAPEC)

CAPEC-459 Creating a Rogue Certification Authority Certificate via CWE-295

CAPEC-475 Signature Spoofing by Improper Validation via CWE-295

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

Specific versions of the Java driver supporting client-side field level encryption (CSFLE) are vulnerable to a host name verification issue, which could allow interception of traffic between the Java driver and the KMS service, compromising Field Level Encryption.

An attacker with a privileged network position could perform a man-in-the-middle (MITM) attack to intercept traffic between the Java driver and the KMS server. This could lead to the interception of encryption keys and data, rendering the Field Level Encryption ineffective.

Questions

What is CVE-2021-20328?

Specific versions of the Java driver supporting client-side field level encryption (CSFLE) are vulnerable to a host name verification issue, which could allow interception of traffic between the Java driver and the KMS service, compromising Field Level Encryption.

What is the CVSS score for CVE-2021-20328?

CVE-2021-20328 has CVSS 6.8 (Medium). Vector: CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N. EPSS: 0.4%.

Is CVE-2021-20328 actively exploited?

No confirmed active exploitation of CVE-2021-20328 as of 2026-09-25.

How do I remediate CVE-2021-20328?

Priority: HIGH. Advisory: https://jira.mongodb.org/browse/JAVA-4017 PSIRT: [email protected]

What systems are affected by CVE-2021-20328?

CVE-2021-20328 affects Mongodb Java Driver; Quarkus Quarkus.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Mongodb","product":"Java Driver","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-08-06.