Security mailing lists by PureSourceCode

CVE-2021-20329

MEDIUM 6.5CVSS 3.1

go.mongodb.org/mongo-driver improperly validates cstrings when marshalling Go objects into BSON

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 prior to and including 1.5.0.

Published
10 Jun 2021
Last modified
17 Jun 2026
Assigned by
cna@mongodb.com
NVD status
Modified
Weakness
CWE-1287CWE-20
Also known as
GHSA-f6mq-5m25-4r72GO-2021-0112
Sources
NVDJSONOSV GHSA-f6mq-5m25-4r72JSONOSV GO-2021-0112JSON

Scores

SourceScored byVersionScoreVector / decision
NVD cna@mongodb.com (Secondary) CVSS 3.1 MEDIUM 6.8 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.8 CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.0 AV:N/AC:L/Au:S/C:N/I:P/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD mongodb go_driver
cpe:2.3:a:mongodb:go_driver:*:*:*:*:*:mongodb:*:*
<= 1.5.0
OSV Go go.mongodb.org/mongo-driver < 1.5.1 1.5.1

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 10 Jun 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Jul 2021)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 15 Jun 2021)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.