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
- 1.1.2-2~ubuntu1, 1.1.5-1~build1, 1.11.1+1.9.2+1.7.5-4, 1.12.0+1.9.2+1.7.5-3, 1.12.0+1.9.2+1.7.5-4, 1.15.0+1.11.1+1.9.2+1.7.5-1build1, 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu1, 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu2, 1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3, 1.15.0-1, 1.15.1-1, 1.15.2-1, 1.16.0-1, 1.16.1-1, 1.16.1-1build1, 1.16.1-1build2, 1.16.1-1ubuntu0.1~esm1, 1.2.3-1build1, 1.21.0-1, 1.3.4-1build1, 1.5.5-1build1, 1.6.1-4, 1.6.1-4build1, 1.9.0+1.7.5-2build2, 2.0.0-1, 2.1.0-1, 2.1.7-0ubuntu1, 2.1.7-0ubuntu2, 3.3.1+~3.2.7-1, 3.3.2+~3.2.7-1, 3.3.3+~3.2.7-1, 3.3.5+~3.2.7-1, 3.4.0+~3.2.7-1, 3.4.1+~3.2.7-1, 3.5.0+~3.2.7-1, 3.5.2+~3.2.7-1, 3.5.3+~3.2.7-1, 3.5.5+~3.2.7-1, 3.6.4+~cs11.13.19-1, 3.6.4+~cs11.13.19-2
- Fixed versions
- Not specified
- CVEs
- CVE-2021-32050
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 00:54 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:UBUNTU-CVE-2021-32050
php-mongodb
Fixed versions: Not specified
php-mongodb
Fixed versions: Not specified
mongo-c-driver
Fixed versions: Not specified
node-mongodb
Fixed versions: Not specified
php-mongodb
Fixed versions: Not specified
node-mongodb
Fixed versions: Not specified
php-mongodb
Fixed versions: Not specified
node-mongodb
Fixed versions: Not specified
php-mongodb
Fixed versions: Not specified
node-mongodb
Fixed versions: Not specified
php-mongodb
Fixed versions: Not specified
php-mongodb
Fixed versions: Not specified
php-mongodb
Fixed versions: Not specified
Complete source record
{
"id": "c311c751352af1847dbd70008cf656babc77005186a68c9549df646e2c3268df",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2021-32050",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-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:UBUNTU-CVE-2021-32050",
"products": [
{
"name": {
"value": "php-mongodb",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.1.2-2~ubuntu1",
"evidence": "/affected/0/versions"
},
{
"value": "1.1.5-1~build1",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "php-mongodb",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.2.3-1build1",
"evidence": "/affected/1/versions"
},
{
"value": "1.3.4-1build1",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "mongo-c-driver",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.15.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.15.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.15.2-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.16.0-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.16.1-1",
"evidence": "/affected/2/versions"
},
{
"value": "1.16.1-1build1",
"evidence": "/affected/2/versions"
},
{
"value": "1.16.1-1build2",
"evidence": "/affected/2/versions"
},
{
"value": "1.16.1-1ubuntu0.1~esm1",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "node-mongodb",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.3.1+~3.2.7-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.3.2+~3.2.7-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.3.3+~3.2.7-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.3.5+~3.2.7-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.4.0+~3.2.7-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.4.1+~3.2.7-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.5.0+~3.2.7-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.5.2+~3.2.7-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.5.3+~3.2.7-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.5.5+~3.2.7-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "php-mongodb",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.5.5-1build1",
"evidence": "/affected/4/versions"
},
{
"value": "1.6.1-4",
"evidence": "/affected/4/versions"
},
{
"value": "1.6.1-4build1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "node-mongodb",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.6.4+~cs11.13.19-1",
"evidence": "/affected/5/versions"
},
{
"value": "3.6.4+~cs11.13.19-2",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "php-mongodb",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.9.0+1.7.5-2build2",
"evidence": "/affected/6/versions"
},
{
"value": "1.11.1+1.9.2+1.7.5-4",
"evidence": "/affected/6/versions"
},
{
"value": "1.12.0+1.9.2+1.7.5-3",
"evidence": "/affected/6/versions"
},
{
"value": "1.12.0+1.9.2+1.7.5-4",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "node-mongodb",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.6.4+~cs11.13.19-2",
"evidence": "/affected/7/versions"
}
]
},
{
"name": {
"value": "php-mongodb",
"evidence": "/affected/8/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.15.0+1.11.1+1.9.2+1.7.5-1build1",
"evidence": "/affected/8/versions"
},
{
"value": "1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu1",
"evidence": "/affected/8/versions"
},
{
"value": "1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu2",
"evidence": "/affected/8/versions"
},
{
"value": "1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3",
"evidence": "/affected/8/versions"
}
]
},
{
"name": {
"value": "node-mongodb",
"evidence": "/affected/9/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.6.4+~cs11.13.19-2",
"evidence": "/affected/9/versions"
}
]
},
{
"name": {
"value": "php-mongodb",
"evidence": "/affected/10/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "1.21.0-1",
"evidence": "/affected/10/versions"
},
{
"value": "2.0.0-1",
"evidence": "/affected/10/versions"
},
{
"value": "2.1.0-1",
"evidence": "/affected/10/versions"
}
]
},
{
"name": {
"value": "php-mongodb",
"evidence": "/affected/11/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1.7-0ubuntu1",
"evidence": "/affected/11/versions"
},
{
"value": "2.1.7-0ubuntu2",
"evidence": "/affected/11/versions"
}
]
},
{
"name": {
"value": "php-mongodb",
"evidence": "/affected/12/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.1.0-1",
"evidence": "/affected/12/versions"
},
{
"value": "2.1.7-0ubuntu1",
"evidence": "/affected/12/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2021-32050",
"aliases": [
"UBUNTU-CVE-2021-32050"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:N/A:N"
},
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-mongodb",
"purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"1.1.2-2~ubuntu1",
"1.1.5-1~build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-mongodb",
"binary_version": "1.1.5-1~build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-mongodb",
"purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"1.2.3-1build1",
"1.3.4-1build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-mongodb",
"binary_version": "1.3.4-1build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "mongo-c-driver",
"purl": "pkg:deb/ubuntu/mongo-c-driver?arch=source&distro=esm-apps%2Ffocal",
"ecosystem": "Ubuntu:Pro:20.04:LTS"
},
"versions": [
"1.15.0-1",
"1.15.1-1",
"1.15.2-1",
"1.16.0-1",
"1.16.1-1",
"1.16.1-1build1",
"1.16.1-1build2",
"1.16.1-1ubuntu0.1~esm1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libbson-1.0-0",
"binary_version": "1.16.1-1ubuntu0.1~esm1"
},
{
"binary_name": "libmongoc-1.0-0",
"binary_version": "1.16.1-1ubuntu0.1~esm1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-mongodb",
"purl": "pkg:deb/ubuntu/node-mongodb?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"3.3.1+~3.2.7-1",
"3.3.2+~3.2.7-1",
"3.3.3+~3.2.7-1",
"3.3.5+~3.2.7-1",
"3.4.0+~3.2.7-1",
"3.4.1+~3.2.7-1",
"3.5.0+~3.2.7-1",
"3.5.2+~3.2.7-1",
"3.5.3+~3.2.7-1",
"3.5.5+~3.2.7-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-mongodb",
"binary_version": "3.5.5+~3.2.7-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-mongodb",
"purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"1.5.5-1build1",
"1.6.1-4",
"1.6.1-4build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-mongodb",
"binary_version": "1.6.1-4build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-mongodb",
"purl": "pkg:deb/ubuntu/node-mongodb?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"3.6.4+~cs11.13.19-1",
"3.6.4+~cs11.13.19-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-mongodb",
"binary_version": "3.6.4+~cs11.13.19-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-mongodb",
"purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"1.9.0+1.7.5-2build2",
"1.11.1+1.9.2+1.7.5-4",
"1.12.0+1.9.2+1.7.5-3",
"1.12.0+1.9.2+1.7.5-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-mongodb",
"binary_version": "1.12.0+1.9.2+1.7.5-4"
},
{
"binary_name": "php8.1-mongodb",
"binary_version": "1.12.0+1.9.2+1.7.5-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-mongodb",
"purl": "pkg:deb/ubuntu/node-mongodb?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"3.6.4+~cs11.13.19-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-mongodb",
"binary_version": "3.6.4+~cs11.13.19-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-mongodb",
"purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"1.15.0+1.11.1+1.9.2+1.7.5-1build1",
"1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu1",
"1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu2",
"1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-mongodb",
"binary_version": "1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3"
},
{
"binary_name": "php8.3-mongodb",
"binary_version": "1.15.0+1.11.1+1.9.2+1.7.5-1ubuntu3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "node-mongodb",
"purl": "pkg:deb/ubuntu/node-mongodb?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"3.6.4+~cs11.13.19-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "node-mongodb",
"binary_version": "3.6.4+~cs11.13.19-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-mongodb",
"purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"1.21.0-1",
"2.0.0-1",
"2.1.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-mongodb",
"binary_version": "2.1.0-1"
},
{
"binary_name": "php8.4-mongodb",
"binary_version": "2.1.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-mongodb",
"purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"2.1.7-0ubuntu1",
"2.1.7-0ubuntu2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-mongodb",
"binary_version": "2.1.7-0ubuntu2"
},
{
"binary_name": "php8.5-mongodb",
"binary_version": "2.1.7-0ubuntu2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "php-mongodb",
"purl": "pkg:deb/ubuntu/php-mongodb?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"2.1.0-1",
"2.1.7-0ubuntu1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2021/UBUNTU-CVE-2021-32050.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "php-mongodb",
"binary_version": "2.1.7-0ubuntu1"
},
{
"binary_name": "php8.5-mongodb",
"binary_version": "2.1.7-0ubuntu1"
}
]
}
}
],
"modified": "2026-10-17T12:56:15.134113134Z",
"provider": "osv",
"upstream": [
"CVE-2021-32050"
],
"references": [
"https://ubuntu.com/security/CVE-2021-32050",
"https://jira.mongodb.org/browse/SWIFT-1229",
"https://jira.mongodb.org/browse/CDRIVER-3797",
"https://jira.mongodb.org/browse/PHPC-1869",
"https://jira.mongodb.org/browse/NODE-3356",
"https://jira.mongodb.org/browse/CXX-2028",
"https://www.cve.org/CVERecord?id=CVE-2021-32050"
]
},
"related_cves": [
{
"value": "CVE-2021-32050",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 355039,
"published_at": "2023-08-29T16:15:00+00:00"
}