OCaml is a statically typed functional programming language whose vulnerability footprint centers on the core compiler and runtime, alongside PostgreSQL bindings that integrate the language into database workflows. The disclosures reflect low-level memory-safety concerns endemic to a native-code compiler and runtime: integer overflows, buffer over-reads, and improper memory-bounds enforcement, with a notable tendency toward critical-severity outcomes. Current exploitation activity and exposure counts are shown alongside this summary.
The number and severity of CVEs published that impact products developed by Ocaml over time
Signals from CVEs in this vendor scope (8 CVEs).
8 CVEs · Highest risk first
| CVE | Published | CVSS | Risk | KEV | Exploit |
|---|---|---|---|---|---|
CVE-2018-9838CRITICAL 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 a | Apr 6, 2018 | 9.8 | 33 | NO | NO |
CVE-2017-9772CRITICAL 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 CA | Jun 23, 2017 | 9.8 | 32 | NO | NO |
CVE-2026-28364HIGH 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 | Feb 27, 2026 | 7.8 | 30 | NO | NO |
CVE-2015-8869CRITICAL 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 | Jun 13, 2016 | 9.1 | 30 | NO | NO |
CVE-2026-41082HIGH In OCaml opam before 2.5.1, a .install field containing a destination filepath can use ../ to reach a parent directory. | Apr 16, 2026 | 7.8 | 27 | NO | NO |
CVE-2017-9779HIGH OCaml compiler allows attackers to have unspecified impact via unknown vectors, a similar issue to CVE-2017-9772 "but with much less impact." | Sep 7, 2017 | 7.8 | 24 | NO | NO |
CVE-2009-2943HIGH 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 | Oct 22, 2009 | 7.5 | 23 | NO | NO |
CVE-2026-34353MEDIUM In OCaml through 4.14.3, Bigarray.reshape allows an integer overflow, and resultant reading of arbitrary memory, when untrusted data is processed. | Mar 27, 2026 | 5.1 | 20 | NO | NO |
Signals from CVEs in this vendor scope (8 CVEs).
An overview of all social media posts that mention a CVE ID that affects a product developed by Ocaml.
Media articles that mention a CVE ID that affects a product developed by Ocaml — matched by CVE ID, not by vendor name.