CVE-2021-20328
JSON

6.4medium

MongoDB Java driver client-side field level encryption not verifying KMS host name

Severity
6.4medium CVSS:3.1 by mongodb
Exploit likelihood
0.44% (higher than 40% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mongodb
Also known as
GHSA-rghw-6px2-fgwc

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.

Affected

Product or packageVersionsReported by
MongoDB Inc. mongo-java-driverfrom 3.11 up to 3.11.2, from 3.12 up to 3.12.7CVE List
MongoDB Inc. mongodb-driverfrom 3.11 up to 3.11.2, from 3.12 up to 3.12.7CVE List
MongoDB Inc. mongodb-driver-sync4.2.0, from 3.11 up to 3.11.2, from 3.12 up to 3.12.7, from 4.0 up to 4.0.5, from 4.1 up to 4.1.1CVE List
MongoDB Inc. mongodb-driver-legacy4.2.0, from 3.11 up to 3.11.2, from 3.12 up to 3.12.7, from 4.0 up to 4.0.5, from 4.1 up to 4.1.1CVE List
mongodb java_driverfrom 3.11 up to 3.11.2, from 3.12 up to 3.12.7, from 3.11.0 before 3.11.3, from 3.12.0 before 3.12.8, from 4.0.0 before 4.0.6, from 4.1.0 before 4.1.2, from 4.2.0 before 4.2.1CVE List, NVD
org.mongodb:mongodb-driver (Maven)from 3.11.0 before 3.11.3, from 3.12.0 before 3.12.8GitHub Advisory Database
org.mongodb:mongodb-driver-sync (Maven)from 4.0.0 before 4.0.6, from 4.1.0 before 4.1.2, from 4.2.0 before 4.2.1, from 3.12.0 before 3.12.8, from 3.11.0 before 3.11.3GitHub Advisory Database
org.mongodb:mongo-java-driver (Maven)from 3.11.0 before 3.11.3, from 3.12.0 before 3.12.8GitHub Advisory Database
org.mongodb:mongodb-driver-legacy (Maven)from 4.0.0 before 4.0.6, from 4.1.0 before 4.1.2, from 3.11.0 before 3.11.3, from 3.12.0 before 3.12.8, from 4.2.0 before 4.2.1GitHub Advisory Database
quarkus quarkusbefore 1.13.3, 1.13.3NVD

All scores

mongodb6.4medium CVSS:3.1CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
GitHub6.8medium CVSS:3.1CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD6.8medium CVSS:3.1CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
NVD4.3medium CVSS:2.0AV:A/AC:M/Au:N/C:P/I:P/A:N

Classification

CWE-295

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Las versiones específicas del controlador de Java que soportan el client-side field level encryption (CSFLE) presentan un fallo al realizar una comprobación correcta del nombre del host en el certificado del servidor KMS. Esta vulnerabilidad, en combinación con un ataque MITM activo en una posición de red privilegiada, podría resultar en una interceptación del tráfico entre el controlador de Java y el servicio KMS, haciendo que el cifrado a nivel de campo sea ineficaz. Este problema se detectó durante las pruebas internas y afecta a todas las versiones del controlador de Java que soportan CSFLE. Los controladores Java async, Scala y flujos reactivos no están afectados. Esta vulnerabilidad no afecta a las cargas de tráfico del controlador con servicios clave compatibles con CSFLE que se originan en aplicaciones que residen dentro de los tejidos de red de AWS, GCP y Azure debido a los controles de compensación en estos entornos. Este problema no afecta a las cargas de trabajo de los controladores que no usan Field Level Encryption

References

Sources

SourceRecordLicence
CVE ListCVE-2021-20328 changed 2024-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-rghw-6px2-fgwc changed 2024-02-16CC-BY-4.0
NVDCVE-2021-20328 changed 2026-06-17Public domain