JLSEC-2026-1503: In OCaml before 4.14.3 and 5.x before 5.4.1, a buffer over-read in Marshal deserialization ...
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
OCamlto a version that resolves this vulnerability.Fixed in 4.14.3 - Upgrade
Upgrade
OCamlto a version that resolves this vulnerability.Fixed in 5.4.1
Event History
Child vulnerabilities
Contains the following vulnerabilities.
Frequently Asked Questions
Which deployments are exposed?
Deployments using OCaml versions before 4.14.3 or 5.x versions before 5.4.1 are affected when they deserialize crafted Marshal data. The listed software is julia/ocaml_jll.
What does an attacker need to exploit this issue?
An attacker needs the ability to supply crafted Marshal data that reaches OCaml Marshal deserialization. The vulnerable readblock() function uses attacker-controlled lengths without bounds validation in memcpy() operations.
Is this exploitable remotely?
The issue can enable remote code execution through a multi-phase attack chain when crafted Marshal data is processed. The provided vector also indicates low attack complexity and low privileges required.