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
    • 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-2021-22570

CVE-2021-22570: Google Protobuf Use-After-Free Flaw

CVE-2021-22570 is a use-after-free vulnerability in Google Protobuf caused by nullptr dereference when a null character is present in a proto symbol. This article covers the technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-22570 Overview

CVE-2021-22570 is a Null Pointer Dereference vulnerability affecting Google Protocol Buffers (protobuf), a widely-used data serialization framework. The vulnerability occurs when a null character is present in a proto symbol, causing the symbol to be parsed incorrectly. This leads to an unchecked call into the proto file's name during generation of the resulting error message. Since the symbol is incorrectly parsed, the file pointer becomes nullptr, resulting in a crash when dereferenced.

Critical Impact

Applications using vulnerable versions of Google Protobuf can be crashed through specially crafted proto files containing null characters in symbols, leading to denial of service conditions.

Affected Products

  • Google Protobuf (versions prior to 3.15.0)
  • Debian Linux 9.0, 10.0, 11.0
  • Fedora 34, 35, 36
  • Oracle MySQL
  • NetApp Active IQ Unified Manager (VMware vSphere and Windows)
  • NetApp OnCommand Insight
  • NetApp OnCommand Workflow Automation
  • NetApp SnapCenter

Discovery Timeline

  • 2022-01-26 - CVE-2021-22570 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-22570

Vulnerability Analysis

This vulnerability represents a classic null pointer dereference issue (CWE-476) that occurs during error message generation in the protobuf compiler and runtime. When parsing proto symbols, the parser fails to properly handle embedded null characters within symbol names. The null character causes premature string termination during parsing, resulting in an incomplete or malformed symbol representation.

The critical flaw lies in the subsequent error handling path. When the parser detects an invalid symbol and attempts to generate a descriptive error message, it accesses the file descriptor associated with the symbol without first validating that the file pointer is non-null. Because the malformed parsing left the file reference uninitialized (nullptr), the dereference operation causes an immediate crash.

This vulnerability requires local access and low privileges to exploit, making it suitable for denial of service attacks against applications that process untrusted protobuf schema files or messages.

Root Cause

The root cause is insufficient input validation in the protobuf symbol parsing logic combined with missing null-pointer checks in the error handling code path. The parser does not anticipate or properly handle null characters within proto symbols, and the error message generation routine assumes the file descriptor will always be valid without performing defensive null checks.

Attack Vector

The attack vector is local, requiring an attacker to provide a specially crafted proto file to an application that uses the vulnerable protobuf library. The attacker must craft a proto symbol containing a null character (\0) which triggers the incorrect parsing behavior. When the application processes this malformed input, it crashes due to the null pointer dereference, resulting in a denial of service.

The vulnerability can be triggered in scenarios where:

  • Applications compile or validate untrusted .proto schema files
  • Services process serialized protobuf messages from untrusted sources
  • Build systems that handle external proto definitions

The exploitation mechanism involves embedding a null character within a proto symbol definition. When the protobuf compiler or runtime encounters this malformed symbol, the parsing routine misinterprets the symbol boundary, leaving internal data structures in an inconsistent state. The subsequent attempt to access the file descriptor for error reporting results in dereferencing a null pointer, causing application termination.

Detection Methods for CVE-2021-22570

Indicators of Compromise

  • Unexpected application crashes with segmentation faults or access violations in protobuf-related code paths
  • Core dumps showing null pointer dereference in protobuf symbol parsing or error message generation functions
  • Log entries indicating malformed proto symbols or unexpected null characters in proto files

Detection Strategies

  • Monitor application logs for crashes related to protobuf processing or proto file compilation
  • Implement static analysis to identify protobuf library versions prior to 3.15.0 in your codebase
  • Use software composition analysis (SCA) tools to inventory protobuf dependencies across your environment

Monitoring Recommendations

  • Configure crash monitoring and alerting for applications that process protobuf data from external sources
  • Implement input validation to detect and reject proto files containing embedded null characters in symbol names
  • Monitor build pipelines that compile proto definitions for unexpected failures or crashes

How to Mitigate CVE-2021-22570

Immediate Actions Required

  • Upgrade Google Protobuf to version 3.15.0 or greater immediately
  • Inventory all applications and dependencies that use the protobuf library to identify vulnerable deployments
  • Apply vendor-specific patches from Oracle, NetApp, Debian, and Fedora as applicable to your environment

Patch Information

Google has addressed this vulnerability in protobuf version 3.15.0 and later. The fix adds proper null-pointer validation before accessing file descriptors during error message generation. Detailed release information is available in the GitHub Release v3.15.0.

Additional vendor patches are available:

  • Debian LTS Announcement April 2023
  • Oracle Security Alert April 2022
  • NetApp Security Advisory ntap-20220429-0005

Workarounds

  • Implement strict input validation to reject proto files from untrusted sources until patching is complete
  • Isolate protobuf processing in sandboxed environments to limit the impact of potential crashes
  • Use allow-listing for proto file sources, only accepting proto definitions from trusted origins
bash
# Configuration example
# Verify installed protobuf version and upgrade if necessary
# For pip-based Python installations:
pip show protobuf | grep Version
pip install --upgrade protobuf>=3.15.0

# For system packages (Debian/Ubuntu):
apt-cache policy libprotobuf-dev
apt-get update && apt-get install libprotobuf-dev>=3.15.0

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

  • Vulnerability Details
  • TypeUse After Free

  • Vendor/TechGoogle Protobuf

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.15%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-476
  • Technical References
  • GitHub Release v3.15.0

  • Debian LTS Announcement April 2023

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • NetApp Security Advisory ntap-20220429-0005

  • Oracle Security Alert April 2022
  • Related CVEs
  • CVE-2024-2410: Google Protobuf Use-After-Free Vulnerability

  • CVE-2024-7254: Google Protobuf DOS Vulnerability

  • CVE-2022-3510: Google Protobuf-java DoS Vulnerability

  • CVE-2024-24786: Protobuf JSON Unmarshal DoS 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