Skip to content
Heist/ feed
Back to feed
Medium

mongo-java-driver — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2021-20328

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.

Products
mongo-java-driver
Affected versions
2.12.4-1, 3.3.0-1, 3.6.2-1, 3.6.3-2, 3.6.3-2.1, 3.6.3-2build1, 3.6.3-2~18.04
Fixed versions
Not specified
CVEs
CVE-2021-20328
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:58 UTC · Revision 1

Source evidence

UBUNTU-CVE-2021-20328

core-osv · Original source

Published 25 Feb 2021, 17:15 UTC

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.

osv:UBUNTU-CVE-2021-20328

mongo-java-driver

Fixed versions: Not specified

mongo-java-driver

Fixed versions: Not specified

mongo-java-driver

Fixed versions: Not specified

mongo-java-driver

Fixed versions: Not specified

mongo-java-driver

Fixed versions: Not specified

mongo-java-driver

Fixed versions: Not specified

mongo-java-driver

Fixed versions: Not specified

mongo-java-driver

Fixed versions: Not specified

Complete source record
{
  "id": "49c7276d85a72a8be2c063b281bf8ea737ae1dbafd2a96f82eb0ef11c7ee6cb2",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-20328",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2021-20328",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2021-20328",
    "products": [
      {
        "name": {
          "value": "mongo-java-driver",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.12.4-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongo-java-driver",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.3.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.6.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "3.6.3-2~18.04",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongo-java-driver",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.3-2",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongo-java-driver",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.3-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongo-java-driver",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.3-2",
            "evidence": "/affected/4/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongo-java-driver",
          "evidence": "/affected/5/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.3-2",
            "evidence": "/affected/5/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongo-java-driver",
          "evidence": "/affected/6/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.3-2.1",
            "evidence": "/affected/6/versions"
          }
        ]
      },
      {
        "name": {
          "value": "mongo-java-driver",
          "evidence": "/affected/7/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "3.6.3-2",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "3.6.3-2build1",
            "evidence": "/affected/7/versions"
          },
          {
            "value": "3.6.3-2.1",
            "evidence": "/affected/7/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2021-20328",
      "aliases": [
        "UBUNTU-CVE-2021-20328"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:A/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "low"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-java-driver",
            "purl": "pkg:deb/ubuntu/mongo-java-driver?arch=source&distro=xenial",
            "ecosystem": "Ubuntu:16.04:LTS"
          },
          "versions": [
            "2.12.4-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20328.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmongodb-java",
                "binary_version": "2.12.4-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-java-driver",
            "purl": "pkg:deb/ubuntu/mongo-java-driver?arch=source&distro=bionic",
            "ecosystem": "Ubuntu:18.04:LTS"
          },
          "versions": [
            "3.3.0-1",
            "3.6.2-1",
            "3.6.3-2~18.04"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20328.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmongodb-java",
                "binary_version": "3.6.3-2~18.04"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-java-driver",
            "purl": "pkg:deb/ubuntu/mongo-java-driver?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "3.6.3-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20328.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmongodb-java",
                "binary_version": "3.6.3-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-java-driver",
            "purl": "pkg:deb/ubuntu/mongo-java-driver?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "3.6.3-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20328.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmongodb-java",
                "binary_version": "3.6.3-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-java-driver",
            "purl": "pkg:deb/ubuntu/mongo-java-driver?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "3.6.3-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20328.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmongodb-java",
                "binary_version": "3.6.3-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-java-driver",
            "purl": "pkg:deb/ubuntu/mongo-java-driver?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "3.6.3-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20328.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmongodb-java",
                "binary_version": "3.6.3-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-java-driver",
            "purl": "pkg:deb/ubuntu/mongo-java-driver?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "3.6.3-2.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20328.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmongodb-java",
                "binary_version": "3.6.3-2.1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "mongo-java-driver",
            "purl": "pkg:deb/ubuntu/mongo-java-driver?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "3.6.3-2",
            "3.6.3-2build1",
            "3.6.3-2.1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-20328.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libmongodb-java",
                "binary_version": "3.6.3-2.1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:19.485584621Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-20328"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2021-20328",
        "https://jira.mongodb.org/browse/JAVA-4017",
        "https://www.cve.org/CVERecord?id=CVE-2021-20328"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-20328",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 355263,
  "published_at": "2021-02-25T17:15:00+00:00"
}