CVE Vulnerabilities

CVE-2021-20328

Improper Certificate Validation

Published: Feb 25, 2021 | Modified: Nov 21, 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
root.io logo minimus.io logo echo.ai logo

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

NameVendorStart VersionEnd Version
Java_driverMongodb3.11.0 (including)3.11.3 (excluding)
Java_driverMongodb3.12.0 (including)3.12.8 (excluding)
Java_driverMongodb4.0.0 (including)4.0.6 (excluding)
Java_driverMongodb4.1.0 (including)4.1.2 (excluding)
Java_driverMongodb4.2.0 (including)4.2.1 (excluding)
Red Hat IntegrationRedHatmongodb-driver*
Red Hat Integration Camel Quarkus 2RedHat*
Red Hat Integration Debezium 1.4.2RedHatmongodb-driver*
Mongo-java-driverUbuntubionic*
Mongo-java-driverUbuntufocal*
Mongo-java-driverUbuntugroovy*
Mongo-java-driverUbuntuhirsute*
Mongo-java-driverUbuntuimpish*
Mongo-java-driverUbuntukinetic*
Mongo-java-driverUbuntulunar*
Mongo-java-driverUbuntumantic*
Mongo-java-driverUbuntuoracular*
Mongo-java-driverUbuntuplucky*
Mongo-java-driverUbuntutrusty*
Mongo-java-driverUbuntuxenial*

Potential Mitigations

References