cve.bz

CVE-2021-20328

6.8 mediumEPSS 0.4%

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

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% chance of exploitation in the next 30 days; higher than 37% of CVEs (scores of 2026-10-31)
CWE
CWE-295
Published
Modified
Record from
the NVD, synced

Affected

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

References

Check your stackJSON