Improper Input Validation Affecting go.mongodb.org/mongo-driver/bson/bsonrw package, versions <1.5.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.05% (23rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GOMONGODBORGMONGODRIVERBSONBSONRW-1303393
  • published11 Jun 2021
  • disclosed11 Jun 2021
  • creditDivjot Arora

Introduced: 11 Jun 2021

CVE-2021-20329  (opens in a new tab)
CWE-1287  (opens in a new tab)

How to fix?

Upgrade go.mongodb.org/mongo-driver/bson/bsonrw to version 1.5.1 or higher.

Overview

go.mongodb.org/mongo-driver/bson/bsonrw is a The MongoDB supported driver for Go.

Affected versions of this package are vulnerable to Improper Input Validation. 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.

CVSS Scores

version 3.1