CVE-2021-20328
Improper Certificate Validation in MongoDB
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 Maven artifacts (4)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mongodb » mongo-java-driver | >= 3.11.0, < 3.11.3>= 3.12.0, < 3.12.8 | 3.11.3, 3.12.8 |
| org.mongodb » mongodb-driver | >= 3.11.0, < 3.11.3>= 3.12.0, < 3.12.8 | 3.11.3, 3.12.8 |
| org.mongodb » mongodb-driver-legacy | >= 3.11.0, < 3.11.3>= 3.12.0, < 3.12.8>= 4.0.0, < 4.0.6>= 4.1.0, < 4.1.2>= 4.2.0, < 4.2.1 | 3.11.3, 3.12.8, 4.0.6, 4.1.2, 4.2.1 |
| org.mongodb » mongodb-driver-sync | >= 3.11.0, < 3.11.3>= 3.12.0, < 3.12.8>= 4.0.0, < 4.0.6>= 4.1.0, < 4.1.2>= 4.2.0, < 4.2.1 | 3.11.3, 3.12.8, 4.0.6, 4.1.2, 4.2.1 |
Blast radius
25% of the dependent artifacts (428) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 6,485 |
| 2 hops | 9,939 |
| 3 hops | 4,338 |
| 4 hops | 1,907 |
| 5 hops | 805 |
| 6 hops | 753 |
Most used dependents
- org.springframework.boot » spring-boot-starter-data-mongodb839 usages
- org.apache.camel.springboot » camel-core-starter558 usages
- org.apache.camel.springboot » camel-spring-boot-starter478 usages
- org.apereo.cas » cas-server-core-configuration-api442 usages
- org.apereo.cas » cas-server-core-authentication-api400 usages
- org.apache.camel.quarkus » camel-quarkus-maven-plugin302 usages
- org.apereo.cas » cas-server-core-web-api288 usages
- org.apereo.cas » cas-server-core-services280 usages
- org.apereo.cas » cas-server-core-configuration264 usages
- org.apereo.cas » cas-server-core-services-api243 usages
- org.apereo.cas » cas-server-core-authentication232 usages
- org.apereo.cas » cas-server-core-web212 usages
- org.apereo.cas » cas-server-core-tickets182 usages
- org.apereo.cas » cas-server-core-services-authentication155 usages
- org.apereo.cas » cas-server-core-webflow153 usages
Computed from the dependency graph of build 20261125.0317 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2021-20328 | nvd.nist.gov |
| Web | browse/JAVA-4017 | jira.mongodb.org |
