Summary
The MongoDB Python Driver, versions 3.11.0 up to but excluding 4.20.2, improperly checks TLS certificate revocation in its optional revocation-checking support (stapled OCSP responses). As a result, the client may accept a connection to a server presenting a revoked certificate that is still within its validity period and otherwise trusted by the client.
Per the CVSS vector, the attack is network-based, requires no authentication and no user interaction, but has high complexity: the attacker must operate the network endpoint the client connects to and hold a revoked but still-dated certificate trusted by the client.
Successful exploitation may disclose application credentials and other session data (high confidentiality impact) and cause the client to treat responses from that endpoint as genuine (high integrity impact). The vulnerability is not listed in the CISA KEV catalog.
Who is affected
Organizations whose Python applications use the MongoDB Python Driver (3.11.0 – <4.20.2) with TLS certificate revocation checking enabled.
What to do
- Upgrade the MongoDB Python Driver (pymongo) to version 4.20.2 or later.
- Inventory applications and environments using the driver and check the installed version (e.g. in dependency lists).
- Determine where TLS revocation-checking options are used and prioritize patching those systems.
- After upgrading, consider rotating credentials of applications that connected over untrusted networks.
- Follow the vendor's advisory (https://jira.mongodb.org/browse/PYTHON-6189) for further details.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- High
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- High impact
- Integrity
- High impact
- Availability
- None
Weakness type (CWE)
- CWE-299 Improper Check for Certificate Revocation
References
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.