CVE-2021-20328

Medium

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.

SeverityMedium
CVSS6.4
Exploit probability—
ProductMongodb Java Driver
PublishedFeb 25, 2021
First seenFeb 25, 2021
Weakness typeCWE-295CWE-295

How to fix

Update
  • mongodb java_driver3.11.3, 3.12.8, 4.0.6, 4.1.2, 4.2.1 or later
  • quarkus quarkus1.13.3 or later
  • org.mongodb:mongodb-driver3.11.3, 3.12.8 or later
  • org.mongodb:mongodb-driver-sync4.0.6, 4.1.2, 4.2.1, 3.12.8, 3.11.3 or later
  • org.mongodb:mongo-java-driver3.11.3, 3.12.8 or later
  • org.mongodb:mongodb-driver-legacy4.0.6, 4.1.2, 3.11.3, 3.12.8, 4.2.1 or later

Affected products

ProductAffected versionsFixed in
mongodb java_driver3.11.0 ≤ v < 3.11.3, 3.12.0 ≤ v < 3.12.8, 4.0.0 ≤ v < 4.0.6, 4.1.0 ≤ v < 4.1.2, 4.2.0 ≤ v < 4.2.13.11.3, 3.12.8, 4.0.6, 4.1.2, 4.2.1
quarkus quarkusv < 1.13.3, 1.13.31.13.3
org.mongodb:mongodb-driverMaven3.11.0 ≤ v < 3.11.3, 3.12.0 ≤ v < 3.12.83.11.3, 3.12.8
org.mongodb:mongodb-driver-syncMaven4.0.0 ≤ v < 4.0.6, 4.1.0 ≤ v < 4.1.2, 4.2.0 ≤ v < 4.2.1, 3.12.0 ≤ v < 3.12.8, 3.11.0 ≤ v < 3.11.34.0.6, 4.1.2, 4.2.1, 3.12.8, 3.11.3
org.mongodb:mongo-java-driverMaven3.11.0 ≤ v < 3.11.3, 3.12.0 ≤ v < 3.12.83.11.3, 3.12.8
org.mongodb:mongodb-driver-legacyMaven4.0.0 ≤ v < 4.0.6, 4.1.0 ≤ v < 4.1.2, 3.11.0 ≤ v < 3.11.3, 3.12.0 ≤ v < 3.12.8, 4.2.0 ≤ v < 4.2.14.0.6, 4.1.2, 3.11.3, 3.12.8, 4.2.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.