CVE Vulnerabilities

CVE-2021-20328

Improper Certificate Validation

Published: Feb 25, 2021 | Modified: Feb 13, 2024
CVSS 3.x
6.8
MEDIUM
Source:
NVD
CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS 2.x
4.3 MEDIUM
AV:A/AC:M/Au:N/C:P/I:P/A:N
RedHat/V2
RedHat/V3
6.4 MODERATE
CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Ubuntu
LOW

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.

Weakness

The product does not validate, or incorrectly validates, a certificate.

Affected Software

Name Vendor Start Version End Version
Java_driver Mongodb 3.11.0 (including) 3.11.3 (excluding)
Java_driver Mongodb 3.12.0 (including) 3.12.8 (excluding)
Java_driver Mongodb 4.0.0 (including) 4.0.6 (excluding)
Java_driver Mongodb 4.1.0 (including) 4.1.2 (excluding)
Java_driver Mongodb 4.2.0 (including) 4.2.1 (excluding)
Red Hat Integration RedHat mongodb-driver *
Red Hat Integration Camel Quarkus RedHat mongodb-driver *
Red Hat Integration Debezium 1.4.2 RedHat mongodb-driver *
Mongo-java-driver Ubuntu bionic *
Mongo-java-driver Ubuntu groovy *
Mongo-java-driver Ubuntu hirsute *
Mongo-java-driver Ubuntu impish *
Mongo-java-driver Ubuntu kinetic *
Mongo-java-driver Ubuntu lunar *
Mongo-java-driver Ubuntu mantic *
Mongo-java-driver Ubuntu trusty *
Mongo-java-driver Ubuntu xenial *

Potential Mitigations

References