Vulnerabilities in pkg:golang/github.com/mongodb/mongo-tools

PACKAGE
Advisory Identifier: GHSA-6cwm-wm82-hgrw
Advisory Summary

CVE-2020-7924 is a MODERATE (CVSS 6.5) improper certificate validation vulnerability (CWE-295: Improper Certificate Validation) affecting Github.com/mongodb/mongo tools libraries in the Go ecosystem. The issue involves mongodb tools improper certificate validation vulnerability. Remediation is available by upgrading affected packages to version 100.2.0.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/mongodb/mongo-tools

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/mongodb/mongo-tools. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-6cwm-wm82-hgrw CVE-2020-7924 MODERATE MongoDB Tools Improper Certificate Validation vulnerability

CVE-2020-7924 at a Glance

CVE Identifier CVE-2020-7924
GHSA Identifier GHSA-6cwm-wm82-hgrw
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-295: Improper Certificate Validation
Affected Product Github.com/mongodb/mongo tools
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2020-7924

To remediate this vulnerability, upgrade all affected Github.com/mongodb/mongo tools dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/mongodb/mongo-tools fixed: 100.2.0
Upgrade github.com/mongodb/mongo-tools to 100.2.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/mongodb/mongo-tools

How to Check if You Are Affected

To determine whether your application is affected by CVE-2020-7924, inspect your project dependencies for Github.com/mongodb/mongo tools:

inspect dependencies for github.com/mongodb/mongo-tools

Analyze the terminal output to locate any version of Github.com/mongodb/mongo tools in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 100.2.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-295: Improper Certificate Validation, where the product does not validate, or incorrectly validates, a certificate. In Github.com/mongodb/mongo tools, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Usage of specific command line parameter in MongoDB Tools which was originally intended to just skip hostname checks, may result in MongoDB skipping all certificate validation. This may result in accepting invalid certificates.This issue affects: MongoDB Inc. MongoDB Database Tools 3.6 versions later than 3.6.5; 3.6 versions prior to 3.6.21; 4.0 versions prior to 4.0.21; 4.2 versions prior to 4.2.11; 100 versions prior to 100.2.0. MongoDB Inc. Mongomirror 0 versions later than 0.6.0.

CVE-2020-7924 Affected Github.com/mongodb/mongo tools Versions

1 component(s)
Fixed Versions:
100.2.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/mongodb/mongo-tools
Go
≥ 100.0.0
< 100.2.0
100.2.0

References

Frequently Asked Questions

What is CVE-2020-7924?
CVE-2020-7924 is a security vulnerability in Github.com/mongodb/mongo tools involving MongoDB Tools Improper Certificate Validation vulnerability under CWE-295: Improper Certificate Validation.
Which Github.com/mongodb/mongo tools versions are affected?
Affected versions include releases prior to 100.2.0 across affected packages: github.com/mongodb/mongo-tools.
What version fixes CVE-2020-7924?
Upgrading to 100.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/mongodb/mongo-tools affected?
Yes, github.com/mongodb/mongo-tools is affected in releases prior to 100.2.0. Upgrade your dependency to 100.2.0 or later.
What is the CVSS score of CVE-2020-7924?
CVE-2020-7924 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2020-7924?
CVE-2020-7924 is classified under CWE-295: Improper Certificate Validation (The product does not validate, or incorrectly validates, a certificate.).
How can I check Go dependencies for CVE-2020-7924?
Run the dependency tree command: 'inspect dependencies for github.com/mongodb/mongo-tools'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-6cwm-wm82-hgrw",
  "modified" : "2024-07-03T21:05:45Z",
  "published" : "2022-05-24T17:47:06Z",
  "aliases" : [ "CVE-2020-7924" ],
  "summary" : "MongoDB Tools Improper Certificate Validation vulnerability",
  "details" : "Usage of specific command line parameter in MongoDB Tools which was originally intended to just skip hostname checks, may result in MongoDB skipping all certificate validation. This may result in accepting invalid certificates.This issue affects: MongoDB Inc. MongoDB Database Tools 3.6 versions later than 3.6.5; 3.6 versions prior to 3.6.21; 4.0 versions prior to 4.0.21; 4.2 versions prior to 4.2.11; 100 versions prior to 100.2.0. MongoDB Inc. Mongomirror 0 versions later than 0.6.0.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/mongodb/mongo-tools"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "100.0.0"
      }, {
        "fixed" : "100.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-7924"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/mongodb/mongo-tools/commit/8c1800b5155084f954a39a1f2f259efac3bb86de"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-6cwm-wm82-hgrw"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/mongodb/mongo-tools"
  }, {
    "type" : "WEB",
    "url" : "https://jira.mongodb.org/browse/TOOLS-2587"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-295" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-02-13T20:32:52Z",
    "nvd_published_at" : "2021-04-12T17:15:00Z"
  }
}