Skip to content
CVE PROGRAM SOURCE RECORD6.4 Medium

CVE-2021-20328

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

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

MongoDB Inc. mongo-java-driver

Default version status: unaffected

  • 3.11 to ≤ 3.11.2affected
  • 3.12 to ≤ 3.12.7affected

MongoDB Inc. mongodb-driver

Default version status: unaffected

  • 3.11 to ≤ 3.11.2affected
  • 3.12 to ≤ 3.12.7affected

MongoDB Inc. mongodb-driver-sync

Default version status: unaffected

  • 4.2.0affected
  • 3.11 to ≤ 3.11.2affected
  • 3.12 to ≤ 3.12.7affected
  • 4.0 to ≤ 4.0.5affected
  • 4.1 to ≤ 4.1.1affected

MongoDB Inc. mongodb-driver-legacy

Default version status: unaffected

  • 4.2.0affected
  • 3.11 to ≤ 3.11.2affected
  • 3.12 to ≤ 3.12.7affected
  • 4.0 to ≤ 4.0.5affected
  • 4.1 to ≤ 4.1.1affected

References