CVE-2021-20329
published medium CVSS 3.1 · 6.8Specific cstrings input may not be properly validated in the Go Driver
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB Inc. | — | MongoDB Go Driver1.0 through 1.5.0 · Other versions: unaffected | Affected | Not stated | mongodb |
| SUSE / openSUSE | openSUSE-Tumbleweed | etcd-for-k8s1.32aarch64 | Advisory build | 3.5.24-1.1 | OPENSUSE-SU-2025:15764-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | etcd-for-k8s1.32ppc64le | Advisory build | 3.5.24-1.1 | OPENSUSE-SU-2025:15764-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | etcd-for-k8s1.32s390x | Advisory build | 3.5.24-1.1 | OPENSUSE-SU-2025:15764-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | etcd-for-k8s1.32x86_64 | Advisory build | 3.5.24-1.1 | OPENSUSE-SU-2025:15764-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- mongodb · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB Inc. | MongoDB Go Driver | 1.0 through 1.5.0 (affected · custom)Default: unaffected | mongodb · cna |
Weaknesses
1- CWE-1287 CWE-1287: Improper Validation of Specified Type of Input
References
1Provider assertions
2mongodb · cna
Specific cstrings input may not be properly validated in the Go Driver
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- c1ede8a5b40eee352ff574132e048bc61afd2a062a43d1d474b67d208602ca02
- Ingested
- 23 Sep 2026, 07:52:16 UTC
- Source record
- Official CVE record