CVE-2021-20328

MongoDB Java driver client-side field level encryption not verifying KMS host name

State
Published
Severity
6.4 Medium
Published
Feb 25, 2021
Updated
Sep 16, 2024
Reserved
Dec 17, 2020

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.16.4 MediumCVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:Nmongodb

Weaknesses

  • CWE-295 Improper Certificate Validation

Affected Products

ProductVersions
mongo-java-driverMongoDB Inc.
  • 3.11 through 3.11.2Affected
  • 3.12 through 3.12.7Affected
mongodb-driverMongoDB Inc.
  • 3.11 through 3.11.2Affected
  • 3.12 through 3.12.7Affected
mongodb-driver-syncMongoDB Inc.
  • 4.2.0Affected
  • 3.11 through 3.11.2Affected
  • 3.12 through 3.12.7Affected
  • 4.0 through 4.0.5Affected
  • 4.1 through 4.1.1Affected
mongodb-driver-legacyMongoDB Inc.
  • 4.2.0Affected
  • 3.11 through 3.11.2Affected
  • 3.12 through 3.12.7Affected
  • 4.0 through 4.0.5Affected
  • 4.1 through 4.1.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.