title:  MongoDB Java driver client-side field level encryption not verifying KMS host name
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.
problem types: CWE-295 Improper Certificate Validation
affected:
{
defaultStatus: unaffected
product: mongo-java-driver
vendor: MongoDB Inc.
versions:
lessThanOrEqual: 3.11.2, status: affected, version: 3.11, versionType: custom
lessThanOrEqual: 3.12.7, status: affected, version: 3.12, versionType: custom
}
{
defaultStatus: unaffected
product: mongodb-driver
vendor: MongoDB Inc.
versions:
lessThanOrEqual: 3.11.2, status: affected, version: 3.11, versionType: custom
lessThanOrEqual: 3.12.7, status: affected, version: 3.12, versionType: custom
}
{
defaultStatus: unaffected
product: mongodb-driver-sync
vendor: MongoDB Inc.
versions:
status: affected, version: 4.2.0
lessThanOrEqual: 3.11.2, status: affected, version: 3.11, versionType: custom
lessThanOrEqual: 3.12.7, status: affected, version: 3.12, versionType: custom
lessThanOrEqual: 4.0.5, status: affected, version: 4.0, versionType: custom
lessThanOrEqual: 4.1.1, status: affected, version: 4.1, versionType: custom
}
{
defaultStatus: unaffected
product: mongodb-driver-legacy
vendor: MongoDB Inc.
versions:
status: affected, version: 4.2.0
lessThanOrEqual: 3.11.2, status: affected, version: 3.11, versionType: custom
lessThanOrEqual: 3.12.7, status: affected, version: 3.12, versionType: custom
lessThanOrEqual: 4.0.5, status: affected, version: 4.0, versionType: custom
lessThanOrEqual: 4.1.1, status: affected, version: 4.1, versionType: custom
}
metrics:
cvssV3_1: [
attackComplexity: HIGH
attackVector: ADJACENT_NETWORK
availabilityImpact: NONE
baseScore: 6.4
baseSeverity: MEDIUM
confidentialityImpact: HIGH
integrityImpact: HIGH
privilegesRequired: NONE
scope: UNCHANGED
userInteraction: REQUIRED
vectorString: CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
version: 3.1
]
format: CVSS
scenarios: GENERAL