CVE-2020-7924: Github.com/mongodb/mongo tools Improper Certificate Validation Vulnerability
MODERATECVE-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.
CVE-2020-7924 at a Glance
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).
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.
Upgrade github.com/mongodb/mongo-tools to 100.2.0
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
CVE-2020-7924 Affected Github.com/mongodb/mongo tools Versions
1 component(s)| 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?
Which Github.com/mongodb/mongo tools versions are affected?
What version fixes CVE-2020-7924?
Is github.com/mongodb/mongo-tools affected?
What is the CVSS score of CVE-2020-7924?
What CWE is associated with CVE-2020-7924?
How can I check Go dependencies for CVE-2020-7924?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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"
}
}