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-2020-29652

CVE-2020-29652: Golang SSH Denial of Service Vulnerability

CVE-2020-29652 is a denial of service vulnerability in Golang SSH caused by a nil pointer dereference that allows attackers to crash SSH servers. This article covers the technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-29652 Overview

A nil pointer dereference vulnerability exists in the golang.org/x/crypto/ssh component through version v0.0.0-20201203163018-be400aefbc4c for Go. This flaw allows remote attackers to cause a denial of service against SSH servers by triggering a nil pointer dereference condition during SSH connection handling.

Critical Impact

Remote attackers can crash SSH servers built with the affected Go crypto/ssh library, causing service disruption without requiring authentication.

Affected Products

  • golang.org/x/crypto/ssh through v0.0.0-20201203163018-be400aefbc4c
  • Go applications implementing SSH servers using the affected library
  • Projects dependent on the vulnerable golang ssh component

Discovery Timeline

  • 2020-12-17 - CVE-2020-29652 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-29652

Vulnerability Analysis

This vulnerability is classified as CWE-476 (NULL Pointer Dereference), a memory corruption flaw that occurs when the application attempts to use a pointer that has not been properly initialized or has been set to null. In the context of the Go crypto/ssh library, this manifests during SSH server operations when processing malformed or unexpected client data.

The nil pointer dereference occurs within the SSH handshake or session handling logic, where certain code paths fail to validate pointer state before dereferencing. When triggered, this causes the Go runtime to panic, immediately terminating the SSH server process and denying service to all connected and incoming clients.

Root Cause

The root cause stems from inadequate null checks in the golang.org/x/crypto/ssh package. During SSH protocol handling, specific conditions can arise where a pointer variable remains nil but is subsequently accessed. This programming error in the Go crypto library's SSH implementation fails to account for edge cases in the protocol state machine, leading to an exploitable crash condition.

The vulnerability is particularly concerning because it can be triggered remotely by an unauthenticated attacker, requiring only network access to the SSH server port.

Attack Vector

The attack is network-based and requires no privileges or user interaction. An attacker can exploit this vulnerability by:

  1. Establishing a TCP connection to the target SSH server
  2. Sending specially crafted SSH protocol messages during the handshake phase
  3. Triggering the nil pointer dereference condition in the server's SSH handling code
  4. Causing the server application to crash with a Go runtime panic

The attack does not compromise confidentiality or integrity of data but results in complete availability loss of the affected SSH service. Service restoration requires restarting the crashed application.

Detection Methods for CVE-2020-29652

Indicators of Compromise

  • Unexpected SSH server process terminations or restarts
  • Go runtime panic messages in application logs referencing nil pointer dereference
  • Crash dumps showing failures within golang.org/x/crypto/ssh package functions
  • Abnormal SSH connection attempts followed by server crashes

Detection Strategies

  • Monitor application logs for Go panic traces, particularly those originating from the crypto/ssh package
  • Implement process monitoring to detect unexpected terminations of Go-based SSH services
  • Deploy network intrusion detection rules to identify malformed SSH handshake sequences
  • Track crash frequency and correlate with incoming connection attempts

Monitoring Recommendations

  • Configure automated alerts for SSH service availability and unexpected restarts
  • Enable verbose logging on SSH server applications to capture connection state before crashes
  • Implement health checks that detect and report service interruptions
  • Review dependency versions in Go projects to identify vulnerable golang.org/x/crypto/ssh usage

How to Mitigate CVE-2020-29652

Immediate Actions Required

  • Update the golang.org/x/crypto module to a version released after December 2020 that contains the fix
  • Audit all Go applications in your environment for usage of the vulnerable SSH library version
  • Implement service restart automation to minimize downtime from potential exploitation
  • Consider network-level access controls to limit SSH server exposure

Patch Information

The fix for this vulnerability is available in the Go Crypto Code Review. Organizations should update their Go module dependencies to pull in the patched version of golang.org/x/crypto/ssh. Additional details about the vulnerability and remediation can be found in the Golang Announce Notification.

To update the dependency in a Go project, run:

Workarounds

  • Place affected SSH servers behind network firewalls or access control lists to limit exposure
  • Implement connection rate limiting to slow potential denial of service attacks
  • Deploy a reverse proxy or load balancer with health checks to automatically route around crashed instances
  • Consider temporary use of alternative SSH implementations while updating dependencies
bash
# Update golang.org/x/crypto to the latest patched version
go get -u golang.org/x/crypto@latest

# Verify the updated version in go.mod
go list -m golang.org/x/crypto

# Rebuild the affected application
go build -o myapp ./cmd/myapp

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechGolang Ssh

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.03%

  • 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-476
  • Technical References
  • Go Crypto Code Review

  • Golang Announce Notification

  • Apache SkyWalking Notification Thread
  • Related CVEs
  • CVE-2021-43565: Golang SSH 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