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 package | Versions | Reported by |
|---|---|---|
| MongoDB Inc. mongo-java-driver | from 3.11 up to 3.11.2, from 3.12 up to 3.12.7 | CVE List |
| MongoDB Inc. mongodb-driver | from 3.11 up to 3.11.2, from 3.12 up to 3.12.7 | CVE List |
| MongoDB Inc. mongodb-driver-sync | 4.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.1 | CVE List |
| MongoDB Inc. mongodb-driver-legacy | 4.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.1 | CVE List |
| mongodb java_driver | from 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.1 | CVE List, NVD |
| org.mongodb:mongodb-driver (Maven) | from 3.11.0 before 3.11.3, from 3.12.0 before 3.12.8 | GitHub 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.3 | GitHub Advisory Database |
| org.mongodb:mongo-java-driver (Maven) | from 3.11.0 before 3.11.3, from 3.12.0 before 3.12.8 | GitHub 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.1 | GitHub Advisory Database |
| quarkus quarkus | before 1.13.3, 1.13.3 | NVD |
All scores
| mongodb | 6.4medium CVSS:3.1 | CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
| GitHub | 6.8medium CVSS:3.1 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 6.8medium CVSS:3.1 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:A/AC:M/Au:N/C:P/I:P/A:N |
Classification
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
| https://jira.mongodb.org/browse/JAVA-4017 | issue-tracking, patch, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-20328 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-20328 changed 2024-09-16 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rghw-6px2-fgwc changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2021-20328 changed 2026-06-17 | Public domain |