Moderate Security Vulnerability in libssh: Out-of-Bounds Read Issue

libssh Updated 28 Nov 2025

Summary

28/11/2025
N/A
Yes i
Medium
5.4

RLSA-2025:18286: Moderate: libssh security update. Affects libssh versions < 0:0.9.6-15.el8_10. Fixed in 0:0.9.6-15.el8_10. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

libssh is a widely used library that implements the SSH (Secure Shell) protocol, enabling secure communication between client and server applications. It is essential for secure data transfer and remote command execution. However, vulnerabilities in such libraries can expose applications to significant security risks, making it crucial to address any identified issues promptly.

Vulnerability Detail

The vulnerability identified as CVE-2025-5318 in libssh is an out-of-bounds read in the sftp_handle() function. This flaw can potentially allow an attacker to read sensitive data from memory, leading to information disclosure. The issue arises from improper handling of input data, which can be exploited if an attacker sends crafted requests to the server. The ramifications of this vulnerability include unauthorized access to sensitive information, which could compromise the integrity and confidentiality of the affected systems.

How To Fix

Minimum fixed version

0:0.9.6-15.el8_10

This is the first release that contains the fix.

sudo dnf update libssh

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

Currently, there are no specific workarounds mentioned for this vulnerability. The best course of action is to apply the available patch as soon as possible.

Conclusion

The identified vulnerability in libssh poses a moderate risk due to the potential for information disclosure through an out-of-bounds read. It is crucial to update to the patched version to safeguard your systems against exploitation. Regular monitoring and updates are essential for maintaining security in open-source software.

See every vulnerability recorded for libssh →

Share this vulnerability

FAQ

CVE-2025-5318 is a security vulnerability in the libssh library that allows for an out-of-bounds read, potentially leading to information disclosure.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. By uploading your manifest file, you can check for vulnerabilities without needing to access the code.

The vulnerability can lead to unauthorized access to sensitive data, compromising the confidentiality and integrity of the affected systems.

Yes, a patch is available. You should update to libssh version 0:0.9.6-15.el8_10 to mitigate the risk.

The CVSS score for CVE-2025-5318 is 5.4, indicating a moderate level of severity.

Related vulnerabilities

Recent vulnerabilities recorded for libssh.

How To Fix

Minimum fixed version

0:0.9.6-15.el8_10

This is the first release that contains the fix.

sudo dnf update libssh

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback