CVE-2021-20328
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| mongodb-driver-legacy | MongoDB Inc. | 4.1.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| MongoDB Inc. | mongo-java-driver | 3.11, 3.12 |
| MongoDB Inc. | mongodb-driver | 3.11, 3.12 |
| MongoDB Inc. | mongodb-driver-sync | 4.2.0, 3.11, 3.12 |
| MongoDB Inc. | mongodb-driver-legacy | 4.2.0, 3.11, 3.12 |
| MongoDB Inc. | mongodb-driver-legacy | 3.12, 3.11, 4.2.0 |
| MongoDB Inc. | mongo-java-driver | 3.11, 3.12 |
| MongoDB Inc. | mongodb-driver | 3.12, 3.11 |
| MongoDB Inc. | mongodb-driver-sync | 3.12, 4.1, 4.0 |
| mongodb | java_driver | 3.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