CVE-2021-20328

MEDIUM

MongoDB Java Driver 3.11.0-3.11.3, 4.0.0-4.0.6 - Improper Certificate Validation in CSFLE KMS Server Certificate

Title source: llm
STIX 2.1

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.

References (1)

Core 1
Core References
Issue Tracking, Patch, Vendor Advisory x_refsource_misc
https://jira.mongodb.org/browse/JAVA-4017

Scores

CVSS v3 6.4
EPSS 0.0043
EPSS Percentile 34.4%
Attack Vector ADJACENT_NETWORK
CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-295
Status published
Products (7)
mongodb/java_driver 3.11.0 - 3.11.3
org.mongodb/mongo-java-driver 3.11.0 - 3.11.3Maven
org.mongodb/mongodb-driver 3.11.0 - 3.11.3Maven
org.mongodb/mongodb-driver-legacy 4.0.0 - 4.0.6Maven
org.mongodb/mongodb-driver-sync 4.0.0 - 4.0.6Maven
quarkus/quarkus 1.13.3
quarkus/quarkus < 1.13.3
Published Feb 25, 2021
Tracked Since Feb 18, 2026