CVE-2026-28364
Received
Received - Intake
Buffer Over-Read in OCaml Marshal Enables Remote Code Execution
Publication date: 2026-02-27
Last updated on: 2026-03-06
Assigner: MITRE
Description
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| ocaml | ocaml | to 4.14.3 (exc) |
| ocaml | ocaml | From 5.0.0 (inc) to 5.4.1 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-126 | The product reads from a buffer using buffer access mechanisms such as indexes or pointers that reference memory locations after the targeted buffer. |