CVE-2021-20328MongoDB Java driver client-side field level encryption not verifying KMS host name
- 6.4MediumCVSS base score
- 0.44%Exploitation in 30 daysEPSS · top 62% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By mongodb
- 2 months later
· 2 months later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| mongodbCNA (assigner) | 3.1 | Medium6.4 | CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N |
| NVDNVD · Modified | 3.1 | Medium6.8 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
- EPSS (exploitation in 30 days)
- 0.44% · top 62% of all CVEs (13 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.4.
Affected products
MongoDB Inc. · mongo-java-driver
- affected 3.11 – ≤ 3.11.2
- affected 3.12 – ≤ 3.12.7
- affected 3.11 – ≤ 3.11.2
- affected 3.12 – ≤ 3.12.7
MongoDB Inc. · mongodb-driver-sync
- affected 4.2.0
- affected 3.11 – ≤ 3.11.2
- affected 3.12 – ≤ 3.12.7
- affected 4.0 – ≤ 4.0.5
- affected 4.1 – ≤ 4.1.1
MongoDB Inc. · mongodb-driver-legacy
- affected 4.2.0
- affected 3.11 – ≤ 3.11.2
- affected 3.12 – ≤ 3.12.7
- affected 4.0 – ≤ 4.0.5
- affected 4.1 – ≤ 4.1.1
Affected packages
Affected packages4
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.mongodb:mongo-java-driverGHSA-rghw-6px2-fgwc (opens in a new tab)
- Mavenorg.mongodb:mongodb-driverGHSA-rghw-6px2-fgwc (opens in a new tab)
- Mavenorg.mongodb:mongodb-driver-legacyGHSA-rghw-6px2-fgwc (opens in a new tab)
- Mavenorg.mongodb:mongodb-driver-syncGHSA-rghw-6px2-fgwc (opens in a new tab)
References
References1
- https://jira.mongodb.org/browse/JAVA-4017 (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-5169 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-rghw-6px2-fgwc (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-20328)Record last updated .