Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2024-34155

CVE-2024-34155: Go Source Code Parser DoS Vulnerability

CVE-2024-34155 is a denial of service vulnerability in Go's Parse functions that causes stack exhaustion when processing deeply nested literals. This article covers the technical details, affected versions, and mitigation.

Published: January 28, 2026

CVE-2024-34155 Overview

CVE-2024-34155 is a Denial of Service (DoS) vulnerability affecting the Go programming language's parser functions. Calling any of the Parse functions on Go source code which contains deeply nested literals can cause a panic due to stack exhaustion. This vulnerability allows attackers to craft malicious Go source code that, when parsed, triggers excessive recursion leading to program termination.

Critical Impact

Applications that parse untrusted Go source code are vulnerable to denial of service attacks through stack exhaustion, potentially disrupting build systems, code analysis tools, and development environments.

Affected Products

  • Go programming language (go/parser package)
  • Applications using Go's go/parser Parse functions
  • Code analysis tools and build systems parsing Go source

Discovery Timeline

  • September 6, 2024 - CVE-2024-34155 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2024-34155

Vulnerability Analysis

This vulnerability exists in Go's parser implementation when processing source code containing deeply nested literals. The parser uses recursive descent parsing, and when encountering specially crafted input with excessive nesting depth, the call stack grows proportionally with the nesting level. Since the stack has finite memory, sufficiently deep nesting causes stack exhaustion, resulting in a panic that terminates the program.

The vulnerability is exploitable over the network in scenarios where applications accept and parse Go source code from untrusted sources. This includes online Go playgrounds, code review systems, continuous integration pipelines, and code analysis services. An attacker with low privileges can submit malicious code to trigger the denial of service condition.

Root Cause

The root cause stems from the recursive nature of the parser's literal handling code. When parsing nested composite literals (such as nested arrays, slices, maps, or struct literals), each level of nesting adds a new frame to the call stack. The parser lacks adequate depth checks or iterative alternatives to prevent unbounded recursion, allowing attackers to exhaust available stack space through carefully constructed input.

Attack Vector

An attacker can exploit this vulnerability by submitting Go source code containing deeply nested literals to any service that parses Go code. The attack requires network access and minimal privileges. The malicious input triggers recursive parsing calls that eventually exhaust the program's stack, causing a panic and service disruption. No user interaction is required for exploitation.

The attack is particularly effective against:

  • Online Go compilation/execution services
  • Code review and static analysis platforms
  • CI/CD pipelines that parse Go source files
  • IDE language servers processing untrusted code

Detection Methods for CVE-2024-34155

Indicators of Compromise

  • Unexpected application crashes or panics in Go-based parsing services
  • Stack overflow errors in logs from go/parser package functions
  • Sudden service terminations when processing specific Go source files
  • Memory and stack utilization anomalies during code parsing operations

Detection Strategies

  • Monitor application logs for panic messages related to stack exhaustion or runtime errors from the go/parser package
  • Implement input validation to detect and reject source files with excessive nesting depth before parsing
  • Deploy application performance monitoring to identify unusual recursion patterns or memory consumption during parse operations
  • Create alerts for repeated service restarts or crashes in systems that process Go source code

Monitoring Recommendations

  • Enable stack trace logging for all parser-related crashes to identify exploitation attempts
  • Implement rate limiting on code submission endpoints to reduce the impact of repeated attack attempts
  • Monitor Go runtime metrics including goroutine stack usage and panic frequency
  • Establish baseline metrics for normal parsing operations to detect anomalous behavior

How to Mitigate CVE-2024-34155

Immediate Actions Required

  • Update Go to the latest patched version that addresses this vulnerability
  • Implement input validation to limit nesting depth in Go source code before parsing
  • Add resource limits (stack size, parsing timeout) to applications processing untrusted Go code
  • Consider sandboxing or isolating parsing operations for untrusted input

Patch Information

The Go development team has addressed this vulnerability through a code change that prevents stack exhaustion when parsing deeply nested literals. The fix is tracked in the Go Dev Issue Discussion and documented in the Go Vulnerability Report GO-2024-3105. Additional details are available in the Go Dev Issue Report and the Golang Dev Group Discussion. Organizations using NetApp products should also review the NetApp Security Advisory NTAP-20240926-0005.

Workarounds

  • Implement pre-parsing validation to check and limit nesting depth of incoming Go source code
  • Set process-level stack size limits using operating system controls to contain the impact of exhaustion
  • Deploy parsing operations in isolated containers or sandboxes with resource constraints
  • Implement request timeouts for parsing operations to automatically terminate runaway processes
bash
# Configuration example: Limit stack size for Go applications (Linux)
ulimit -s 8192  # Set stack size limit to 8MB
# Or in systemd service files:
# LimitSTACK=8388608

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechN/A

  • SeverityMEDIUM

  • CVSS Score4.3

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • Technical References
  • Go Dev Issue Discussion

  • Go Dev Issue Report

  • Golang Dev Group Discussion

  • Go Vulnerability Report GO-2024-3105

  • NetApp Security Advisory NTAP-20240926-0005
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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