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-2025-5372

CVE-2025-5372: Libssh Information Disclosure Vulnerability

CVE-2025-5372 is an information disclosure flaw in Libssh that causes uninitialized cryptographic keys to be used in SSH sessions. This post covers the technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-5372 Overview

A critical cryptographic vulnerability has been identified in libssh versions built with OpenSSL versions older than 3.0. The flaw exists in the ssh_kdf() function responsible for key derivation, where inconsistent interpretation of return values between OpenSSL and libssh leads to the use of uninitialized cryptographic key buffers. OpenSSL uses 0 to indicate failure while libssh interprets 0 as success, causing the function to mistakenly return a success status even when key derivation fails. This results in SSH sessions potentially using uninitialized memory for cryptographic operations, compromising session confidentiality, integrity, and availability.

Critical Impact

SSH sessions may use uninitialized cryptographic keys, allowing attackers to potentially decrypt communications, modify data in transit, or cause denial of service through corrupted sessions.

Affected Products

  • libssh (all versions built with OpenSSL < 3.0)
  • Red Hat OpenShift Container Platform 4.0
  • Red Hat Enterprise Linux 6.0, 7.0, 8.0, 9.0, 10.0

Discovery Timeline

  • 2025-07-04 - CVE-2025-5372 published to NVD
  • 2025-12-10 - Last updated in NVD database

Technical Details for CVE-2025-5372

Vulnerability Analysis

This vulnerability stems from a fundamental API contract mismatch between libssh and OpenSSL regarding function return value semantics. When libssh is compiled against OpenSSL versions prior to 3.0, the ssh_kdf() function incorrectly interprets the return value from OpenSSL's key derivation routines. In the C programming convention used by OpenSSL, a return value of 0 typically indicates an error condition, while libssh's internal convention treats 0 as a success indicator.

This semantic mismatch means that when OpenSSL's key derivation function fails and returns 0 to signal the error, libssh's ssh_kdf() function interprets this as a successful operation and proceeds with subsequent cryptographic operations. The consequence is that the key buffers, which were never properly initialized with derived key material, contain arbitrary memory contents that are then used for encryption, decryption, and authentication operations in the SSH session.

The vulnerability is classified under CWE-682 (Incorrect Calculation), as the core issue involves incorrect processing of computational results that leads to security-relevant errors in cryptographic operations.

Root Cause

The root cause is an incorrect interpretation of return values in the ssh_kdf() function when interfacing with OpenSSL's key derivation API. OpenSSL versions prior to 3.0 return 0 on failure, but libssh's code incorrectly treats this value as success, leading to the use of uninitialized key material. This represents a classic API contract violation where assumptions about return value semantics do not match the actual behavior of the underlying library.

Attack Vector

The vulnerability is network-exploitable with low attack complexity. An attacker positioned to intercept or participate in SSH session establishment could potentially exploit this flaw to:

  1. Intercept Communications: If key derivation fails silently, the resulting session keys may be predictable or weak, allowing passive eavesdropping on SSH traffic
  2. Session Manipulation: Uninitialized key buffers may contain predictable patterns, potentially allowing attackers to forge or modify SSH packets
  3. Denial of Service: Corrupted cryptographic state can cause session failures, authentication errors, or application crashes

The vulnerability requires low privileges to exploit, as the attacker needs only the ability to establish SSH connections to affected systems. The attack does not require user interaction.

Detection Methods for CVE-2025-5372

Indicators of Compromise

  • Unusual SSH session failures or authentication errors that cannot be attributed to credential issues
  • SSH connections that establish successfully but exhibit corrupted data transmission
  • Log entries indicating cryptographic operation failures or checksum mismatches in SSH sessions
  • Increased frequency of SSH session renegotiations or unexpected disconnections

Detection Strategies

  • Monitor for libssh library versions compiled against OpenSSL versions < 3.0 in your environment
  • Implement SSH session anomaly detection to identify sessions with unusual behavior patterns
  • Review system logs for cryptographic errors originating from libssh-based applications
  • Deploy network monitoring to detect SSH traffic anomalies that may indicate exploitation attempts

Monitoring Recommendations

  • Enable verbose logging for SSH services using libssh to capture key derivation events
  • Implement file integrity monitoring on libssh library files to track version changes
  • Configure alerting for repeated SSH authentication failures that may indicate exploitation attempts
  • Monitor for unusual patterns in SSH session establishment latency that may indicate key derivation issues

How to Mitigate CVE-2025-5372

Immediate Actions Required

  • Identify all systems running libssh compiled against OpenSSL versions older than 3.0
  • Prioritize patching for internet-facing SSH services and critical infrastructure
  • Consider temporarily disabling affected SSH services in high-security environments until patches are applied
  • Apply vendor-provided patches from Red Hat advisories RHSA-2025:21977 and RHSA-2025:23024

Patch Information

Red Hat has released security advisories addressing this vulnerability:

  • Red Hat Security Advisory RHSA-2025:21977 - Contains patches for affected Red Hat products
  • Red Hat Security Advisory RHSA-2025:23024 - Additional security updates for enterprise deployments
  • Red Hat CVE Review CVE-2025-5372 - Official vulnerability assessment and patch information
  • Red Hat Bug Report #2369388 - Technical details and patch tracking

Workarounds

  • Upgrade OpenSSL to version 3.0 or later, which uses a different return value convention that is correctly handled by libssh
  • Recompile libssh against a newer OpenSSL version if source-based deployment is used
  • Implement network segmentation to limit exposure of vulnerable SSH services
  • Deploy additional authentication layers (such as certificate-based authentication) to reduce attack surface
bash
# Check OpenSSL version on affected systems
openssl version

# Verify libssh linking against OpenSSL
ldd /usr/lib*/libssh.so* | grep -i ssl

# Update libssh and dependencies on RHEL-based systems
sudo yum update libssh openssl

# Restart SSH services after patching
sudo systemctl restart sshd

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechLibssh

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-682
  • Technical References
  • Red Hat Security Advisory RHSA-2025:21977

  • Red Hat Security Advisory RHSA-2025:23024

  • Red Hat CVE Review CVE-2025-5372

  • Red Hat Bug Report #2369388
  • Related CVEs
  • CVE-2026-0968: libssh SFTP DoS Vulnerability Explained

  • CVE-2026-0967: libssh Denial of Service Vulnerability

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

  • CVE-2026-3731: Libssh Buffer Overflow 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