← back
CVE-2021-20329mediumCWE-1287

Specific cstrings input may not be properly validated in the Go Driver

13Vexday Risk Score

No sign of exploitation. No public exploitation artifact known so far.

ssvc Trackcvss 6.8epss 1.0%
exploitation probability
1.0%top 42% of all CVEs
observed exploitation
nono source reports it
In short

The MongoDB Go Driver fails to properly validate certain string inputs when converting Go objects to BSON format, allowing an attacker to inject extra fields into documents. This could lead to unintended data modification or bypass of intended application logic.

Technical detail

CWE-1287 vulnerability in MongoDB Go Driver versions ≤1.5.0 allows improper validation of cstring inputs during BSON marshalling. An attacker controlling Go object string fields can inject additional BSON fields into the marshalled output, potentially circumventing application-level data validation or authorization checks.

Summary generated and translated by AI from the official 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.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N