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-2024-24786

CVE-2024-24786: Protobuf JSON Unmarshal DoS Vulnerability

CVE-2024-24786 is a denial of service flaw in Protobuf's protojson.Unmarshal function that triggers infinite loops with invalid JSON. This article covers technical details, affected versions, impact, and mitigation steps.

Published: January 28, 2026

CVE-2024-24786 Overview

CVE-2024-24786 is a denial of service vulnerability in Google's Protocol Buffers (protobuf) Go implementation, specifically affecting the protojson.Unmarshal function. The function can enter an infinite loop when processing certain forms of invalid JSON input, causing the affected application to become unresponsive and consume excessive CPU resources.

Critical Impact

Applications using Go's protojson package to parse untrusted JSON input are vulnerable to denial of service attacks through specially crafted malformed JSON payloads that cause infinite loops during unmarshaling operations.

Affected Products

  • Go protobuf library (google.golang.org/protobuf)
  • Applications using protojson.Unmarshal with google.protobuf.Any types
  • Applications using UnmarshalOptions.DiscardUnknown option

Discovery Timeline

  • 2024-03-05 - CVE-2024-24786 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2024-24786

Vulnerability Analysis

The vulnerability exists in the JSON unmarshaling logic within the Go protobuf library's protojson package. When the protojson.Unmarshal function processes specially crafted invalid JSON data, it can enter an infinite loop condition. This issue is particularly concerning because it can be triggered remotely by an attacker who can supply JSON input to a vulnerable application.

The infinite loop condition manifests under two specific scenarios: when unmarshaling JSON data into a message that contains a google.protobuf.Any value, or when the UnmarshalOptions.DiscardUnknown option is enabled during unmarshaling. In both cases, the parsing logic fails to properly terminate when encountering malformed input, resulting in the application thread becoming stuck in an endless processing cycle.

This vulnerability represents a classic algorithmic complexity attack where malformed input causes the parser to enter an unrecoverable state, effectively denying service to legitimate users.

Root Cause

The root cause of this vulnerability lies in improper input validation within the JSON parsing logic of the protojson.Unmarshal function. When processing certain malformed JSON structures, the parser's state machine fails to detect the invalid condition and advance past the problematic input, instead repeatedly attempting to process the same data. The lack of proper bounds checking or loop termination conditions allows the infinite loop to persist indefinitely.

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability by sending a specially crafted JSON payload to any application endpoint that uses protojson.Unmarshal to parse untrusted input. The attack is particularly effective against:

  • API endpoints accepting JSON-encoded Protocol Buffer messages
  • Microservices using gRPC-JSON transcoding
  • Any Go application that deserializes user-supplied JSON into protobuf messages

The attack does not compromise confidentiality or integrity, but completely impacts availability by causing the affected application thread or process to hang indefinitely. A sustained attack with multiple malicious requests could exhaust all available worker threads, rendering the entire service unavailable.

Detection Methods for CVE-2024-24786

Indicators of Compromise

  • Sudden increase in CPU utilization with application threads showing infinite loop behavior
  • Application processes becoming unresponsive or timing out when handling JSON parsing operations
  • Stack traces showing threads stuck in protojson.Unmarshal or related functions
  • Spike in request processing latency specifically for JSON-to-protobuf conversion operations

Detection Strategies

  • Monitor application thread states for prolonged execution within protobuf JSON parsing functions
  • Implement request timeout monitoring to detect endpoints that consistently fail to respond
  • Deploy application performance monitoring (APM) to track JSON unmarshaling operation duration
  • Analyze incoming JSON payloads for anomalous structures that deviate from expected schema

Monitoring Recommendations

  • Set up alerts for CPU usage spikes correlated with protobuf JSON parsing operations
  • Implement circuit breakers with timeout thresholds for JSON unmarshaling operations
  • Monitor goroutine counts in Go applications to detect threads stuck in infinite loops
  • Track request latency percentiles (p99, p999) to identify parsing-related slowdowns

How to Mitigate CVE-2024-24786

Immediate Actions Required

  • Update the Go protobuf library (google.golang.org/protobuf) to the latest patched version
  • Review all application code that uses protojson.Unmarshal with untrusted input
  • Implement request timeouts for all JSON parsing operations as a defense-in-depth measure
  • Consider input validation to reject malformed JSON before protobuf unmarshaling

Patch Information

The vulnerability has been addressed in the Go protobuf library. Refer to the Go Programming Language Issue for the specific code changes. Additional information is available in the Go Vulnerability Advisory GO-2024-2611.

Linux distribution users should check for updates from their respective package maintainers. Fedora users can refer to the Fedora Package Announcement for package updates. NetApp customers should review the NetApp Security Advisory ntap-20240517-0002.

Workarounds

  • Implement context-based timeouts around all protojson.Unmarshal calls to prevent indefinite hangs
  • Add input size limits and basic JSON validation before passing data to protobuf unmarshaling
  • Use rate limiting on endpoints that accept JSON-encoded protobuf messages
  • Consider deploying a web application firewall (WAF) to filter anomalous JSON payloads
bash
# Example: Update Go protobuf dependency
go get -u google.golang.org/protobuf@latest
go mod tidy

# Verify the updated version
go list -m google.golang.org/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.23%

  • 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
  • Technical References
  • Openwall OSS Security Discussion

  • Go Programming Language Issue

  • Fedora Package Announcement

  • Go Vulnerability Advisory GO-2024-2611

  • NetApp Security Advisory ntap-20240517-0002
  • Related CVEs
  • CVE-2024-7254: Google Protobuf DOS Vulnerability

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

  • CVE-2022-3171: Google Protobuf 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