GHSA-f6mq-5m25-4r72

Suggest an improvement
Source
https://github.com/advisories/GHSA-f6mq-5m25-4r72
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/06/GHSA-f6mq-5m25-4r72/GHSA-f6mq-5m25-4r72.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-f6mq-5m25-4r72
Aliases
Published
2021-06-15T16:08:16Z
Modified
2024-09-17T15:38:07Z
Severity
  • 6.8 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N CVSS Calculator
Summary
go.mongodb.org/mongo-driver improperly validates cstrings when marshalling Go objects into BSON
Details

Specific cstrings input may not be properly validated in the MongoDB Go Driver when marshalling Go objects into BSON. A malicious user could use a Go object with specific string to potentially inject additional fields into marshalled documents. This issue affects all MongoDB GO Drivers up to (and including) 1.5.0.

Database specific
{
    "nvd_published_at": "2021-06-10T17:15:00Z",
    "cwe_ids": [
        "CWE-1287",
        "CWE-20"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-06-14T19:11:50Z"
}
References

Affected packages

Go / go.mongodb.org/mongo-driver

Package

Name
go.mongodb.org/mongo-driver
View open source insights on deps.dev
Purl
pkg:golang/go.mongodb.org/mongo-driver

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.5.1