A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI 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-9521

CVE-2026-9521: Bitsery Library RCE Vulnerability

CVE-2026-9521 is a remote code execution vulnerability in Bitsery library up to version 5.2.4 caused by improper input validation. This article covers the technical details, affected versions, and mitigation steps.

Published: May 28, 2026

CVE-2026-9521 Overview

CVE-2026-9521 affects the fraillt/bitsery C++ serialization library in versions up to and including 5.2.4. The flaw resides in the loadFromSharedState function within include/bitsery/ext/std_smart_ptr.h. The library performs improper validation of the specified input type when reconstructing shared polymorphic smart pointers during deserialization [CWE-20]. An attacker can trigger the issue remotely by supplying crafted serialized data to an application that consumes untrusted bitsery streams. Public disclosure of the exploit details has occurred, and the maintainer addressed the issue in version 5.2.5 via commit 66d16516e24893bebc1c8af52bf2fe9ad0735061.

Critical Impact

Remote attackers can supply crafted serialized payloads that bypass type validation in shared smart pointer reconstruction, leading to limited confidentiality, integrity, and availability impact in applications embedding bitsery.

Affected Products

  • fraillt/bitsery versions up to and including 5.2.4
  • C++ applications using include/bitsery/ext/std_smart_ptr.h for polymorphic shared pointer deserialization
  • Downstream projects vendoring bitsery prior to release v5.2.5

Discovery Timeline

  • 2026-05-26 - CVE-2026-9521 published to the National Vulnerability Database
  • 2026-05-26 - Last updated in NVD database

Technical Details for CVE-2026-9521

Vulnerability Analysis

The vulnerability is an improper input validation issue in the deserialization path for shared polymorphic smart pointers. The loadFromSharedState template in std_smart_ptr.h reinterpreted a pointer stored in shared state directly to the requested element type. Because the library did not distinguish between polymorphic and non-polymorphic shared-state reconstruction, an attacker controlling the serialized payload could induce a type mismatch between the runtime object and the requested TElement cast.

Applications that deserialize untrusted bitsery streams containing shared pointers to polymorphic class hierarchies are exposed. The downstream impact depends on how the resulting std::shared_ptr<TElement> is used by host code, but the cast occurs without verifying that the stored object derives from the requested element type.

Root Cause

The root cause is a missing separation between polymorphic and non-polymorphic shared-pointer reload paths. A single loadFromSharedState handler performed a reinterpret_cast<TElement*> on the raw pointer pulled from shared state, with no validation that the stored type matched the expected element type. When polymorphic objects participated in shared state, the resulting std::shared_ptr aliased memory under an incorrect static type.

Attack Vector

Exploitation requires the target application to deserialize attacker-supplied bitsery data over a network channel, file, or IPC boundary. No authentication or user interaction is required at the library layer. The attacker crafts a serialized payload that references a shared polymorphic object, causing the vulnerable loadFromSharedState to materialize a std::shared_ptr<TElement> aliasing an object of an incompatible type.

c
     state.obj = std::shared_ptr<TElement>(obj);
   }
 
+  static void saveToSharedStatePolymorphic(TSharedState& state, T& obj)
+  {
+    state.obj = std::shared_ptr<TElement>(obj);
+  }
+
   static void loadFromSharedState(TSharedState& state, T& obj)
   {
     // reinterpret_pointer_cast is only since c++17
-    auto p = reinterpret_cast<TElement*>(state.obj.get());
+    auto v = state.obj.get();
+    auto p = reinterpret_cast<TElement*>(v);
+    obj = std::shared_ptr<TElement>(state.obj, p);
+  }
+
+  static void loadFromSharedStatePolymorphic(TSharedState& state, T& obj)
+  {
+    // TODO Fix pointer addresses in case objects are deserialized using
+    // different bases
+
+    // reinterpret_pointer_cast is only since c++17
+    auto v = state.obj.get();
+    auto p = reinterpret_cast<TElement*>(v);
     obj = std::shared_ptr<TElement>(state.obj, p);
   }
 };

Source: GitHub Bitsery Commit 66d1651. The patch introduces a dedicated loadFromSharedStatePolymorphic path so polymorphic shared-state reconstruction is handled separately from the non-polymorphic case.

Detection Methods for CVE-2026-9521

Indicators of Compromise

  • Applications linking against bitsery versions <= 5.2.4 that deserialize untrusted input over network or file boundaries.
  • Unexpected crashes, type confusion errors, or memory corruption near calls into bitsery::ext::StdSmartPtr deserialization frames.
  • Anomalous payload patterns targeting bitsery-encoded RPC or persistence formats containing shared polymorphic pointers.

Detection Strategies

  • Perform a software composition analysis (SCA) scan to identify embedded copies of bitsery at or below version 5.2.4 across build artifacts and container images.
  • Review source trees for direct use of loadFromSharedState in std_smart_ptr.h and confirm the library version in use.
  • Inspect crash telemetry and core dumps for failures originating in shared smart pointer reload paths within bitsery.

Monitoring Recommendations

  • Monitor application logs and crash reporting for deserialization errors in services that consume bitsery-encoded data from external sources.
  • Track outbound and inbound traffic volumes on services that accept bitsery payloads to identify unusual deserialization activity.
  • Alert on new third-party dependency drift that reintroduces vulnerable bitsery versions during builds.

How to Mitigate CVE-2026-9521

Immediate Actions Required

  • Upgrade fraillt/bitsery to version 5.2.5 or later in all affected build pipelines and container images.
  • Rebuild and redeploy any binaries that statically link or vendor bitsery to ensure the patched code is in effect.
  • Audit application interfaces that accept bitsery-serialized data and restrict them to trusted callers until upgrades complete.

Patch Information

The fix is included in bitsery v5.2.5, released on 2025-10-09. The patch commit hash is 66d16516e24893bebc1c8af52bf2fe9ad0735061 and introduces a dedicated loadFromSharedStatePolymorphic handler for polymorphic shared smart pointer reconstruction. See the GitHub Bitsery Release Tag v5.2.5 and the GitHub Changelog for Bitsery for release notes.

Workarounds

  • Restrict bitsery deserialization endpoints to authenticated, trusted peers via network controls and mutual TLS.
  • Avoid passing untrusted serialized data through code paths that materialize shared polymorphic smart pointers until the upgrade is applied.
  • Add input size and structure validation layers in front of bitsery decoders to reject malformed or oversized payloads.
bash
# Update vendored dependency to the patched release
git -C third_party/bitsery fetch --tags
git -C third_party/bitsery checkout v5.2.5

# Verify the patch commit is present
git -C third_party/bitsery log --oneline | grep 66d16516e24893bebc1c8af52bf2fe9ad0735061

# Rebuild downstream artifacts
cmake --build build --clean-first

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechBitsery

  • SeverityLOW

  • CVSS Score2.9

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-20
  • Technical References
  • GitHub Gist Example

  • GitHub Bitsery Repository

  • GitHub Changelog for Bitsery

  • GitHub Bitsery Commit

  • GitHub Bitsery Release Tag

  • VulDB Submission Form

  • VulDB #365541

  • VulDB #365541 CTI
  • Latest CVEs
  • CVE-2026-9446: Simple POS Inventory System SQLi Flaw

  • CVE-2026-9531: Totolink CA750-PoE RCE Vulnerability

  • CVE-2026-9482: Edimax EW-7438RPn Buffer Overflow Flaw

  • CVE-2026-9562: Student Management System Auth Bypass Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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