Man-in-the-Middle (MitM) Affecting org.mongodb:mongodb-driver-sync package, versions [4.2.0-beta1, 4.2.1)[4.1.0, 4.1.2)[4.0.0, 4.0.6)[3.12.0, 3.12.8)[, 3.11.3)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.44% (36th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGMONGODB-1079241
  • published26 Feb 2021
  • disclosed26 Feb 2021
  • creditUnknown

Introduced: 26 Feb 2021

CVE-2021-20328  (opens in a new tab)
CWE-300  (opens in a new tab)

How to fix?

Upgrade org.mongodb:mongodb-driver-sync to version 4.2.1, 4.1.2, 4.0.6, 3.12.8, 3.11.3 or higher.

Overview

org.mongodb:mongodb-driver-sync is a The MongoDB Synchronous Driver

Affected versions of this package are vulnerable to Man-in-the-Middle (MitM). 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 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.

CVSS Base Scores

version 3.1