Loading HuntDB...

GHSA-rghw-6px2-fgwc

GitHub Security Advisory

Improper Certificate Validation in MongoDB

✓ GitHub Reviewed MODERATE Has CVE

Advisory Details

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 Packages

Maven org.mongodb:mongodb-driver
Affected versions: 3.11.0 (fixed in 3.11.3)
Maven org.mongodb:mongodb-driver
Affected versions: 3.12.0 (fixed in 3.12.8)
Maven org.mongodb:mongodb-driver-sync
Affected versions: 4.0.0 (fixed in 4.0.6)
Maven org.mongodb:mongodb-driver-sync
Affected versions: 4.1.0 (fixed in 4.1.2)
Maven org.mongodb:mongodb-driver-sync
Affected versions: 4.2.0 (fixed in 4.2.1)
Maven org.mongodb:mongo-java-driver
Affected versions: 3.11.0 (fixed in 3.11.3)
Maven org.mongodb:mongo-java-driver
Affected versions: 3.12.0 (fixed in 3.12.8)
Maven org.mongodb:mongodb-driver-legacy
Affected versions: 4.0.0 (fixed in 4.0.6)
Maven org.mongodb:mongodb-driver-legacy
Affected versions: 4.1.0 (fixed in 4.1.2)
Maven org.mongodb:mongodb-driver-legacy
Affected versions: 3.11.0 (fixed in 3.11.3)
Maven org.mongodb:mongodb-driver-legacy
Affected versions: 3.12.0 (fixed in 3.12.8)
Maven org.mongodb:mongodb-driver-sync
Affected versions: 3.12.0 (fixed in 3.12.8)
Maven org.mongodb:mongodb-driver-sync
Affected versions: 3.11.0 (fixed in 3.11.3)
Maven org.mongodb:mongodb-driver-legacy
Affected versions: 4.2.0 (fixed in 4.2.1)

Related CVEs

Key Information

GHSA ID
GHSA-rghw-6px2-fgwc
Published
May 24, 2022 10:28 PM
Last Modified
February 13, 2024 7:27 PM
CVSS Score
5.0 /10
Primary Ecosystem
Maven
Primary Package
org.mongodb:mongodb-driver
GitHub Reviewed
✓ Yes

Dataset

Last updated: September 15, 2025 6:32 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.