CVE-2021-20328
published medium CVSS 3.1 · 6.4MongoDB Java driver client-side field level encryption not verifying KMS host name
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB Inc. | — | mongo-java-driver3.11 through 3.11.2 · 3.12 through 3.12.7 · Other versions: unaffected | Affected | Not stated | mongodb |
| MongoDB Inc. | — | mongodb-driver3.11 through 3.11.2 · 3.12 through 3.12.7 · Other versions: unaffected | Affected | Not stated | mongodb |
| MongoDB Inc. | — | mongodb-driver-sync4.2.0 · 3.11 through 3.11.2 · 3.12 through 3.12.7 · 4.0 through 4.0.5 · 4.1 through 4.1.1 · Other versions: unaffected | Affected | Not stated | mongodb |
| MongoDB Inc. | — | mongodb-driver-legacy4.2.0 · 3.11 through 3.11.2 · 3.12 through 3.12.7 · 4.0 through 4.0.5 · 4.1 through 4.1.1 · Other versions: unaffected | Affected | Not stated | mongodb |
| mongodb | — | java_driver3.11 through 3.11.2 · 3.12 through 3.12.7 · Other versions: unaffected | Affected | Not stated | CISA-ADP |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.4 / 10
- Severity
- medium
- Provider
- mongodb · cna
- Vector string
- CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB Inc. | mongo-java-driver | 3.11 through 3.11.2 (affected · custom)3.12 through 3.12.7 (affected · custom)Default: unaffected | mongodb · cna |
| MongoDB Inc. | mongodb-driver | 3.11 through 3.11.2 (affected · custom)3.12 through 3.12.7 (affected · custom)Default: unaffected | mongodb · cna |
| MongoDB Inc. | mongodb-driver-sync | 4.2.0 (affected)3.11 through 3.11.2 (affected · custom)3.12 through 3.12.7 (affected · custom)4.0 through 4.0.5 (affected · custom)4.1 through 4.1.1 (affected · custom)Default: unaffected | mongodb · cna |
| MongoDB Inc. | mongodb-driver-legacy | 4.2.0 (affected)3.11 through 3.11.2 (affected · custom)3.12 through 3.12.7 (affected · custom)4.0 through 4.0.5 (affected · custom)4.1 through 4.1.1 (affected · custom)Default: unaffected | mongodb · cna |
| mongodb | java_driver | 3.11 through 3.11.2 (affected · custom)3.12 through 3.12.7 (affected · custom)Default: unaffected | CISA-ADP · adp |
Weaknesses
1- CWE-295 CWE-295 Improper Certificate Validation
References
1Provider assertions
3mongodb · cna
MongoDB Java driver client-side field level encryption not verifying KMS host name
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 11328161cf142b50c74c780d199c878c7492253bceb6ec51301ffc402c7b9ea8
- Ingested
- 23 Sep 2026, 07:52:16 UTC
- Source record
- Official CVE record