WaratekVRT Sign in

CVE-2021-20328 Java driver

Affected softwareJava driver
Severity6.8 Medium CVSS 3.1 3 scores
Fixed in3.11.3, 3.12.8
WeaknessCWE-295
Published25 Feb 2021
Updated17 Jun 2026

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.

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 5 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 0.44% chance in 30 days

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Medium or Low severity, no CISA or VulnCheck KEV listing, no PoC clearing the evidence bar, no CISA verdict, no Oracle advisory
Finding This CVE is MEDIUM severity, is not listed in CISA KEV or VulnCheck KEV, has no public exploit or PoC in any indexed source, carries no CISA Vulnrichment finding of a demonstrated exploit, and is not part of an Oracle Critical Patch Update. None of the signals that would put it in front of an engineer is present, and the volume of CVEs below that bar is too great to take one at a time, so no rule is written for it. This is a decision about what we act on, not a finding that the CVE is harmless — a patch may well be derivable, and a low-severity defect can still be one link in a longer chain.

CVSS

6.8 MEDIUM v3.1 CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N 3 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 6.8 MEDIUM CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N NVD Primary published
CVSS 3.1 6.4 MEDIUM CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N cna@mongodb.com Secondary
CVSS 2.0 4.3 none AV:A/AC:M/Au:N/C:P/I:P/A:N NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.mongodb:mongodb-driver 3.11.0 3.11.3 unbounded
org.mongodb:mongodb-driver 3.12.0 3.12.8 unbounded
org.mongodb:mongodb-driver-sync 4.0.0 4.0.6 unbounded
org.mongodb:mongodb-driver-sync 4.1.0 4.1.2 unbounded
org.mongodb:mongodb-driver-sync 4.2.0 4.2.1 unbounded
org.mongodb:mongo-java-driver 3.11.0 3.11.3 unbounded
org.mongodb:mongo-java-driver 3.12.0 3.12.8 unbounded
org.mongodb:mongodb-driver-legacy 4.0.0 4.0.6 unbounded
org.mongodb:mongodb-driver-legacy 4.1.0 4.1.2 unbounded
org.mongodb:mongodb-driver-legacy 3.11.0 3.11.3 unbounded
org.mongodb:mongodb-driver-legacy 3.12.0 3.12.8 unbounded
org.mongodb:mongodb-driver-sync 3.12.0 3.12.8 unbounded
org.mongodb:mongodb-driver-sync 3.11.0 3.11.3 unbounded
org.mongodb:mongodb-driver-legacy 4.2.0 4.2.1 unbounded

Products and versions

6 products, 21 version entries
SourceVendorProductSchemeAffected versions
nvd mongodb java driver generic ≥ 3.11.0 and < 3.11.3 · ≥ 3.12.0 and < 3.12.8 · ≥ 4.0.0 and < 4.0.6 · ≥ 4.1.0 and < 4.1.2 · ≥ 4.2.0 and < 4.2.1
osv org.mongodb mongo-java-driver generic ≥ 3.11.0 and < 3.11.3 · ≥ 3.12.0 and < 3.12.8
osv org.mongodb mongodb-driver generic ≥ 3.11.0 and < 3.11.3 · ≥ 3.12.0 and < 3.12.8
osv org.mongodb mongodb-driver-legacy generic ≥ 3.11.0 and < 3.11.3 · ≥ 3.12.0 and < 3.12.8 · ≥ 4.0.0 and < 4.0.6 · ≥ 4.1.0 and < 4.1.2 · ≥ 4.2.0 and < 4.2.1
osv org.mongodb mongodb-driver-sync generic ≥ 3.11.0 and < 3.11.3 · ≥ 3.12.0 and < 3.12.8 · ≥ 4.0.0 and < 4.0.6 · ≥ 4.1.0 and < 4.1.2 · ≥ 4.2.0 and < 4.2.1
nvd quarkus quarkus generic 1.13.3 · < 1.13.3

References

URLTags
https://jira.mongodb.org/browse/JAVA-4017 WEB

Timeline

Published2021-02-25By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.