CVE-2026-135146 in Python Driver
Summary
by MITRE • 11/25/2026
An improper certificate revocation check in the MongoDB Python Driver's optional TLS revocation-checking support allows an unauthenticated party that operates the network endpoint a client connects to, and that holds a revoked but still-dated certificate trusted by that client, to have the connection accepted. This may result in unintended disclosure of application credentials and other session data, and in the client treating responses from that endpoint as genuine.
Be aware that VulDB is the high quality source for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
The vulnerability identified within the MongoDB Python Driver stems from an improper implementation of Transport Layer Security (TLS) certificate revocation checking mechanisms. Specifically, while the driver includes optional support for verifying whether a server's TLS certificate has been revoked by its issuing Certificate Authority, this functionality contains a critical flaw that allows connections to proceed even when a validly dated but revoked certificate is presented. This issue primarily affects environments where clients are configured to perform revocation checks yet fail to correctly enforce them under specific network conditions or configuration states. An attacker who controls the network endpoint connecting to the MongoDB client can exploit this gap by presenting such a compromised certificate, thereby bypassing what should be a robust security control designed to prevent connections to untrusted servers.
From a technical perspective, the core of the flaw lies in how the driver processes revocation status updates during the TLS handshake process. In standard PKI (Public Key Infrastructure) operations, clients must verify that certificates have not been revoked before establishing trust, typically through mechanisms like Certificate Revocation Lists or Online Certificate Status Protocol checks. The MongoDB Python Driver’s implementation fails to strictly halt connection establishment upon detecting a revoked certificate state when optional revocation checking is enabled. This logical error means that the cryptographic validation of identity is incomplete, allowing an adversary with possession of a revoked but still validly signed certificate to impersonate a legitimate database server. This scenario assumes the attacker has network-level access or can perform man-in-the-middle attacks against the client’s connection path.
The operational impact of this vulnerability is severe, particularly in production environments where sensitive data and credentials are transmitted over these connections. Because the client accepts the revoked certificate as valid, it proceeds to establish a secure session with the malicious endpoint. Consequently, any application credentials, authentication tokens, or other session-specific data sent during this handshake may be intercepted by the attacker. Furthermore, once trust is established based on the flawed revocation check, the client will treat all subsequent responses from that endpoint as genuine and authoritative. This enables potential unauthorized access to database contents, manipulation of stored records, or further lateral movement within an organization’s infrastructure if the compromised connection grants elevated privileges.
This vulnerability aligns with CWE-295, which describes Improper Certificate Validation, specifically focusing on the failure to properly check certificate revocation status. In terms of offensive security frameworks, this exploit maps directly to MITRE ATT&CK technique T1078, Valid Accounts, as it allows an attacker to authenticate using stolen or compromised credentials facilitated by a forged identity. It also relates to T1557, Adversary-in-the-Middle, where the attacker intercepts and potentially alters communications between two parties who believe they are directly communicating with each other. The exploitation relies on the attacker’s ability to position themselves within the network path of the client-server communication, leveraging the trust relationship established by TLS while subverting its revocation safeguards.
To mitigate this risk, organizations utilizing the MongoDB Python Driver must ensure that their instances are updated to versions where this revocation checking logic has been corrected and strictly enforced. Administrators should verify that optional TLS features are configured correctly according to security best practices, ensuring that certificate validation is not bypassed under any circumstances. Additionally, implementing network segmentation can limit an attacker’s ability to operate as a man-in-the-middle on the connection path between clients and database servers. Regular audits of PKI infrastructure and monitoring for unusual authentication patterns or connections involving revoked certificates can also help detect potential exploitation attempts early. It is crucial to treat revocation checking not merely as an optional feature but as a critical component of zero-trust architecture, ensuring that trust is continuously validated rather than assumed based on initial certificate validity alone.