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-2022-3171

CVE-2022-3171: Google Protobuf DoS Vulnerability

CVE-2022-3171 is a denial of service vulnerability in Google Protobuf caused by a parsing issue with binary data. Attackers can trigger long garbage collection pauses. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 17, 2026

CVE-2022-3171 Overview

CVE-2022-3171 is a Denial of Service vulnerability affecting Google Protocol Buffers (protobuf) implementations across Java, Kotlin, and Ruby platforms. The vulnerability stems from improper input validation during the parsing of binary data, where crafted inputs containing multiple instances of non-repeated embedded messages with repeated or unknown fields can cause excessive garbage collection activity, resulting in service degradation or complete denial of service.

Protocol Buffers is Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data, widely used in gRPC, microservices architectures, and data interchange scenarios. This vulnerability's network-accessible attack vector and lack of required privileges make it particularly concerning for internet-facing services.

Critical Impact

Attackers can remotely trigger prolonged garbage collection pauses in applications parsing protobuf messages, causing service unavailability without authentication.

Affected Products

  • Google protobuf-java (versions prior to 3.21.7, 3.20.3, 3.19.6, and 3.16.3)
  • Google protobuf-javalite (versions prior to 3.21.7, 3.20.3, 3.19.6, and 3.16.3)
  • Google protobuf-kotlin (versions prior to 3.21.7, 3.20.3, 3.19.6, and 3.16.3)
  • Google protobuf-kotlin-lite (versions prior to 3.21.7, 3.20.3, 3.19.6, and 3.16.3)
  • Google google-protobuf (Ruby gem, affected versions)
  • Fedora 37 (bundled protobuf packages)

Discovery Timeline

  • 2022-10-12 - CVE-2022-3171 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-3171

Vulnerability Analysis

This vulnerability is classified under CWE-20 (Improper Input Validation). The flaw exists in how protobuf-java core and lite libraries handle the parsing of specially crafted binary protocol buffer messages. When a message contains multiple instances of non-repeated embedded messages combined with repeated or unknown fields, the parser enters a pathological state where internal objects are repeatedly converted between mutable and immutable representations.

This back-and-forth conversion generates excessive temporary objects that accumulate in the JVM heap, triggering frequent and potentially prolonged garbage collection (GC) cycles. The attack is particularly effective because it exploits fundamental memory management behavior rather than traditional buffer overflows or code execution paths.

Root Cause

The root cause lies in the message parsing logic's handling of embedded message fields. When the parser encounters non-repeated embedded messages with repeated or unknown fields across multiple instances, it fails to maintain a consistent object state. Instead, the implementation oscillates between mutable builder objects and immutable message objects during the parse operation.

This design flaw causes memory churn as each conversion cycle allocates new objects while the previous objects await garbage collection. The cumulative effect of processing a malicious payload can overwhelm the garbage collector, causing stop-the-world GC pauses that effectively halt application processing.

Attack Vector

The attack can be executed remotely over the network without any authentication or user interaction. An attacker crafts a malicious protocol buffer binary message and sends it to any endpoint that parses protobuf messages using vulnerable library versions. Services using gRPC, custom protobuf-based APIs, or any application deserializing untrusted protobuf data are potential targets.

The attack payload would consist of a carefully constructed binary message with nested embedded message structures designed to maximize the mutable-immutable conversion cycles during parsing. Since protocol buffers are designed to be compact and efficient, relatively small payloads can trigger significant resource exhaustion.

Detection Methods for CVE-2022-3171

Indicators of Compromise

  • Unusual spikes in JVM garbage collection activity, particularly full GC events
  • Increased GC pause times correlating with incoming protobuf message processing
  • Memory pressure alerts on services processing protobuf data
  • Application response time degradation coinciding with message parsing operations
  • Heap memory usage patterns showing rapid allocation and deallocation cycles

Detection Strategies

  • Monitor JVM GC logs for anomalous pause duration and frequency patterns
  • Implement application performance monitoring (APM) to track protobuf parsing latency
  • Configure alerts for heap memory utilization exceeding baseline thresholds during message processing
  • Use Software Composition Analysis (SCA) tools to identify vulnerable protobuf library versions in your dependency tree
  • Deploy network traffic analysis to identify unusually structured protobuf payloads

Monitoring Recommendations

  • Enable detailed GC logging (-Xlog:gc* for JDK 9+) on services processing protobuf messages
  • Set up SentinelOne Singularity to monitor for resource exhaustion patterns indicative of DoS attempts
  • Implement request rate limiting and payload size validation at ingress points
  • Configure health checks that include GC metrics to detect degraded service states

How to Mitigate CVE-2022-3171

Immediate Actions Required

  • Update protobuf-java to version 3.21.7, 3.20.3, 3.19.6, or 3.16.3 or later depending on your version branch
  • Update protobuf-javalite, protobuf-kotlin, and protobuf-kotlin-lite to corresponding patched versions
  • For Ruby applications, update the google-protobuf gem to patched versions
  • Audit all transitive dependencies that may bundle vulnerable protobuf versions
  • Apply Fedora security updates if running Fedora 37

Patch Information

Google has released patched versions addressing this vulnerability across multiple release branches to accommodate different upgrade paths. The GitHub Security Advisory provides comprehensive details on fixed versions and upgrade guidance.

For Fedora users, security updates are available through the standard package management system as documented in the Fedora Package Announcements. Gentoo users should refer to GLSA-202301-09 for distribution-specific guidance.

Workarounds

  • Implement input validation to reject protobuf messages exceeding reasonable size limits before parsing
  • Deploy request rate limiting to reduce the impact of potential exploitation attempts
  • Configure JVM heap size limits and GC tuning to contain the blast radius of memory exhaustion
  • Use network-level controls to restrict protobuf endpoint access to trusted sources where feasible
  • Consider implementing parsing timeouts to abort processing of pathologically slow messages
bash
# Maven dependency update example
# Update pom.xml to use patched protobuf-java version
mvn versions:use-dep-version -Dincludes=com.google.protobuf:protobuf-java -DdepVersion=3.21.7

# Verify updated dependency
mvn dependency:tree | grep protobuf

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechGoogle Protobuf

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-20

  • NVD-CWE-noinfo
  • Technical References
  • GitHub Security Advisory

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA Advisory
  • Related CVEs
  • CVE-2024-7254: Google Protobuf DOS Vulnerability

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

  • CVE-2024-24786: Protobuf JSON Unmarshal DoS Vulnerability

  • CVE-2022-1941: Google Protobuf-cpp DoS Vulnerability
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