Skip to main content

Ocaml CVE-2026-28364

HIGH
Buffer Over-read (CWE-126)
2026-02-27 cve@mitre.org
7.8
CVSS 3.1 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Buffer over-read prevention
This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv5 – Jun 30, 2026

Heap memory corruption in the OCaml runtime (before 4.14.3 and 5.x before 5.4.1) lets an attacker who can feed crafted Marshal-format data into an application's deserialization path read past buffer bounds and, through a multi-phase chain, achieve code execution. The flaw lives in the readblock() routine of runtime/intern.c, which copies blocks using attacker-controlled lengths without bounds checks. There is no public exploit identified at time of analysis and EPSS is very low (0.04%), but multiple vendors (SUSE, Red Hat) have shipped fixed packages.

Earlier versions of this analysis (4)
v4 Jun 30, 2026 - 05:14 cvss changed CVSS 7.8

Memory-corruption leading to remote code execution affects the OCaml runtime's Marshal deserializer (runtime/intern.c) in versions before 4.14.3 and 5.x before 5.4.1, where the readblock() routine performs unbounded memcpy() using attacker-controlled lengths. Any OCaml application that deserializes untrusted Marshal data can be driven from a buffer over-read into a multi-phase RCE chain. There is no public exploit identified at time of analysis, EPSS is very low (0.04%, 11th percentile), and the issue is not in CISA KEV; a vendor patch is available.

v3 Jun 30, 2026 - 05:13 cvss changed CVSS 7.8

Memory corruption in OCaml's Marshal deserialization runtime (runtime/intern.c) lets an attacker who can supply crafted serialized data to a vulnerable application reach remote code execution. It affects OCaml releases before 4.14.3 and 5.x before 5.4.1, where the readblock() function performs unbounded memcpy() using attacker-controlled length fields. No public exploit is identified at time of analysis and EPSS is low (0.04%), so risk is presently theoretical but the impact ceiling (full C/I/A loss) is high.

v2 Jun 30, 2026 - 05:12 cvss changed CVSS 7.8

Memory-corruption leading to remote code execution affects the OCaml runtime's Marshal deserialization in releases before 4.14.3 and 5.x before 5.4.1. The readblock() function in runtime/intern.c performs unbounded memcpy() operations driven by attacker-controlled length fields in crafted Marshal data, producing a buffer over-read (CWE-126) that an attacker can chain into code execution when an application deserializes untrusted Marshal input. EPSS is very low (0.04%, 11th percentile) with no public exploit identified at time of analysis and no CISA KEV listing, so this is a patch-soon-but-not-emergency issue concentrated in OCaml programs that deserialize attacker-supplied data.

v1 Mar 12, 2026 - 21:55 CVSS 7.9

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. [CVSS 7.9 HIGH]

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Know when Ocaml gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.1 HIGH

Reachable over the network when an app deserializes attacker Marshal data (AV:N/PR:N), but that non-default, discouraged code pattern is required, so AC:H; full RCE gives C/I/A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
SUSE 7.9 HIGH
AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
Red Hat 7.9 HIGH

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

7
Analysis Updated
Jun 30, 2026 - 05:15 vuln.today
v5 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:14 vuln.today
v4 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:13 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 30, 2026 - 05:12 vuln.today
v2 - CVSS changed
CVSS changed
Jun 30, 2026 - 03:24 NVD
7.9 (HIGH) 7.8 (HIGH)
Patch released
Apr 10, 2026 - 14:30 nvd
Patch available
CVE Published
Feb 27, 2026 - 04:16 nvd
HIGH 7.9

DescriptionNVD

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.

Executive ViewAI

Why It Matters

OCaml runtime versions 4.x and 5.x contain a memory corruption vulnerability (CVE-2026-28364) that permits remote code execution when applications deserialize untrusted data. Any organization with OCaml applications in production-particularly those handling external data feeds, research workflows, or infrastructure tools-faces direct risk to confidentiality, integrity, and availability. Patches are already available from major vendors (Red Hat, SUSE), establishing an immediate remediation requirement.

Recommended Action

Within 24 hours: Identify all systems and applications running OCaml; document versions against vulnerable ranges (4.14.2 and earlier; 5.0-5.4.0). Within 7 days: Deploy patched versions (OCaml 4.14.3 or 5.4.1) to production and all data-facing systems; prioritize applications with external deserialization paths. Within 30 days: Complete inventory remediation; audit logs for exploitation attempts; implement network-layer input validation on deserialization endpoints.

Business Impact: High
Compensating Controls

Apply vendor patch (OCaml 4.14.3 and 5.4.1+). Until patched: restrict Marshal deserialization to authenticated or trusted data sources, implement validation on all deserialized objects, and use network segmentation to limit attacker reach.

Threat Intelligence Overview

EPSS Score
0.0%
Top 89% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Insecure deserialization occurs when an application converts serialized data (a stream of bytes representing an object's state) back into a living object without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

Affected Products (CPE)NVD

cpe:2.3:a:ocaml:ocaml:*:*:*:*:*:*:*:*
cpe:2.3:a:ocaml:ocaml:*:*:*:*:*:*:*:*

More in Ocaml

View all
CVE-2017-9772 CRITICAL
9.8 Jun 23

Insufficient sanitisation in the OCaml compiler versions 4.04.0 and 4.04.1 allows external code to be executed with rais

CVE-2015-8869 CRITICAL
9.1 Jun 13

OCaml before 4.03.0 does not properly handle sign extensions, which allows remote attackers to conduct buffer overflow a

CVE-2018-9838 CRITICAL
9.8 Apr 06

The caml_ba_deserialize function in byterun/bigarray.c in the standard library in OCaml 4.06.0 has an integer overflow w

CVE-2026-89086 CRITICAL
9.1 Sep 10

Signature verification bypass in the OCaml jose library (ulrikstrid/ocaml-jose) before 0.11.0 lets attackers forge valid

CVE-2017-9779 HIGH
7.8 Sep 07

OCaml compiler allows attackers to have unspecified impact via unknown vectors, a similar issue to CVE-2017-9772 "but wi

CVE-2026-41082 HIGH
7.8 Apr 16

Arbitrary file write in OCaml opam before 2.5.1 allows a malicious package to escape its intended installation scope: a

CVE-2026-87734 HIGH
7.5 Sep 09

Remote denial of service in the utcp OCaml TCP userspace library before version 0.0.6 is possible via crafted out-of-ord

CVE-2026-89087 HIGH
7.3 Sep 10

Index mishandling in the OCaml cstruct library before 6.3.0 allows network-reachable attackers to trigger partial confid

CVE-2026-96609 HIGH
7.1 Sep 23

Denial of service in Robur Albatross (specifically the albatross-console component) versions 1.0.0 through 2.x before 2.

CVE-2026-87733 MEDIUM
6.2 Sep 09

ECDSA signature forgery is possible in mirage-crypto-ec before 2.2.0 for OCaml because the P256, P384, and P521 pub_of_o

CVE-2026-87732 MEDIUM
6.2 Sep 09

Authenticated decryption in mirage-crypto before 2.2.0 for OCaml violates the security invariant of AEAD schemes by writ

CVE-2026-87737 MEDIUM
5.9 Sep 09

Timing side-channel in mirage-crypto-ec before 2.4.0 for OCaml enables remote cryptographic key recovery by exploiting s

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Development Tools 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy