Predictive Vulnerability Intelligence.

Product

  • Product
  • Pricing
  • Documentation

Company

  • About
  • Partnerships
  • Blog
  • Support

Legal

  • Terms
  • Privacy
  • Data Licensing

© 2026 FAUCET Technologies LLC. All rights reserved.

CVE-2021-20328

23
FAUCET Score

CVE-2021-20328 is a medium-severity vulnerability affecting specific versions of the MongoDB Java driver that support client-side field level encryption (CSFLE). The flaw lies in the driver's failure to properly verify the hostname on the Key Management Service (KMS) server's certificate. This misconfiguration, when combined with a privileged network position and an active Man-in-the-Middle (MITM) attack, could allow an attacker to intercept traffic between the Java driver and the KMS, effectively rendering Field Level Encryption useless. While the CVSS score is 6.8 (Medium), its attack vector is adjacent and attack complexity is high, meaning an attacker needs to be on the same local network and have specialized knowledge to exploit it. There is no evidence of active exploitation, public exploit code, or significant community discussion surrounding this vulnerability.

Impacted Technologies

VendorProductVersion(s)CPE
>= 3.11.0, < 3.11.3CPE matchmatch criteria
cpe:2.3:a:mongodb:java_driver:*:*:*:*:*:mongodb:*:*
>= 3.12.0, < 3.12.8CPE matchmatch criteria
cpe:2.3:a:mongodb:java_driver:*:*:*:*:*:mongodb:*:*
>= 4.0.0, < 4.0.6CPE matchmatch criteria
cpe:2.3:a:mongodb:java_driver:*:*:*:*:*:mongodb:*:*
>= 4.1.0, < 4.1.2CPE matchmatch criteria
cpe:2.3:a:mongodb:java_driver:*:*:*:*:*:mongodb:*:*
>= 4.2.0, < 4.2.1CPE matchmatch criteria
cpe:2.3:a:mongodb:java_driver:*:*:*:*:*:mongodb:*:*

CVSS Data

CVSS version used by this source: 3.1

6.4MEDIUM

CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Attack Vector
ADJACENT_NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
REQUIRED
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
NONE
Exploitability Score
1.2
Impact Score
5.2
CvssVersion
3.1

Exploit Intelligence

EPSS Score
0.43%
Probability of exploitation in next 30 days
EPSS Percentile
35.4%
Percentile rank of EPSS score among Peer Group
As of 2026-07-27
Model: v2026.06.15
This CVE's current EPSS score of 0.0043 is in the 89th percentile among its peer group of 1,749 CVEs.

Social Chatter

The average CVE in this peer group has 0.0 Twitter, 0.0 Reddit, 0.0 Bluesky, 0.0 Mastodon, and 0.0 GitHub mentions.

Media Mentions

No media coverage found for this CVE.

The average CVE in this peer group has 0.1 InfoSec Media, 0.0 Vendor Blog, and 0.0 Security Researcher mentions.

Remediation

Patch Available

Vendor Patches (20)

mavenpatch availablevia ghsa
Product: org.mongodb:mongodb-driverFixed in: 3.11.3
mavenpatch availablevia ghsa
Product: org.mongodb:mongodb-driverFixed in: 3.12.8
mavenpatch availablevia ghsa
Product: org.mongodb:mongodb-driver-syncFixed in: 4.0.6
mavenpatch availablevia ghsa
Product: org.mongodb:mongodb-driver-syncFixed in: 4.1.2
mavenpatch availablevia ghsa
Product: org.mongodb:mongodb-driver-syncFixed in: 4.2.1
mavenpatch availablevia ghsa
Product: org.mongodb:mongo-java-driverFixed in: 3.11.3
mavenpatch availablevia ghsa
Product: org.mongodb:mongo-java-driverFixed in: 3.12.8
mavenpatch availablevia ghsa
Product: org.mongodb:mongodb-driver-legacyFixed in: 4.0.6
mavenpatch availablevia ghsa
Product: org.mongodb:mongodb-driver-legacyFixed in: 4.1.2
mavenpatch availablevia ghsa
Product: org.mongodb:mongodb-driver-legacyFixed in: 3.11.3
mavenpatch availablevia ghsa
Product: org.mongodb:mongodb-driver-legacyFixed in: 3.12.8
mavenpatch availablevia ghsa
Product: org.mongodb:mongodb-driver-syncFixed in: 3.12.8
mavenpatch availablevia ghsa
Product: org.mongodb:mongodb-driver-syncFixed in: 3.11.3
mavenpatch availablevia ghsa
Product: org.mongodb:mongodb-driver-legacyFixed in: 4.2.1
redhatpatch availablevia redhat_api
Product: Red Hat IntegrationFixed in: mongodb-driver
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Integration Camel Quarkus 2
View patch
redhatpatch availablevia redhat_api
Product: Red Hat Integration Debezium 1.4.2Fixed in: mongodb-driver
View patch
redhatno patchvia redhat_api
Product: Red Hat build of Debezium 1Fixed in: mongodb-driver
redhatno patchvia redhat_api
Product: Red Hat Integration Camel Quarkus 1Fixed in: mongodb-driver
redhatend of lifevia redhat_api
Product: A-MQ Clients 2Fixed in: mongodb-driver

Vendor Advisories (2)

mavenGHSA-rghw-6px2-fgwcmedium

Improper Certificate Validation in MongoDB

May 24, 2022
redhatCVE-2021-20328Moderate

mongo-java-driver: client-side field level encryption not verifying KMS host name

Feb 17, 2021

References

jira.mongodb.org / browse/JAVA-4017
Issue TrackingPatchVendor Advisory