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-3731

CVE-2026-3731: Libssh Buffer Overflow Vulnerability

CVE-2026-3731 is a buffer overflow flaw in Libssh affecting versions up to 0.11.3. The vulnerability enables out-of-bounds read attacks via SFTP. This article covers technical details, affected versions, and patches.

Published: March 13, 2026

CVE-2026-3731 Overview

A weakness has been identified in libssh up to version 0.11.3 involving an out-of-bounds read vulnerability. The impacted element is the function sftp_extensions_get_name/sftp_extensions_get_data of the file src/sftp.c within the SFTP Extension Name Handler component. Executing a manipulation of the argument idx can lead to an out-of-bounds read condition. This vulnerability can be exploited remotely over the network without requiring authentication.

Critical Impact

Remote attackers can trigger an out-of-bounds read in libssh's SFTP extension handling, potentially causing denial of service or information disclosure in applications using the affected library.

Affected Products

  • libssh versions up to 0.11.3
  • Applications and services utilizing vulnerable libssh versions for SFTP functionality
  • Systems with libssh integrated for SSH/SFTP communication

Discovery Timeline

  • 2026-03-08 - CVE-2026-3731 published to NVD
  • 2026-03-12 - Last updated in NVD database

Technical Details for CVE-2026-3731

Vulnerability Analysis

This vulnerability is classified as CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer), specifically manifesting as an out-of-bounds read condition. The flaw exists in the SFTP extension handling code within src/sftp.c, where the functions sftp_extensions_get_name and sftp_extensions_get_data fail to properly validate the idx argument before accessing memory.

When processing SFTP extension data, the vulnerable functions do not adequately verify that the provided index value falls within the bounds of the allocated extension array. An attacker can exploit this by supplying a crafted index value that causes the function to read beyond the intended memory boundaries.

The vulnerability can be triggered remotely without any prior authentication or user interaction, making it particularly concerning for internet-facing SFTP services. While the direct impact is limited to availability (denial of service), out-of-bounds read vulnerabilities can sometimes leak sensitive information from adjacent memory regions.

Root Cause

The root cause of this vulnerability lies in insufficient bounds checking within the SFTP extension handling functions. The idx argument passed to sftp_extensions_get_name and sftp_extensions_get_data is not properly validated against the actual number of available extensions before being used as an array index. This allows an attacker to specify an index value that exceeds the bounds of the extension array, causing the application to read from unintended memory locations.

Attack Vector

The attack can be performed remotely over the network. An attacker would need to establish an SFTP connection to a service using a vulnerable version of libssh and send specially crafted SFTP extension requests with manipulated index values. The attack does not require authentication or user interaction, and has low complexity to execute.

The vulnerability can be exploited by sending malformed SFTP extension queries that specify an out-of-bounds index value. When the vulnerable function attempts to access the extension at the specified index, it reads beyond the allocated memory buffer, potentially causing a crash or exposing sensitive data from adjacent memory.

Detection Methods for CVE-2026-3731

Indicators of Compromise

  • Unexpected crashes or service interruptions in applications using libssh for SFTP
  • Abnormal SFTP session behavior with unusual extension requests
  • Memory access violations or segmentation faults in libssh-dependent services
  • Unusual network traffic patterns targeting SFTP services with malformed requests

Detection Strategies

  • Monitor for crashes in libssh-dependent applications with stack traces pointing to sftp_extensions_get_name or sftp_extensions_get_data functions
  • Implement network intrusion detection rules to identify malformed SFTP extension requests
  • Deploy application-level monitoring to detect unusual SFTP session behavior
  • Use memory sanitizers (ASan, MSan) in development environments to catch out-of-bounds access attempts

Monitoring Recommendations

  • Enable verbose logging for SFTP services to capture extension-related operations
  • Monitor system logs for segmentation faults or memory violations in libssh-dependent processes
  • Implement network traffic analysis on SFTP ports to detect exploitation attempts
  • Set up alerts for unusual patterns of SFTP connection failures or resets

How to Mitigate CVE-2026-3731

Immediate Actions Required

  • Identify all systems and applications using libssh versions 0.11.3 or earlier
  • Upgrade libssh to version 0.11.4 or 0.12.0, which contain the security fix
  • If immediate patching is not possible, consider restricting network access to affected SFTP services
  • Review and strengthen network segmentation for systems running vulnerable libssh versions

Patch Information

The vulnerability has been addressed in libssh versions 0.11.4 and 0.12.0. The fix is contained in commit 855a0853ad3abd4a6cd85ce06fce6d8d4c7a0b60. Organizations should upgrade their libssh installations to the patched versions as soon as possible. The updated source code is available from the GitLab commit and the libssh 0.12.0 release archive.

Workarounds

  • Restrict network access to SFTP services using firewall rules to limit exposure
  • Implement application-level rate limiting and connection monitoring for SFTP services
  • Consider temporarily disabling SFTP functionality if not critical until patching is completed
  • Deploy intrusion prevention systems (IPS) to filter potentially malicious SFTP traffic
bash
# Configuration example
# Restrict SFTP access to trusted networks using iptables
iptables -A INPUT -p tcp --dport 22 -s trusted_network/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j DROP

# Verify installed libssh version
pkg-config --modversion libssh

# Update libssh on Debian/Ubuntu-based systems
apt update && apt install libssh-4

# Update libssh on RHEL/CentOS-based systems
yum update libssh

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechLibssh

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-119
  • Technical References
  • VulDB CTI #349709

  • VulDB #349709

  • VulDB Submission #767120

  • LibSSH Security Advisory
  • Vendor Resources
  • GitLab Commit Update

  • LibSSH Source Archive
  • Related CVEs
  • CVE-2025-4877: libssh Buffer Overflow Vulnerability

  • CVE-2025-4878: libssh Buffer Overflow Vulnerability

  • CVE-2026-0968: libssh SFTP DoS Vulnerability Explained

  • CVE-2026-0967: 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