ghsa-f6mq-5m25-4r72
Vulnerability from github
Published
2021-06-15 16:08
Modified
2024-09-17 15:38
Severity
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.

Show details on source website


{
  "affected": [
    {
      "package": {
        "ecosystem": "Go",
        "name": "go.mongodb.org/mongo-driver"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.5.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2021-20329"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-1287",
      "CWE-20"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2021-06-14T19:11:50Z",
    "nvd_published_at": "2021-06-10T17:15:00Z",
    "severity": "MODERATE"
  },
  "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.",
  "id": "GHSA-f6mq-5m25-4r72",
  "modified": "2024-09-17T15:38:07Z",
  "published": "2021-06-15T16:08:16Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-20329"
    },
    {
      "type": "WEB",
      "url": "https://github.com/mongodb/mongo-go-driver/pull/622"
    },
    {
      "type": "WEB",
      "url": "https://github.com/mongodb/mongo-go-driver/commit/2aca31d5986a9e1c65a92264736de9fdc3b9b4ca"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/mongodb/mongo-go-driver"
    },
    {
      "type": "WEB",
      "url": "https://github.com/mongodb/mongo-go-driver/releases/tag/v1.5.1"
    },
    {
      "type": "WEB",
      "url": "https://jira.mongodb.org/browse/GODRIVER-1923"
    },
    {
      "type": "WEB",
      "url": "https://pkg.go.dev/vuln/GO-2021-0112"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "go.mongodb.org/mongo-driver improperly validates cstrings when marshalling Go objects into BSON"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...