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

CVE-2025-5318: OpenShift Information Disclosure Bug

CVE-2025-5318 is an information disclosure flaw in Red Hat OpenShift Container Platform caused by an out-of-bounds read in libssh. This article covers technical details, affected versions, impact, and mitigation.

Updated: January 22, 2026

CVE-2025-5318 Overview

A critical out-of-bounds read vulnerability has been identified in the libssh library affecting versions prior to 0.11.2. The flaw exists within the sftp_handle function, where an incorrect comparison check allows the function to access memory beyond the valid handle list boundaries. This improper bounds validation results in the return of an invalid pointer, which is subsequently used in further processing operations, creating a significant security risk.

Critical Impact

An authenticated remote attacker can exploit this vulnerability to read unintended memory regions, potentially exposing sensitive information such as cryptographic keys, session data, or other confidential memory contents. Additionally, the vulnerability can affect service behavior, leading to application crashes or unpredictable system states.

Affected Products

  • libssh libssh (versions prior to 0.11.2)
  • Red Hat Enterprise Linux 8.0, 9.0, and 10.0
  • Red Hat OpenShift Container Platform 4.0

Discovery Timeline

  • June 24, 2025 - CVE-2025-5318 published to NVD
  • January 15, 2026 - Last updated in NVD database

Technical Details for CVE-2025-5318

Vulnerability Analysis

This vulnerability stems from improper memory bounds checking in the SFTP subsystem of libssh. When processing SFTP file handles, the sftp_handle function fails to properly validate handle indices against the actual size of the handle list. The incorrect comparison operation allows an attacker to specify a handle index that exceeds the allocated list boundaries, causing the function to read memory outside the intended buffer.

The impact of this vulnerability is twofold: first, the out-of-bounds read can expose sensitive data residing in adjacent memory regions, including potentially other session data, cryptographic material, or internal application state. Second, the returned invalid pointer is then used in subsequent operations, which can lead to application instability, crashes, or further memory corruption depending on how the pointer is dereferenced.

This is classified as CWE-125 (Out-of-bounds Read), a common vulnerability pattern where software reads data past the end or before the beginning of the intended buffer.

Root Cause

The root cause of this vulnerability lies in a flawed comparison check within the sftp_handle function. The comparison logic fails to properly validate that the requested handle index falls within the valid range of the handle list array. This off-by-one or incorrect boundary validation allows attackers to bypass the intended bounds checking and access memory locations outside the allocated handle list structure.

Attack Vector

The attack requires network access and authenticated credentials to establish an SSH/SFTP session with the vulnerable server. Once authenticated, an attacker can craft malicious SFTP requests that include out-of-bounds handle indices. The attack flow proceeds as follows:

  1. The attacker establishes an authenticated SFTP session with a server using a vulnerable version of libssh
  2. The attacker sends a crafted SFTP operation referencing a handle index that exceeds the valid handle list boundaries
  3. The sftp_handle function processes the request without proper bounds validation
  4. The function reads memory outside the handle list, returning an invalid pointer
  5. The invalid pointer is used in subsequent processing, potentially leaking memory contents back to the attacker or causing service disruption

The vulnerability does not require user interaction and can be exploited remotely over the network by any authenticated user with SFTP access.

Detection Methods for CVE-2025-5318

Indicators of Compromise

  • Unusual SFTP session behavior with abnormal handle references or unexpected error patterns
  • Application crashes or segmentation faults in processes using libssh for SFTP operations
  • Unexpected memory disclosure in SFTP responses indicating potential information leakage
  • Anomalous SSH/SFTP traffic patterns from authenticated users

Detection Strategies

  • Monitor for SFTP sessions with unusually high handle index values in requests
  • Implement application-level logging to capture SFTP handle operations and flag out-of-range values
  • Deploy network intrusion detection rules to identify malformed SFTP packets
  • Use memory safety tools like AddressSanitizer during testing to detect out-of-bounds memory access

Monitoring Recommendations

  • Enable verbose logging for libssh-based applications to capture detailed SFTP operation logs
  • Monitor system logs for segmentation faults or memory access violations in SSH-related services
  • Implement file integrity monitoring on libssh library files to detect unauthorized modifications
  • Use SentinelOne's behavioral AI to detect anomalous process behavior associated with memory exploitation attempts

How to Mitigate CVE-2025-5318

Immediate Actions Required

  • Upgrade libssh to version 0.11.2 or later immediately on all affected systems
  • Review and apply Red Hat security advisories for Enterprise Linux and OpenShift deployments
  • Audit SFTP access permissions and restrict authenticated access to trusted users only
  • Implement network segmentation to limit exposure of vulnerable SFTP services

Patch Information

Red Hat has released multiple security advisories addressing this vulnerability across their product portfolio. Administrators should apply the relevant patches based on their deployment:

  • For Red Hat Enterprise Linux, refer to RHSA-2025:18231 and related advisories
  • For OpenShift Container Platform, see RHSA-2025:19012 and subsequent updates
  • The upstream fix is available in libssh version 0.11.2 as documented in the LibSSH Security Advisory

Additional Red Hat advisories include RHSA-2025:18275, RHSA-2025:18286, RHSA-2025:19098, RHSA-2025:19101, and numerous others available through the Red Hat CVE Database.

Workarounds

  • Restrict SFTP access to only essential authenticated users until patches can be applied
  • Implement network-level access controls to limit which systems can connect to SFTP services
  • Consider temporarily disabling SFTP subsystem if not required for business operations
  • Deploy application firewall rules to filter potentially malicious SFTP requests
bash
# Check installed libssh version on RHEL/CentOS systems
rpm -qa | grep libssh

# Update libssh package to patched version
sudo dnf update libssh

# Verify the update was applied
rpm -q libssh

# Restart services that depend on libssh
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/TechRedhat

  • SeverityHIGH

  • CVSS Score8.1

  • EPSS Probability0.26%

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

  • Red Hat Security Advisory RHSA-2025:18275

  • Red Hat Security Advisory RHSA-2025:18286

  • Red Hat Security Advisory RHSA-2025:19012

  • Red Hat Security Advisory RHSA-2025:19098

  • Red Hat Security Advisory RHSA-2025:19101

  • Red Hat Security Advisory RHSA-2025:19295

  • Red Hat Security Advisory RHSA-2025:19300

  • Red Hat Security Advisory RHSA-2025:19313

  • Red Hat Security Advisory RHSA-2025:19400

  • Red Hat Security Advisory RHSA-2025:19401

  • Red Hat Security Advisory RHSA-2025:19470

  • Red Hat Security Advisory RHSA-2025:19472

  • Red Hat Security Advisory RHSA-2025:19807

  • Red Hat Security Advisory RHSA-2025:19864

  • Red Hat Security Advisory RHSA-2025:20943

  • Red Hat Security Advisory RHSA-2025:21013

  • Red Hat Security Advisory RHSA-2025:21329

  • Red Hat Security Advisory RHSA-2025:21829

  • Red Hat Security Advisory RHSA-2025:22275

  • Red Hat Security Advisory RHSA-2025:23078

  • Red Hat Security Advisory RHSA-2025:23079

  • Red Hat Security Advisory RHSA-2025:23080

  • Red Hat Security Advisory RHSA-2026:0326

  • Red Hat CVE Database Entry CVE-2025-5318

  • Red Hat Bugzilla Report #2369131
  • Vendor Resources
  • LibSSH Security Advisory CVE-2025-5318
  • Related CVEs
  • CVE-2025-9784: Apache Camel Spring Boot DoS Vulnerability

  • CVE-2022-0996: 389 Directory Server Auth Bypass Flaw

  • CVE-2022-3787: Red Hat Device-mapper-multipath Escalation

  • CVE-2023-40547: Red Hat Shim RCE 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