🛡️ CVE-2021-20328 — mongo-java-driver

⚪ Unknown ✅ No Known Exploit CWE-295 OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Improper Certificate Validation in MongoDB

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.

How this vulnerability can be exploited

This issue can be reached from an adjacent network, attack complexity is high, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity high, availability none.

Weakness class

CVE-2021-20328 is classified as CWE-295: Improper Certificate Validation. A TLS certificate is accepted without proper verification, so a man-in-the-middle can present their own.

Affected software

CVE-2021-20328 is recorded against 4 packages.

  • org.mongodb:mongo-java-driver (from 3.12.0 up to 3.12.8)
  • org.mongodb:mongodb-driver (from 3.12.0 up to 3.12.8)
  • org.mongodb:mongodb-driver-legacy (from 4.2.0 up to 4.2.1)
  • org.mongodb:mongodb-driver-sync (from 3.11.0 up to 3.11.3)

Timeline and source

Published on 24 May 2022 and last revised on 16 February 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

nvd.nist.gov (Advisory)
jira.mongodb.org (Web)

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
CWE CWE-295
Public Exploit ✅ No
Source OSV
Published 2022-05-24
Updated 2026-08-12
Modified 2024-02-16
Fix URL N/A

Affected Packages

Software From version Fixed in
org.mongodb:mongo-java-driver 3.12.0 3.12.8
org.mongodb:mongodb-driver 3.12.0 3.12.8
org.mongodb:mongodb-driver-legacy 4.2.0 4.2.1
org.mongodb:mongodb-driver-sync 3.11.0 3.11.3

Free Vulnerability Check

Is your site affected by CVE-2021-20328?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against CVE-2021-20328 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.