JLSEC-2026-1503: In OCaml before 4.14.3 and 5.x before 5.4.1, a buffer over-read in Marshal deserialization ...

Published Nov 23, 2026
·
Updated

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

1 affected component
julia/ocaml_jll*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade OCaml to a version that resolves this vulnerability.

    Fixed in 4.14.3
  2. Upgrade

    Upgrade OCaml to a version that resolves this vulnerability.

    Fixed in 5.4.1

Event History

Nov 23, 2026
Advisory Published
via OSV·08:39 PM
Data Sourced
via OSV·08:39 PM
DescriptionSeverityAffected Software

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203