Out-of-bounds Read in Ocaml
CVE-2026-28364
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.9 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N.
EPSS exploit prediction
EPSS 0.002, 15.3th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Ocaml — versions 0, 5.0.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- Akshay-M-Singh/ocaml-marshal-vulnerability (last pushed 2026-10-05): I found an integer overflow that defeats OCaml's fix for CVE-2026-28364: heap memory disclosure and SIGBUS crashes via Marshal deserialization. PoCs, advisory, and proposed patch — fixed in OCaml 5.5…
References
This CVE has public exploit evidence. See the latest CVEs with public exploits.