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

CVE-2026-0967: libssh Denial of Service Vulnerability

CVE-2026-0967 is a denial of service vulnerability in libssh caused by inefficient regex backtracking. Attackers can exploit hostname processing to cause resource exhaustion. This article covers technical details, impact, and mitigations.

Published: March 27, 2026

CVE-2026-0967 Overview

A flaw was found in libssh that allows a remote attacker to cause a Denial of Service (DoS) condition through inefficient regular expression backtracking. By controlling client configuration files or known_hosts files, an attacker can craft specific hostnames that, when processed by the match_pattern() function, trigger excessive backtracking in the pattern matching logic. This can lead to timeouts and resource exhaustion, effectively denying service to SSH clients.

Critical Impact

Attackers with control over client configuration files can craft malicious hostnames that cause resource exhaustion and service denial through inefficient regex processing in the libssh match_pattern() function.

Affected Products

  • libssh versions prior to 0.12.0
  • libssh versions prior to 0.11.4
  • Applications and systems using vulnerable libssh library versions

Discovery Timeline

  • 2026-02-10 - libssh security releases 0.12.0 and 0.11.4 announced
  • 2026-03-26 - CVE-2026-0967 published to NVD
  • 2026-03-26 - Last updated in NVD database

Technical Details for CVE-2026-0967

Vulnerability Analysis

This vulnerability (CWE-1333: Inefficient Regular Expression Complexity) affects the match_pattern() function within libssh. The function is responsible for matching hostnames against patterns in SSH configuration files and known_hosts files. The underlying issue is that certain crafted hostname patterns can trigger catastrophic backtracking in the regular expression engine, leading to exponential time complexity during pattern matching operations.

The vulnerability requires local access and user interaction, as an attacker must first gain the ability to modify client configuration files or known_hosts files. Once these files contain malicious hostname patterns, subsequent SSH operations that invoke the match_pattern() function will experience severe performance degradation or complete timeouts.

Root Cause

The root cause lies in the regular expression handling within the match_pattern() function. The pattern matching algorithm does not adequately protect against pathological input patterns that cause excessive backtracking. When processing hostnames with specific character sequences, the regex engine may enter a state where it repeatedly attempts alternative matching paths, consuming CPU resources exponentially relative to input length.

This is a classic example of Regular Expression Denial of Service (ReDoS), where the computational complexity of pattern matching grows non-linearly with specially crafted input strings.

Attack Vector

The attack requires local access to the target system to modify SSH client configuration files (such as ~/.ssh/config or ~/.ssh/known_hosts). An attacker who has already compromised a user account or gained write access to these files can insert malicious hostname patterns.

When the SSH client subsequently attempts to connect to any host, the match_pattern() function processes these configuration entries. If a crafted malicious pattern is present, the function enters inefficient backtracking loops, causing the client to hang or timeout. This effectively denies SSH service to the user without requiring network-based exploitation.

The attack scenario involves crafting hostname patterns with nested wildcards or repetitive character sequences that exploit weaknesses in the regex implementation. For detailed technical information, refer to the Red Hat Bugzilla Bug Report and the libssh Security Release Announcement.

Detection Methods for CVE-2026-0967

Indicators of Compromise

  • Unusual CPU spikes on systems running SSH clients
  • SSH client operations timing out or hanging indefinitely
  • Modified known_hosts or SSH config files with unusual hostname patterns containing repetitive or nested wildcard characters
  • User reports of SSH connection failures without network connectivity issues

Detection Strategies

  • Monitor for unauthorized modifications to SSH configuration files (~/.ssh/config, ~/.ssh/known_hosts, /etc/ssh/ssh_config)
  • Implement file integrity monitoring (FIM) on SSH configuration directories
  • Detect anomalous CPU usage patterns associated with SSH client processes
  • Review SSH configuration files for suspicious hostname patterns with excessive wildcards or special characters

Monitoring Recommendations

  • Enable audit logging for file access to SSH configuration directories
  • Configure alerts for SSH client processes consuming excessive CPU time
  • Implement periodic automated scanning of SSH configuration files for malformed or suspicious patterns
  • Monitor system logs for SSH client timeout errors or performance degradation indicators

How to Mitigate CVE-2026-0967

Immediate Actions Required

  • Update libssh to version 0.12.0 or 0.11.4 or later immediately
  • Audit SSH configuration files (~/.ssh/config, ~/.ssh/known_hosts) for unusual or suspicious hostname patterns
  • Restrict write permissions on SSH configuration directories to prevent unauthorized modification
  • Review recent changes to SSH configuration files using version control or file integrity monitoring data

Patch Information

The libssh project has released security updates addressing this vulnerability. Users should upgrade to libssh version 0.12.0 or 0.11.4, which contain fixes for the inefficient regular expression handling in the match_pattern() function. These versions are available from the official libssh Security Release Announcement.

For Red Hat-based distributions, refer to the Red Hat CVE-2026-0967 Advisory for distribution-specific patch information and update instructions.

Workarounds

  • Implement strict file permissions (600) on all SSH configuration files to prevent unauthorized modification
  • Use file integrity monitoring tools to detect and alert on configuration file changes
  • Consider using SELinux or AppArmor policies to restrict write access to SSH configuration directories
  • Regularly audit and validate the contents of known_hosts and SSH config files for anomalous entries
bash
# Configuration example
# Secure SSH configuration file permissions
chmod 600 ~/.ssh/config
chmod 600 ~/.ssh/known_hosts
chmod 700 ~/.ssh

# Verify current libssh version (method varies by system)
ssh -V

# For systems using package managers, check libssh version
rpm -q libssh    # RHEL/CentOS/Fedora
dpkg -l libssh*  # Debian/Ubuntu

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 Score2.2

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

  • Red Hat Bugzilla Bug Report

  • libssh Security Release Announcement
  • Related CVEs
  • CVE-2026-0968: libssh SFTP DoS Vulnerability Explained

  • 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