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

libssh Updated 28 Nov 2025

Summary

11/11/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:21013: Moderate: libssh security update. Affects libssh versions < 0.11.1-4.el10_1. Fixed in 0.11.1-4.el10_1. 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 Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

libssh is a widely used library that implements the SSH protocol, enabling secure communication between client and server applications. It is integral to various systems for secure data transmission and remote access. The library is designed to provide a robust framework for implementing SSH functionalities, but like any software, it can be susceptible to vulnerabilities that may compromise its security and functionality.

Vulnerability Detail

The vulnerability identified as CVE-2025-5318 involves an out-of-bounds read in the sftp_handle() function of libssh. This flaw can potentially allow an attacker to read memory locations that they should not have access to, leading to unauthorized data exposure or application crashes. The issue arises from improper handling of input data, which can be exploited if an attacker crafts a malicious request to the SFTP server.

How To Fix

Minimum fixed version

0.11.1-4.el10_1

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 provided for this vulnerability. The best course of action is to apply the patch as soon as it is available.

Conclusion

The libssh library has a moderate security vulnerability (CVE-2025-5318) that can lead to out-of-bounds reads, posing risks to data security. Users are strongly advised to update to the latest patched version to mitigate these risks. Regular monitoring and prompt updates are essential for maintaining application security.

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 unauthorized data access.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Simply upload your manifest file like package-lock.json to check for vulnerabilities.

Exploiting this vulnerability could allow attackers to read sensitive data from memory, potentially leading to data breaches or application instability.

While there are no specific workarounds, it is crucial to limit access to the affected services and monitor for any suspicious activity until the update can be applied.

For detailed information, you can refer to the CVE page associated with CVE-2025-5318, which provides insights into the vulnerability's impact and technical details.

Related vulnerabilities

Recent vulnerabilities recorded for libssh.

How To Fix

Minimum fixed version

0.11.1-4.el10_1

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