VDB

CVE-2021-20328

CVE-2021-20328 PUBLISHED CVSS 6.4 MEDIUM

MongoDB Java driver client-side field level encryption not verifying KMS host name

Reported by mongodb · Published February 25, 2021

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
mongodb-driver-legacyMongoDB Inc.4.1.1

Risk scores

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

Affected products

VendorProductVersions
MongoDB Inc.mongo-java-driver3.11, 3.12
MongoDB Inc.mongodb-driver3.11, 3.12
MongoDB Inc.mongodb-driver-sync4.2.0, 3.11, 3.12
MongoDB Inc.mongodb-driver-legacy4.2.0, 3.11, 3.12
MongoDB Inc.mongodb-driver-legacy3.12, 3.11, 4.2.0
MongoDB Inc.mongo-java-driver3.11, 3.12
MongoDB Inc.mongodb-driver3.12, 3.11
MongoDB Inc.mongodb-driver-sync3.12, 4.1, 4.0
mongodbjava_driver3.11, 3.12

Timeline

  • Feb 25, 2021 CVE Published
  • Feb 25, 2021 PoC Published (2 in total, the first dated here)
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Sep 16, 2024 CVE Updated
  • Mar 23, 2026 Security Advisory
  • Aug 26, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-20328
vulnetix vdb fixes CVE-2021-20328

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-20328/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

  • x_refsource_MISC
Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›