mongo-c-driver, node-mongodb and 1 more products — security advisory
Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed. Without due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default). This issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0).
- Products
- mongo-c-driver, node-mongodb, php-mongodb
- Affected versions
- 3.6.4+~cs11.13.19-2
- Fixed versions
- 1.11.1+1.9.2+1.7.5-4, 1.18.0-1
- CVEs
- CVE-2021-32050
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 00:34 UTC · Revision 1
Source evidence
Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed. Without due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default). This issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0).
osv:DEBIAN-CVE-2021-32050
mongo-c-driver
Fixed versions: 1.18.0-1
mongo-c-driver
Fixed versions: 1.18.0-1
mongo-c-driver
Fixed versions: 1.18.0-1
node-mongodb
Fixed versions: Not specified
php-mongodb
Fixed versions: 1.11.1+1.9.2+1.7.5-4
php-mongodb
Fixed versions: 1.11.1+1.9.2+1.7.5-4
php-mongodb
Fixed versions: 1.11.1+1.9.2+1.7.5-4
Complete source record
{
"id": "951c6c49a56643fa8534247d0546855524fd7f4aac3e109e091a6c9d87da92ad",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-32050",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2021-32050",
"summary": "Some MongoDB Drivers may erroneously publish events containing authentication-related data to a command listener configured by an application. The published events may contain security-sensitive data when specific authentication-related commands are executed. Without due care, an application may inadvertently expose this sensitive information, e.g., by writing it to a log file. This issue only arises if an application enables the command listener feature (this is not enabled by default). This issue affects the MongoDB C Driver 1.0.0 prior to 1.17.7, MongoDB PHP Driver 1.0.0 prior to 1.9.2, MongoDB Swift Driver 1.0.0 prior to 1.1.1, MongoDB Node.js Driver 3.6 prior to 3.6.10, MongoDB Node.js Driver 4.0 prior to 4.17.0 and MongoDB Node.js Driver 5.0 prior to 5.8.0. This issue also affects users of the MongoDB C++ Driver dependent on the C driver 1.0.0 prior to 1.17.7 (C++ driver prior to 3.7.0).",
"evidence": "osv:DEBIAN-CVE-2021-32050",
"products": [
{
"name": {
"value": "mongo-c-driver",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.18.0-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "mongo-c-driver",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.18.0-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "mongo-c-driver",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.18.0-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "node-mongodb",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.6.4+~cs11.13.19-2",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "php-mongodb",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.11.1+1.9.2+1.7.5-4",
"evidence": "/affected/4/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "php-mongodb",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.11.1+1.9.2+1.7.5-4",
"evidence": "/affected/5/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "php-mongodb",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.11.1+1.9.2+1.7.5-4",
"evidence": "/affected/6/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2021-32050",
"aliases": [
"DEBIAN-CVE-2021-32050"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.18.0-1"
}
]
}
],
"package": {
"name": "mongo-c-driver",
"purl": "pkg:deb/debian/mongo-c-driver?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-32050.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.18.0-1"
}
]
}
],
"package": {
"name": "mongo-c-driver",
"purl": "pkg:deb/debian/mongo-c-driver?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-32050.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.18.0-1"
}
]
}
],
"package": {
"name": "mongo-c-driver",
"purl": "pkg:deb/debian/mongo-c-driver?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-32050.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-mongodb",
"purl": "pkg:deb/debian/node-mongodb?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"3.6.4+~cs11.13.19-2"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-32050.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.11.1+1.9.2+1.7.5-4"
}
]
}
],
"package": {
"name": "php-mongodb",
"purl": "pkg:deb/debian/php-mongodb?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-32050.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.11.1+1.9.2+1.7.5-4"
}
]
}
],
"package": {
"name": "php-mongodb",
"purl": "pkg:deb/debian/php-mongodb?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-32050.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.11.1+1.9.2+1.7.5-4"
}
]
}
],
"package": {
"name": "php-mongodb",
"purl": "pkg:deb/debian/php-mongodb?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-32050.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:03:26.933957680Z",
"provider": "osv",
"upstream": [
"CVE-2021-32050"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-32050"
]
},
"related_cves": [
{
"value": "CVE-2021-32050",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 421549,
"published_at": "2023-08-29T16:15:08.423+00:00"
}