GitHub Advisoryadvisory · Maven

GHSA-rghw-6px2-fgwc Improper Certificate Validation in MongoDB

MEDIUM Published 2022-05-24 Modified 2024-02-13 Official page ↗
Aliases
CVE-2021-20328
Ecosystem
Maven
Packages
org.mongodb:mongodb-driver, org.mongodb:mongodb-driver-sync, org.mongodb:mongo-java-driver, org.mongodb:mongodb-driver-legacy
Severity
Moderate
CVSS vector
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Weaknesses
CWE-295
Reviewed
2022-06-22

Affected packages

• Maven org.mongodb:mongodb-driver: >= 3.11.0, < 3.11.3 → fixed in 3.11.3 • Maven org.mongodb:mongodb-driver: >= 3.12.0, < 3.12.8 → fixed in 3.12.8 • Maven org.mongodb:mongodb-driver-sync: >= 4.0.0, < 4.0.6 → fixed in 4.0.6 • Maven org.mongodb:mongodb-driver-sync: >= 4.1.0, < 4.1.2 → fixed in 4.1.2 • Maven org.mongodb:mongodb-driver-sync: >= 4.2.0, < 4.2.1 → fixed in 4.2.1 • Maven org.mongodb:mongo-java-driver: >= 3.11.0, < 3.11.3 → fixed in 3.11.3 • Maven org.mongodb:mongo-java-driver: >= 3.12.0, < 3.12.8 → fixed in 3.12.8 • Maven org.mongodb:mongodb-driver-legacy: >= 4.0.0, < 4.0.6 → fixed in 4.0.6 • Maven org.mongodb:mongodb-driver-legacy: >= 4.1.0, < 4.1.2 → fixed in 4.1.2 • Maven org.mongodb:mongodb-driver-legacy: >= 3.11.0, < 3.11.3 → fixed in 3.11.3 • Maven org.mongodb:mongodb-driver-legacy: >= 3.12.0, < 3.12.8 → fixed in 3.12.8 • Maven org.mongodb:mongodb-driver-sync: >= 3.12.0, < 3.12.8 → fixed in 3.12.8 • Maven org.mongodb:mongodb-driver-sync: >= 3.11.0, < 3.11.3 → fixed in 3.11.3 • Maven org.mongodb:mongodb-driver-legacy: >= 4.2.0, < 4.2.1 → fixed in 4.2.1

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.

Related

Alias · CVE (1)

  • CVE-2021-20328 Specific versions of the Java driver that support client-side field level encryption (CSFLE) fail to perform correct host name verification… vulnerability

Weakness · CWE (1)

  • CWE-295 Improper Certificate Validation weakness

References