Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. go.mongodb.org/mongo-driver/mongo
  4. ›
  5. CVE-2021-20329

CVE-2021-20329: Improper Input Validation

June 10, 2021 (updated January 23, 2024)

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.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-20329

Code Behaviors & Features

Detect and mitigate CVE-2021-20329 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.5.0

Fixed versions

  • v1.5.1

Solution

Upgrade to version 1.5.1 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

go/go.mongodb.org/mongo-driver/mongo/CVE-2021-20329.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:11 +0000.