CVE-2021-20328
Improper Certificate Validation in MongoDB
Description
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.
How to fix CVE-2021-20328
To remediate CVE-2021-20328, upgrade the affected package to a fixed version below.
- —upgrade to 3.11.3 or later
- —upgrade to 4.0.6 or later
- —upgrade to 4.0.6 or later
- —upgrade to 3.11.3 or later
Is CVE-2021-20328 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- >= 3.11.0, < 3.11.3
- >= 4.0.0, < 4.0.6
- >= 4.0.0, < 4.0.6
- >= 3.11.0, < 3.11.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM6.8 | CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |