Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.mongodb/mongodb-driver-legacy
  4. ›
  5. CVE-2021-20328

CVE-2021-20328: Improper Certificate Validation

May 24, 2022 (updated June 22, 2022)

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.

References

  • github.com/advisories/GHSA-rghw-6px2-fgwc
  • jira.mongodb.org/browse/JAVA-4017
  • nvd.nist.gov/vuln/detail/CVE-2021-20328

Code Behaviors & Features

Detect and mitigate CVE-2021-20328 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.0.0 up to 4.0.5, all versions starting from 4.1.0 up to 4.1.1, all versions starting from 3.11.0 up to 3.11.2, all versions starting from 3.12.0 up to 3.12.7, version 4.2.0

Fixed versions

  • 4.0.6
  • 4.1.2
  • 3.11.3
  • 4.2.1

Solution

Upgrade to versions 4.0.6, 4.1.2, 3.11.3, 4.2.1 or above.

Impact 6.8 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-295: Improper Certificate Validation

Source file

maven/org.mongodb/mongodb-driver-legacy/CVE-2021-20328.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:33 +0000.