CVE-2026-28364

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.

Affected Software

VendorProductVersion RangeStatus
OCamlOCaml0 < 4.14.3affected
OCamlOCaml5.0.0 < 5.4.1affected

Weaknesses

  • CWE-126: CWE-126 Buffer Over-read

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: partial

ocaml: OCaml: Remote code execution via buffer over-read in Marshal deserialization

Additional References

References