The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-28364

CVE-2026-28364: OCaml Marshal Deserialization RCE Flaw

CVE-2026-28364 is a buffer over-read vulnerability in OCaml's Marshal deserialization that enables remote code execution. Affecting versions before 4.14.3 and 5.x before 5.4.1, this post covers technical details, impact, and mitigation.

Published: March 6, 2026

CVE-2026-28364 Overview

A buffer over-read vulnerability has been identified in OCaml's Marshal deserialization functionality (runtime/intern.c) affecting versions before 4.14.3 and 5.x before 5.4.1. This vulnerability enables remote code execution through a multi-phase attack chain. The flaw stems from missing bounds validation in the readblock() function, which performs unbounded memcpy() operations using attacker-controlled lengths from crafted Marshal data.

Critical Impact

Attackers can exploit this vulnerability to execute arbitrary code by crafting malicious Marshal data that triggers buffer over-read conditions, potentially leading to full system compromise.

Affected Products

  • OCaml versions before 4.14.3
  • OCaml 5.x versions before 5.4.1
  • Applications using OCaml Marshal deserialization with untrusted input

Discovery Timeline

  • 2026-02-27 - CVE CVE-2026-28364 published to NVD
  • 2026-02-27 - Last updated in NVD database

Technical Details for CVE-2026-28364

Vulnerability Analysis

This vulnerability is classified as CWE-126 (Buffer Over-read), occurring within OCaml's Marshal deserialization mechanism. The vulnerability resides in the readblock() function within runtime/intern.c, where insufficient bounds checking allows attackers to specify arbitrary length values in crafted Marshal data.

When processing serialized data, the readblock() function copies data using memcpy() without properly validating that the specified length falls within the bounds of allocated memory. An attacker can craft malicious Marshal data containing oversized length fields, causing the function to read beyond the intended buffer boundaries. This out-of-bounds read can expose sensitive memory contents and, through a multi-phase attack chain, enable remote code execution.

The local attack vector requires an attacker to deliver crafted Marshal data to a target application, either through direct input or by compromising data sources that the application deserializes.

Root Cause

The root cause is the absence of proper bounds validation in the readblock() function before performing memcpy() operations. The function trusts length values embedded in the Marshal data without verifying they correspond to legitimate buffer sizes, creating an exploitable condition when processing malicious input.

Attack Vector

The attack requires local access and involves delivering specially crafted Marshal data to an OCaml application that deserializes untrusted input. The attacker constructs Marshal data with manipulated length fields that, when processed by the vulnerable readblock() function, cause the application to read beyond allocated buffer boundaries. This can leak sensitive information from adjacent memory regions and potentially be chained with other techniques to achieve code execution.

The vulnerability mechanism involves the readblock() function receiving attacker-controlled length parameters from the Marshal data stream. Without validation, these lengths are passed directly to memcpy(), causing reads that extend past the source buffer's boundaries. For detailed technical information, see the GitHub Security Advisory OSEC-2026-01.

Detection Methods for CVE-2026-28364

Indicators of Compromise

  • Unusual memory access patterns in OCaml applications performing deserialization
  • Crash dumps or core files indicating out-of-bounds memory reads in runtime/intern.c
  • Application crashes occurring during Marshal data processing
  • Anomalous Marshal data files with unusually large or malformed length fields

Detection Strategies

  • Monitor for abnormal process behavior in OCaml applications handling external data
  • Implement memory safety monitoring tools to detect out-of-bounds read attempts
  • Analyze application logs for deserialization errors or unexpected terminations
  • Deploy runtime application self-protection (RASP) solutions to detect exploitation attempts

Monitoring Recommendations

  • Enable verbose logging for applications that deserialize Marshal data from external sources
  • Implement file integrity monitoring on data files processed by OCaml applications
  • Set up alerting for crash events in production OCaml services
  • Monitor network traffic for unusually large or malformed data payloads targeting OCaml services

How to Mitigate CVE-2026-28364

Immediate Actions Required

  • Upgrade OCaml to version 4.14.3 or later for the 4.x branch
  • Upgrade OCaml 5.x installations to version 5.4.1 or later
  • Audit applications for use of Marshal deserialization with untrusted input
  • Implement input validation for any external data sources processed by OCaml applications

Patch Information

OCaml has released security patches addressing this vulnerability. Users should upgrade to OCaml 4.14.3 for the 4.x series or OCaml 5.4.1 for the 5.x series. The patches add proper bounds validation to the readblock() function in runtime/intern.c to prevent the buffer over-read condition.

For additional details, refer to the OSV Vulnerability Database entry for OSEC-2026-01.

Workarounds

  • Avoid using Marshal deserialization on untrusted or externally-sourced data
  • Implement strict input validation and sanitization before deserialization
  • Use alternative serialization formats with built-in safety checks where possible
  • Isolate OCaml applications processing external data in sandboxed environments
bash
# Check current OCaml version
ocaml --version

# Update OCaml via opam (recommended)
opam update
opam switch create 4.14.3  # For 4.x branch
# or
opam switch create 5.4.1   # For 5.x branch

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechOcaml

  • SeverityHIGH

  • CVSS Score7.9

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-126
  • Technical References
  • GitHub Security Advisory OSEC-2026-01

  • OSV Vulnerability OSEC-2026-01
  • Related CVEs
  • CVE-2026-34353: OCaml Bigarray Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English