Medium severity · published Feb 25, 2021
CVE-2021-20328
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
6.8
CVSS
0.4%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Attack vector
Adjacent
Complexity
High
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.4% · higher than 38% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
JD
Java Driver · Mongodb
3.11.0 before 3.11.3; 3.12.0 before 3.12.8; 4.0.0 before 4.0.6; 4.1.0 before 4.1.2; 4.2.0 before 4.2.1 · source: NVD
QU
Quarkus · Quarkus
before 1.13.3; 1.13.3 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-20328
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-20328
Issue Tracking
https://jira.mongodb.org/browse/JAVA-4017
More from Java Driver
8.3
CVE-2026-88033
GridFS data disclosure and deletion via query-operator injection in file IDs in the MongoDB Java Driver
7.5
CVE-2026-88032
Application denial of service via cancellation race in reactive client-side encryption in MongoDB Java Driver
6.5
CVE-2026-18710
Cleartext Storage of Sensitive Information in MongoDB Driver Logging During Client Initialization
