Skip to main content
← All vulnerabilities
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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.14.3, 5.4.1
1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • OCaml OCaml

    fixed in 4.14.3; From 5.0.0 · fixed in 5.4.1

References 3

GitHub · ocaml/security-advisories

osv.dev

GitHub · Akshay-M-Singh/ocaml-marshal-vulnerability