Code execution via unchecked Marshal buffer length
Published Feb 27, 2026 · Updated Feb 27, 2026
Buffer over-read in OCaml Marshal deserialization before 4.14.3 and in 5.0.0 through 5.4.0 allows local users to execute arbitrary code. The runtime/intern.c readblock() function passes an attacker-controlled length to memcpy() without first verifying that the requested bytes remain inside the Marshal input buffer. Exploitation requires an application to deserialize untrusted data through Marshal.from_channel, Marshal.from_bytes, Marshal.from_string, or input_value, and resulting code runs with that application's privileges.
Summary
What happened
Buffer over-read in OCaml Marshal deserialization before 4.14.3 and in 5.0.0 through 5.4.0 allows local users to execute arbitrary code. The runtime/intern.c readblock() function passes an attacker-controlled length to memcpy() without first verifying that the requested bytes remain inside the Marshal input buffer. Exploitation requires an application to deserialize untrusted data through Marshal.from_channel, Marshal.from_bytes, Marshal.from_string, or input_value, and resulting code runs with that application's privileges.
The record
- CVE
- CVE-2026-28364
- Published
- Feb 27, 2026
- Updated
- Feb 27, 2026
- Vendor
- OCaml
- Product
- OCaml
- Classifications
- CWE-125, CWE-126
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 27, 2026CVE publishedPublication date reported by the CVE source.
- Feb 27, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0 <4.14.3
- Affected versionversion=5.0.0 <5.4.1
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo