{"schemaVersion":3,"id":"CVE-2021-20328","aliases":["UBUNTU-CVE-2021-20328","GHSA-rghw-6px2-fgwc"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-02-25T16:30:14.536Z","modified":"2024-09-16T19:10:28.653Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.8,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.4,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":4.1,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":4.1,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:A/AC:M/Au:N/C:P/I:P/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00436,"percentile":0.36482,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.0040000000000000105,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00432},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00436,"percentile":0.36482}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00432,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00436,"percentile":0.36482}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-295","name":"Improper Certificate Validation","description":"The product does not validate, or incorrectly validates, a certificate.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/295.html"}],"affected":[{"vendor":"ubuntu","product":"mongo-java-driver","name":"mongo-java-driver","label":"mongo-java-driver","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/mongo-java-driver","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"org.mongodb","product":"mongo-java-driver","name":"org.mongodb:mongo-java-driver","label":"mongo-java-driver","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.mongodb/mongo-java-driver","purlType":"maven","versions":[{"text":"≥ 3.11.0, < 3.11.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.12.0, < 3.12.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.11.0, < 3.11.3 | ≥ 3.12.0, < 3.12.8","eol":null,"hubHref":null},{"vendor":"org.mongodb","product":"mongodb-driver","name":"org.mongodb:mongodb-driver","label":"mongodb-driver","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.mongodb/mongodb-driver","purlType":"maven","versions":[{"text":"≥ 3.11.0, < 3.11.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.12.0, < 3.12.8","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.11.0, < 3.11.3 | ≥ 3.12.0, < 3.12.8","eol":null,"hubHref":null},{"vendor":"org.mongodb","product":"mongodb-driver-legacy","name":"org.mongodb:mongodb-driver-legacy","label":"mongodb-driver-legacy","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.mongodb/mongodb-driver-legacy","purlType":"maven","versions":[{"text":"≥ 4.0.0, < 4.0.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.1.0, < 4.1.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.11.0, < 3.11.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.12.0, < 3.12.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.2.0, < 4.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.0.6 | ≥ 4.1.0, < 4.1.2 | ≥ 3.11.0, < 3.11.3 | ≥ 3.12.0, < 3.12.8 | ≥ 4.2.0, < 4.2.1","eol":null,"hubHref":null},{"vendor":"org.mongodb","product":"mongodb-driver-sync","name":"org.mongodb:mongodb-driver-sync","label":"mongodb-driver-sync","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.mongodb/mongodb-driver-sync","purlType":"maven","versions":[{"text":"≥ 4.0.0, < 4.0.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.1.0, < 4.1.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.2.0, < 4.2.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.12.0, < 3.12.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.11.0, < 3.11.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 4.0.6 | ≥ 4.1.0, < 4.1.2 | ≥ 4.2.0, < 4.2.1 | ≥ 3.12.0, < 3.12.8 | ≥ 3.11.0, < 3.11.3","eol":null,"hubHref":null},{"vendor":"mongodb inc.","product":"mongo-java-driver","name":"mongo-java-driver","label":"mongo-java-driver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.11, ≤ 3.11.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.12, ≤ 3.12.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.11, ≤ 3.11.2 | ≥ 3.12, ≤ 3.12.7","eol":null,"hubHref":"/vendor/mongodb_inc/mongo-java-driver"},{"vendor":"mongodb inc.","product":"mongodb-driver","name":"mongodb-driver","label":"mongodb-driver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.11, ≤ 3.11.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.12, ≤ 3.12.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.11, ≤ 3.11.2 | ≥ 3.12, ≤ 3.12.7","eol":null,"hubHref":"/vendor/mongodb_inc/mongodb-driver"},{"vendor":"mongodb inc.","product":"mongodb-driver-legacy","name":"mongodb-driver-legacy","label":"mongodb-driver-legacy","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.2.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.11, ≤ 3.11.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.12, ≤ 3.12.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0, ≤ 4.0.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.1, ≤ 4.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.2.0 | ≥ 3.11, ≤ 3.11.2 | ≥ 3.12, ≤ 3.12.7 | ≥ 4.0, ≤ 4.0.5 | ≥ 4.1, ≤ 4.1.1","eol":null,"hubHref":"/vendor/mongodb_inc/mongodb-driver-legacy"},{"vendor":"mongodb inc.","product":"mongodb-driver-sync","name":"mongodb-driver-sync","label":"mongodb-driver-sync","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.2.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.11, ≤ 3.11.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.12, ≤ 3.12.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0, ≤ 4.0.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.1, ≤ 4.1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.2.0 | ≥ 3.11, ≤ 3.11.2 | ≥ 3.12, ≤ 3.12.7 | ≥ 4.0, ≤ 4.0.5 | ≥ 4.1, ≤ 4.1.1","eol":null,"hubHref":"/vendor/mongodb_inc/mongodb-driver-sync"},{"vendor":"mongodb","product":"java_driver","name":"java driver","label":"java_driver","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 3.11.0, < 3.11.3","noFixRecorded":false,"fixedIn":null},{"text":"≥ 3.12.0, < 3.12.8","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 4.0.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.1.0, < 4.1.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.2.0, < 4.2.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 3.11.0, < 3.11.3 | ≥ 3.12.0, < 3.12.8 | ≥ 4.0.0, < 4.0.6 | ≥ 4.1.0, < 4.1.2 | ≥ 4.2.0, < 4.2.1","eol":null,"hubHref":"/vendor/mongodb/java_driver"},{"vendor":"quarkus","product":"quarkus","name":"quarkus","label":"quarkus","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 1.13.3","noFixRecorded":false,"fixedIn":null},{"text":"1.13.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 1.13.3 | 1.13.3","eol":{"isEol":true,"eolDate":"2021-06-23T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"1","label":"1","eolFrom":"2021-06-23T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"1.13.7"},"product":{"name":"quarkus-framework","label":"Quarkus","category":"framework"}},"hubHref":"/vendor/quarkus/quarkus"}],"affectedCount":11,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://jira.mongodb.org/browse/JAVA-4017","label":"jira.mongodb.org/browse/JAVA-4017","hostname":"jira.mongodb.org","tags":["X Refsource MISC","REPORT","WEB","Issue Tracking","Patch","Vendor Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-20328","label":"ubuntu.com/security/CVE-2021-20328","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-20328","label":"www.cve.org/CVERecord?id=CVE-2021-20328","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-20328","label":"nvd.nist.gov/vuln/detail/CVE-2021-20328","hostname":"nvd.nist.gov","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-02-25T16:30:14.536Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-16T19:10:28.653Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":27,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T15:47:23.634Z","stale":false,"partial":false}}