7.9High

CVE-2026-28364

OCaml OCaml; Red Hat Red Hat Enterprise Linux 10; Red Hat Red Hat Enterprise Linux 6; Red Hat Red Hat Enterprise Linux 7 Published: (8 months ago)

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.

Weakness (CWE): CWE-126CWE-125

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
OCaml OCaml < 4.14.3, 5.0.0 – < 5.4.1
Red Hat Red Hat Enterprise Linux 10 all versions
Red Hat Red Hat Enterprise Linux 6 —
Red Hat Red Hat Enterprise Linux 7 all versions
Red Hat Red Hat Enterprise Linux 8 all versions
Red Hat Red Hat Enterprise Linux 9 all versions
Red Hat Red Hat Hardened Images —

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:ocaml:ocaml:*:*:*:*:*:*:*:* < 4.14.3
  • cpe:2.3:a:ocaml:ocaml:*:*:*:*:*:*:*:* ≥ 5.0.0 < 5.4.1