CVE-2026-45388

Published Jun 15, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
In OCaml-TLS before 2.1.0, the client implementation does insufficient checks of the certificate provided by the server, which allows impersonation with certificates that are not meant for server authentication (because of KeyUsage and ExtendedKeyUsage).

Analysis

AI-generated

Technical impact

The issue resides in the OCaml‑TLS client implementation before version 2.1.0. It fails to enforce certificate KeyUsage and ExtendedKeyUsage extensions when validating the server’s certificate. Consequently a malicious server may present a certificate that is technically valid but not intended for server authentication, leading the client to accept it as trustworthy and allowing the attacker to impersonate a legitimate server. This impersonation flaw can undermine the confidentiality and integrity of the data transmitted over TLS.

Affected Systems

This vulnerability affects the OCaml‑TLS library, specifically versions earlier than 2.1.0. The library is commonly used in OCaml applications that implement TLS communication. No vendor or product name is provided in the CNA data, so any project relying on a pre‑2.1.0 build of OCaml‑TLS is potentially susceptible.

Risk and Exploitability

The CVSS v3 score of 9.1 classifies it as critical, while the EPSS score indicates a very low but non‑zero likelihood of exploitation at this time. The vulnerability is not listed in CISA’s KEV catalogue. The attack vector is likely remote: an attacker can trigger the flaw simply by connecting to a client that uses the vulnerable library and presenting a crafted certificate. No privilege escalation is required on the client side; the weakness lies only in insecure validation logic.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the OCaml‑TLS library to version 2.1.0 or later, which implements proper KeyUsage and ExtendedKeyUsage checks for server certificates.
  • If updating the library is not immediately possible, restrict outgoing connections to pre‑verified server certificates or enhance the application’s host‑name validation logic to reject certificates lacking the correct key usage bits.
  • Monitor client connections for abnormal TLS handshake patterns that could indicate an attempted impersonation and investigate any unexpected certificate exchanges.

Generated by OpenCVE AI on June 17, 2026 at 23:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
References
History
Type Values Removed Values Added
Title OCaml‑TLS Insufficient Certificate Validation Enables Server Impersonation
Type Values Removed Values Added
Title OCaml‑TLS Insufficient Certificate Validation Enables Server Impersonation
Type Values Removed Values Added
Weaknesses CWE-295
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ocaml
Ocaml ocaml
Vendors & Products Ocaml
Ocaml ocaml
Type Values Removed Values Added
Description In OCaml-TLS before 2.1.0, the client implementation does insufficient checks of the certificate provided by the server, which allows impersonation with certificates that are not meant for server authentication (because of KeyUsage and ExtendedKeyUsage).
References
Weaknesses
  • CWE-295

    Improper Certificate Validation

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Jun 16, 2026, 1:57 PM
Reserved
May 12, 2026, 12:00 AM
Status
Deferred
Published
Jun 15, 2026, 8:16 PM
Modified
Jun 17, 2026, 10:51 AM