Advisory

GO-2024-2550

Also known as: CVE-2020-7924, GHSA-6cwm-wm82-hgrw

Summary

MongoDB Tools Improper Certificate Validation vulnerability in github.com/mongodb/mongo-tools

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.

NOTE: this module uses its own versioning scheme that is not fully compatible with standard Go module versioning, so the affected versions in this report may differ from the versions listed in other advisories.

According to the advisory, the affected versions are as follows: 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

Not rated by the source.

Dates

Published
2024-06-28 15:28 UTC
Modified
2024-07-09 19:33 UTC

Affected packages and fixes

github.com/mongodb/mongo-tools

Go · All systems

Affected

  • introduced 0, fixed 0.0.0-20200819165540-8c1800b51550 (semver)

Fixed versions

0.0.0-20200819165540-8c1800b51550

Fix

  • Fixed version 0.0.0-20200819165540-8c1800b51550
    go get github.com/mongodb/[email protected]

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences