Skip to main content

OCaml-TLS CVE-2026-45388

| EUVDEUVD-2026-36764 CRITICAL
Improper Certificate Validation (CWE-295)
2026-06-15 mitre GHSA-rrgx-wgv5-5hf9
9.1
CVSS 3.1 · Vendor: mitre
Share

Severity by source

Vendor (mitre) PRIMARY
9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI
7.4 HIGH

Network-reachable TLS client with no auth or UI, but exploitation needs a MitM position and a trusted non-serverAuth certificate, justifying AC:H; impersonation breaks C and I, not A.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

3
Analysis Generated
Jun 16, 2026 - 15:30 vuln.today
CVSS changed
Jun 16, 2026 - 15:22 NVD
9.1 (CRITICAL)
CVE Published
Jun 15, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

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).

AnalysisAI

Server impersonation in OCaml-TLS before 2.1.0 allows a malicious TLS server to present a certificate not intended for server authentication and still be accepted by client code, enabling man-in-the-middle and impersonation attacks against any application linking the library as a TLS client. The client fails to validate KeyUsage and ExtendedKeyUsage extensions properly, breaking a core PKIX trust assumption. No public exploit identified at time of analysis and EPSS sits at 0.15% (4th percentile), but the CVSS 9.1 reflects the broad confidentiality and integrity impact on encrypted sessions.

Technical ContextAI

OCaml-TLS is a pure-OCaml implementation of the TLS protocol used by MirageOS and other OCaml ecosystem projects for both client and server TLS. The root cause maps to CWE-295 (Improper Certificate Validation): when validating a server's X.509 certificate chain, the client did not enforce that the leaf certificate's KeyUsage (e.g., digitalSignature/keyEncipherment) and ExtendedKeyUsage (e.g., id-kp-serverAuth, OID 1.3.6.1.5.5.7.3.1) actually permit TLS server authentication. As a result, certificates legitimately issued for other purposes - such as client authentication, code signing, S/MIME, or OCSP signing - could be reused by an attacker as if they were server certificates, undermining a key PKIX constraint that segregates certificate purposes within a single CA hierarchy.

RemediationAI

Upstream fix available in OCaml-TLS 2.1.0 - upgrade any application or unikernel that links ocaml-tls (and transitive consumers such as tls-mirage, tls-lwt, tls-async, http clients, and MirageOS images) to 2.1.0 or later and rebuild/redeploy, since this is a library-level fix that does not propagate via runtime patching. Consult the OSV record at https://osv.dev/vulnerability/OSEC-2026-06 and the NVD entry at https://nvd.nist.gov/vuln/detail/CVE-2026-45388 to confirm the patched release and any package-manager constraints (opam pins). Where immediate upgrade is not possible, compensating controls include pinning the expected server certificate or its SPKI in the application (certificate or public-key pinning, with the trade-off that certificate rotation requires a code/config update), restricting outbound TLS to a narrow allowlist of hosts reachable only over trusted network paths to reduce MitM opportunity, and operating affected clients only over VPN/IPsec tunnels to a trusted egress (which adds latency and operational complexity but eliminates opportunistic on-path attackers).

More in N A

View all
CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

CVE-2026-36356 CRITICAL POC
9.1 May 05

Unauthenticated remote OS command injection in MeiG Smart FORGE_SLT711 cellular gateway firmware MDM9607.LE.1.0-00110-ST

CVE-2026-31071 CRITICAL POC
9.1 May 19

Unauthenticated API access in LalanaChami Pharmacy Management System (commit 5c3d028) allows remote attackers to dump al

CVE-2025-66391 HIGH POC
8.8 Jun 17

In Citrix Cloud through 2025-11-10, an account with read-only access can trigger the beginning of a workflow for write o

CVE-2026-26740 HIGH POC
8.2 Mar 18

Giflib 5.2.2 contains a buffer overflow in the EGifGCBToExtension function that fails to validate allocated memory when

CVE-2025-60464 HIGH POC
7.8 Jun 25

Denial of service in GPAC's MP4Box multimedia tool (versions before 26.02.0) arises from a use-after-free in the gf_sei_

CVE-2026-36355 HIGH POC
7.7 May 05

Arbitrary kernel memory read/write in Realtek rtl819x Jungle SDK Wi-Fi driver allows local unprivileged attackers to acc

CVE-2025-60474 HIGH POC
7.5 Jun 24

Denial of service in GPAC's MP4Box/libgpac media importer (versions before 26.02.0) lets an attacker crash the tool by s

CVE-2026-38639 HIGH POC
7.5 Jun 26

An issue in the parse_month function (/time/strptime.rs) of relibc commit ab6a2e allows attackers to cause a Denial of S

CVE-2026-38641 HIGH POC
7.5 Jun 26

Denial of service in relibc (the Redox OS C standard library) at commit 61f42d allows attackers to crash a process by ge

CVE-2026-38637 HIGH POC
7.5 Jun 25

An issue in the pthread_rwlockattr_setpshared() function of relibc commit 61f42d allows attackers to cause a Denial of S

CVE-2026-38640 HIGH POC
7.5 Jun 25

Denial of service in relibc (the Redox OS C standard library implementation, commit 61f42d) lets attackers crash a proce

Share

CVE-2026-45388 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy