ocaml CVE Vulnerabilities & Metrics

Focus on ocaml vulnerabilities and metrics.

Last updated: 08 Mar 2026, 23:25 UTC

About ocaml Security Exposure

This page consolidates all known Common Vulnerabilities and Exposures (CVEs) associated with ocaml. We track both calendar-based metrics (using fixed periods) and rolling metrics (using gliding windows) to give you a comprehensive view of security trends and risk evolution. Use these insights to assess risk and plan your patching strategy.

For a broader perspective on cybersecurity threats, explore the comprehensive list of CVEs by vendor and product. Stay updated on critical vulnerabilities affecting major software and hardware providers.

Global CVE Overview

Total ocaml CVEs: 5
Earliest CVE date: 22 Oct 2009, 16:30 UTC
Latest CVE date: 27 Feb 2026, 04:16 UTC

Latest CVE reference: CVE-2026-28364

Rolling Stats

30-day Count (Rolling): 1
365-day Count (Rolling): 1

Calendar-based Variation

Calendar-based Variation compares a fixed calendar period (e.g., this month versus the same month last year), while Rolling Growth Rate uses a continuous window (e.g., last 30 days versus the previous 30 days) to capture trends independent of calendar boundaries.

Variations & Growth

Month Variation (Calendar): 0%
Year Variation (Calendar): 0%

Month Growth Rate (30-day Rolling): 0.0%
Year Growth Rate (365-day Rolling): 0.0%

Monthly CVE Trends (current vs previous Year)

Annual CVE Trends (Last 20 Years)

Critical ocaml CVEs (CVSS ≥ 9) Over 20 Years

CVSS Stats

Average CVSS: 6.43

Max CVSS: 10.0

Critical CVEs (≥9): 1

CVSS Range vs. Count

Range Count
0.0-3.9 1
4.0-6.9 1
7.0-8.9 3
9.0-10.0 1

CVSS Distribution Chart

Top 5 Highest CVSS ocaml CVEs

These are the five CVEs with the highest CVSS scores for ocaml, sorted by severity first and recency.

All CVEs for ocaml

CVE-2026-28364 ocaml vulnerability CVSS: 0 27 Feb 2026, 04:16 UTC

In OCaml before 4.14.3 and 5.x before 5.4.1, a buffer over-read in Marshal deserialization (runtime/intern.c) enables remote code execution through a multi-phase attack chain. The vulnerability stems from missing bounds validation in the readblock() function, which performs unbounded memcpy() operations using attacker-controlled lengths from crafted Marshal data.

CVE-2018-9838 ocaml vulnerability CVSS: 7.5 06 Apr 2018, 18:29 UTC

The caml_ba_deserialize function in byterun/bigarray.c in the standard library in OCaml 4.06.0 has an integer overflow which, in situations where marshalled data is accepted from an untrusted source, allows remote attackers to cause a denial of service (memory corruption) or possibly execute arbitrary code via a crafted object.

CVE-2017-9779 ocaml vulnerability CVSS: 7.2 07 Sep 2017, 14:29 UTC

OCaml compiler allows attackers to have unspecified impact via unknown vectors, a similar issue to CVE-2017-9772 "but with much less impact."

CVE-2017-9772 ocaml vulnerability CVSS: 10.0 23 Jun 2017, 20:29 UTC

Insufficient sanitisation in the OCaml compiler versions 4.04.0 and 4.04.1 allows external code to be executed with raised privilege in binaries marked as setuid, by setting the CAML_CPLUGINS, CAML_NATIVE_CPLUGINS, or CAML_BYTE_CPLUGINS environment variable.

CVE-2015-8869 ocaml vulnerability CVSS: 6.4 13 Jun 2016, 19:59 UTC

OCaml before 4.03.0 does not properly handle sign extensions, which allows remote attackers to conduct buffer overflow attacks or obtain sensitive information as demonstrated by a long string to the String.copy function.

CVE-2009-2943 ocaml vulnerability CVSS: 7.5 22 Oct 2009, 16:30 UTC

The postgresql-ocaml bindings 1.5.4, 1.7.0, and 1.12.1 for PostgreSQL libpq do not properly support the PQescapeStringConn function, which might allow remote attackers to leverage escaping issues involving multibyte character encodings.