CVE-2026-135146
Description
A flaw was found in PyMongo, the MongoDB Python Driver. When optional OCSP-based TLS revocation checking is enabled, PyMongo can accept a stapled OCSP Good response that does not apply to the presented server certificate. An unauthenticated attacker who controls the network endpoint a client connects to, and who presents a revoked but otherwise trusted certificate with a valid OCSP response for a different certificate, can cause the client to accept the connection. This may disclose application credentials or session data and cause the client to treat responses from that endpoint as genuine.
Statement
Red Hat rates this vulnerability as Important. Exploitation requires PyMongo's optional OCSP revocation-checking support to be in use and requires an attacker-controlled endpoint to present a revoked but otherwise trusted certificate with a stapled OCSP Good response for a different certificate. Successful exploitation can expose credentials or session data sent by the client and can cause the client to trust responses from the attacker-controlled endpoint. Availability impact is not expected.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 7.4 | N/A | 7.4 |
| Attack Vector | Network | N/A | Network |
| Attack Complexity | High | N/A | High |
| Privileges Required | None | N/A | None |
| User Interaction | None | N/A | None |
| Scope | Unchanged | N/A | Unchanged |
| Confidentiality | High | N/A | High |
| Integrity Impact | High | N/A | High |
| Availability Impact | None | N/A | None |
Vector
Red Hat: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
cve.org: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Red Hat CVSS v3 Score Explanation
RH score follows the CVEORG v3.1 vector. Attack complexity is High because exploitation requires optional PyMongo OCSP revocation checking to be enabled and a revoked but otherwise trusted certificate stapled with a valid OCSP response for a different certificate. Confidentiality and integrity impacts are High due to possible credential/session disclosure and trusted responses from the attacker-controlled endpoint; availability impact is None.
Understanding the Weakness (CWE)
Access Control
Technical Impact: Gain Privileges or Assume Identity
Trust may be assigned to an untrusted entity who somehow obtained the certificate, i.e., the entity is not who it claims to be.
Integrity,Other
Technical Impact: Other
Data from an untrusted (and possibly malicious) source may be integrated.
Confidentiality
Technical Impact: Read Application Data
Data may be disclosed to an untrusted entity that obtained access to the certificate, thereby impersonating a trusted entity, resulting in information disclosure.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.