Summary
The MongoDB C Driver does not verify that the party signing a supplied certificate revocation status (OCSP) response is authorized to answer for the certificate being checked (CWE-295, Improper Certificate Validation). As a result, the client may accept a revoked certificate as valid.
Per the CVSS vector (9.1, critical), the attack is network-based, low complexity, and requires no authentication or user interaction. The attacker must operate the TLS endpoint the client connects to, for example a server presenting a revoked certificate.
This may lead to unintended disclosure of database traffic between the application and the database (high confidentiality impact) and loss of the revocation decision (high integrity impact). Availability is not affected. The vulnerability is not listed in the CISA KEV catalog.
Who is affected
Organizations whose applications use MongoDB C Driver versions 1.18.0 to before 1.30.17 or 2.0.0 to before 2.5.10 for TLS connections to MongoDB servers.
What to do
- Upgrade MongoDB C Driver to version 1.30.17 (1.x branch) or 2.5.10 (2.x branch) or later.
- Inventory applications and dependencies (including other language drivers and distribution packages embedding libmongoc) to determine whether affected versions are in use.
- Rebuild and redeploy applications that statically bundle the driver.
- Follow the vendor's official advisory for details and any mitigations: https://jira.mongodb.org/browse/CDRIVER-6500.
Affected products and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- 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-295 Improper Certificate Validation
References
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.