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-2026-0968

CVE-2026-0968: libssh SFTP DoS Vulnerability Explained

CVE-2026-0968 is a denial of service vulnerability in libssh where malicious SFTP servers can send malformed longname fields, causing heap memory read overflows and application crashes. This article covers technical details, impact, and mitigation.

Published: March 27, 2026

CVE-2026-0968 Overview

A flaw was found in libssh in which a malicious SFTP (SSH File Transfer Protocol) server can exploit this by sending a malformed 'longname' field within an SSH_FXP_NAME message during a file listing operation. This missing null check can lead to reading beyond allocated memory on the heap. This can cause unexpected behavior or lead to a denial of service (DoS) due to application crashes.

Critical Impact

A malicious SFTP server can crash client applications by sending specially crafted responses during file listing operations, resulting in denial of service conditions.

Affected Products

  • libssh versions prior to 0.12.0
  • libssh versions prior to 0.11.4
  • Applications using vulnerable libssh versions for SFTP client functionality

Discovery Timeline

  • 2026-02-10 - libssh releases security patches (versions 0.12.0 and 0.11.4)
  • 2026-03-26 - CVE CVE-2026-0968 published to NVD
  • 2026-03-26 - Last updated in NVD database

Technical Details for CVE-2026-0968

Vulnerability Analysis

This vulnerability is classified as CWE-476 (Null Pointer Dereference). The flaw exists in how libssh processes SFTP server responses, specifically when handling the SSH_FXP_NAME message type used during file listing operations. When a malicious server sends a response containing a malformed or missing 'longname' field, the libssh client code fails to properly validate the presence of this field before attempting to access it.

The missing null check allows the code to proceed with an invalid memory reference, leading to an out-of-bounds read on the heap. While this vulnerability requires user interaction (connecting to a malicious server) and network-level access, successful exploitation results in application crashes and denial of service.

Root Cause

The root cause is a missing null check in the SFTP client implementation when processing SSH_FXP_NAME messages. The code assumes the 'longname' field will always be present and properly formatted in server responses, failing to validate this assumption before dereferencing the pointer. This lack of defensive programming allows a malicious server to trigger undefined behavior by omitting or malforming this expected field.

Attack Vector

The attack requires a victim to connect to a malicious SFTP server controlled by the attacker. When the client initiates a file listing operation (such as listing directory contents), the malicious server responds with a crafted SSH_FXP_NAME message containing a malformed 'longname' field. The libssh client processes this response without adequate validation, triggering a heap out-of-bounds read that crashes the application.

This attack scenario requires user interaction to initiate the connection and has high attack complexity since the attacker must operate a malicious SFTP server and convince the victim to connect to it.

Detection Methods for CVE-2026-0968

Indicators of Compromise

  • Unexpected crashes of SFTP client applications using libssh
  • Application logs showing segmentation faults or access violations during SFTP operations
  • Core dumps indicating memory access violations in libssh library functions

Detection Strategies

  • Monitor for abnormal termination of applications using libssh for SFTP functionality
  • Implement application-level logging to capture SFTP operation failures
  • Deploy network monitoring to identify connections to untrusted or suspicious SFTP servers

Monitoring Recommendations

  • Audit systems for vulnerable versions of libssh (versions prior to 0.12.0 and 0.11.4)
  • Enable crash reporting mechanisms to capture and analyze application failures
  • Review network logs for SFTP connections to unknown or untrusted servers

How to Mitigate CVE-2026-0968

Immediate Actions Required

  • Update libssh to version 0.12.0 or 0.11.4 (security releases)
  • Identify and inventory all applications using libssh for SFTP client functionality
  • Restrict SFTP connections to trusted and verified servers only
  • Consider implementing network-level controls to limit outbound SFTP connections

Patch Information

Security patches have been released by the libssh project. According to the Libssh Security Release Announcement, versions 0.12.0 and 0.11.4 address this vulnerability. Red Hat has also published an advisory available at the Red Hat CVE-2026-0968 Advisory page. Additional technical details can be found in Red Hat Bug Report #2436982.

Workarounds

  • Avoid connecting to untrusted or unknown SFTP servers until patches can be applied
  • Implement strict allowlisting of SFTP server destinations at the network or application level
  • Deploy application sandboxing to contain potential crash impacts
  • Consider using alternative SSH/SFTP libraries if immediate patching is not feasible
bash
# Configuration example
# Check installed libssh version
pkg-config --modversion libssh

# On RHEL/CentOS/Fedora, update libssh
sudo dnf update libssh

# On Debian/Ubuntu, update libssh
sudo apt update && sudo apt upgrade libssh-4

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLibssh

  • SeverityLOW

  • CVSS Score3.1

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-476
  • Technical References
  • Red Hat CVE-2026-0968 Advisory

  • Red Hat Bug Report #2436982

  • Libssh Security Release Announcement
  • Related CVEs
  • CVE-2026-0967: libssh Denial of Service Vulnerability

  • CVE-2026-0965: libssh Configuration Parsing DoS Vulnerability

  • CVE-2025-5987: Libssh ChaCha20 Cipher DOS Vulnerability

  • CVE-2023-1667: Libssh Denial of Service 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