CVE-2021-20328
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.
How to fix
- 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
| Product | Affected versions | Fixed in |
|---|---|---|
| mongodb java_driver | 3.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.1 | 3.11.3, 3.12.8, 4.0.6, 4.1.2, 4.2.1 |
| quarkus quarkus | v < 1.13.3, 1.13.3 | 1.13.3 |
| org.mongodb:mongodb-driverMaven | 3.11.0 ≤ v < 3.11.3, 3.12.0 ≤ v < 3.12.8 | 3.11.3, 3.12.8 |
| org.mongodb:mongodb-driver-syncMaven | 4.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.3 | 4.0.6, 4.1.2, 4.2.1, 3.12.8, 3.11.3 |
| org.mongodb:mongo-java-driverMaven | 3.11.0 ≤ v < 3.11.3, 3.12.0 ≤ v < 3.12.8 | 3.11.3, 3.12.8 |
| org.mongodb:mongodb-driver-legacyMaven | 4.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.1 | 4.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.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.