CVE-2021-20329
Red Hat Enterprise Linux CoreOS (RHCOS) vulnerability analysis and mitigation

Overview

CVE-2021-20329 is a security vulnerability discovered in the MongoDB Go Driver affecting all versions up to and including 1.5.0. The vulnerability was related to improper validation of specific cstrings input when marshalling Go objects into BSON. The issue was disclosed and addressed with the release of MongoDB Go Driver version 1.5.1 (MongoDB Release).

Technical details

The vulnerability stems from the BSON marshalling system's incorrect handling of null bytes embedded in BSON key names and the pattern/options fields of a BSON regex value. The issue has a CVSS v3.1 score of 6.8 (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N), indicating moderate severity (MongoDB Release).

Impact

When exploited, this vulnerability could allow a malicious user to potentially inject additional fields into marshalled documents through a Go object with specific string manipulation (MongoDB Release).

Exploitability

The vulnerability requires a low level of privileges but high attack complexity to exploit. It can be accessed through the network without requiring user interaction (MongoDB Release).

Mitigation and workarounds

The vulnerability was fixed in MongoDB Go Driver version 1.5.1. The fix includes proper validation that now correctly identifies and returns an error if there is an embedded null byte in BSON key names or the pattern/options fields of a BSON regex value. Users are strongly recommended to upgrade to version 1.5.1 or later (MongoDB Release).

Additional resources


SourceThis report was generated using AI

Related Red Hat Enterprise Linux CoreOS (RHCOS) vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-60002CRITICAL9.4
  • Rocky Linux logoRocky Linux
  • openssh-sk-dummy
NoYesJul 08, 2026
CVE-2026-59858HIGH8.4
  • Vim logoVim
  • vim-common-debuginfo
NoYesJul 09, 2026
CVE-2026-59856HIGH8.4
  • Vim logoVim
  • vim-debugsource
NoYesJul 09, 2026
CVE-2026-14476HIGH8
  • Rocky Linux logoRocky Linux
  • sssd-ldap
NoYesJul 07, 2026
CVE-2026-16313HIGH7.6
  • Rocky Linux logoRocky Linux
  • rhcos-aarch64
NoYesJul 28, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management