In OCaml before 4.14.3 and 5.x before 5.4.1, a buffer over-read in Marshal…
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Partial Red Hat: 5 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
- Fix · CNA OCaml (OCaml) Fixed in 4.14.3, 5.4.1
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 8 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 9 | Affected | No fix planned: Will not fix |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2026-28364
- 2026-10-03 Alias added: GHSA-g54x-7hpm-29q8
References
More Ocaml vulnerabilities
- TI-2018-07003 The caml_ba_deserialize function in byterun/bigarray.c in the standard library in OCaml… CVSS 3.0CRITICAL 9.8
- TI-2017-07154 Insufficient sanitisation in the OCaml compiler versions 4.04.0 and 4.04.1 allows… CVSS 3.0CRITICAL 9.8
- TI-2015-07299 OCaml before 4.03.0 does not properly handle sign extensions, which allows remote… CVSS 3.0CRITICAL 9.1
- TI-2017-07160 OCaml compiler allows attackers to have unspecified impact via unknown vectors, a similar… CVSS 3.0HIGH 7.8
- TI-2026-26640 Integer overflow in OCaml CVSS 3.1MEDIUM 5.9
Sources
- CVE-2026-28364 · CVE Program
- CVE-2026-28364 · NVD
- FIRST EPSS
- GHSA-g54x-7hpm-29q8 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-28364 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences