CVE-2021-32050: MongoDB Driver may publish events containing authentication-related data
4.2
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.17755%
CWE
Published
8/29/2023
Updated
2/13/2025
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| mongodb/mongodb | composer | >= 1.0.0, < 1.9.2 | 1.9.2 |
| mongodb | npm | >= 3.6.0, < 3.6.10 | 3.6.10 |
| mongodb | npm | >= 4.0.0, < 4.17.0 | 4.17.0 |
| mongodb | npm | >= 5.0.0, < 5.8.0 | 5.8.0 |
| github.com/mongodb/mongo-swift-driver | swift | >= 1.0.0, < 1.1.1 | 1.1.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from insufficient redaction in command monitoring event handlers. Key evidence includes:
- Node.js driver's commit 8c8b4c3 shows changes to maybeRedact to handle HELLO_COMMANDS with speculative auth
- PHP driver's update to libmongoc 1.17.7 (C driver) in commit 4495de8
- Jira tickets (CDRIVER-3797, NODE-3356) explicitly mention command monitoring redaction fixes
- The vulnerability manifests in event publishing logic across drivers that share common C driver foundations