cve.bz

CVE-2021-20328 Improper Certificate Validation

6.8 mediumEPSS 0.4%Fix available

Medium (6.8). EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in org.mongodb:mongodb-driver 3.11.3, 3.12.8.

On this page
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.

Severity

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
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 39th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2024-02-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-295 Improper Certificate Validation
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-20328 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-20328?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-20328?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-20328 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
MongoDB Inc. mongo-java-driverfrom 3.11 through 3.11.2
MongoDB Inc. mongo-java-driverfrom 3.12 through 3.12.7
MongoDB Inc. mongodb-driverfrom 3.11 through 3.11.2
MongoDB Inc. mongodb-driverfrom 3.12 through 3.12.7
MongoDB Inc. mongodb-driver-sync4.2.0
MongoDB Inc. mongodb-driver-syncfrom 3.11 through 3.11.2
MongoDB Inc. mongodb-driver-syncfrom 3.12 through 3.12.7
MongoDB Inc. mongodb-driver-syncfrom 4.0 through 4.0.5
MongoDB Inc. mongodb-driver-syncfrom 4.1 through 4.1.1
MongoDB Inc. mongodb-driver-legacy4.2.0
MongoDB Inc. mongodb-driver-legacyfrom 3.11 through 3.11.2
MongoDB Inc. mongodb-driver-legacyfrom 3.12 through 3.12.7
MongoDB Inc. mongodb-driver-legacyfrom 4.0 through 4.0.5
MongoDB Inc. mongodb-driver-legacyfrom 4.1 through 4.1.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongodb-driver>=3.11.0 <3.11.33.11.3
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongodb-driver>=3.12.0 <3.12.83.12.8
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongodb-driver-sync>=4.0.0 <4.0.64.0.6
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongodb-driver-sync>=4.1.0 <4.1.24.1.2
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongodb-driver-sync>=4.2.0 <4.2.14.2.1
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongo-java-driver>=3.11.0 <3.11.33.11.3
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongo-java-driver>=3.12.0 <3.12.83.12.8
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongodb-driver-legacy>=4.0.0 <4.0.64.0.6
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongodb-driver-legacy>=4.1.0 <4.1.24.1.2
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongodb-driver-legacy>=3.11.0 <3.11.33.11.3
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongodb-driver-legacy>=3.12.0 <3.12.83.12.8
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongodb-driver-sync>=3.12.0 <3.12.83.12.8
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongodb-driver-sync>=3.11.0 <3.11.33.11.3
GHSA-rghw-6px2-fgwcMavenorg.mongodb:mongodb-driver-legacy>=4.2.0 <4.2.14.2.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 moremongo-java-driverno fix listedUBUNTU-CVE-2021-20328

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Integrationmongodb-driverFixed 2021-12-02RHSA-2021:4918
Red Hat Integration Camel Quarkus 2Fixed 2021-11-23RHSA-2021:4767
Red Hat Integration Debezium 1.4.2mongodb-driverFixed 2021-03-16RHSA-2021:0871
A-MQ Clients 2mongodb-driverWill not fix
Red Hat build of Debezium 1mongodb-driverAffected
Red Hat Fuse 7mongo-java-driverNot affected
Red Hat Integration Camel Quarkus 1mongodb-driverAffected
Red Hat JBoss Data Virtualization 6mongo-java-driverNot affected
Red Hat JBoss Enterprise Application Platform 7mongo-java-driverNot affected
Red Hat JBoss Fuse 6mongo-java-driverNot affected
Red Hat OpenShift Container Platform 4openshift4/ose-metering-prestoNot affected
Red Hat Software Collectionsrh-mongodb36-mongo-java-driverNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-20328.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-218-01ABB Ability Zenon2026-07-30Chemical, Communications, Critical Manufacturing, Dams, Energy, Healthcare and Public Health, Information Technology, Water and WastewaterIIoT services with MongoDB 4.2 installed on ABB Ability Zenon /allnone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

Attack patterns (CAPEC)

  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON