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

libssh Updated 18 Oct 2025

Summary

18/10/2025
N/A
Yes i
Medium
5.4

RLSA-2025:18275: Moderate: libssh security update. Affects libssh versions < 0:0.10.4-15.el9_6. Fixed in 0:0.10.4-15.el9_6. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libssh is a widely-used library that implements the SSH protocol, enabling secure communication for client and server applications. It provides functionalities for secure file transfer, remote command execution, and secure shell access. The library is integral to many applications that require secure data transmission, making its security critical.

Vulnerability Detail

The vulnerability identified as CVE-2025-5318 is an out-of-bounds read in the sftp_handle() function of libssh. This flaw can potentially allow an attacker to read sensitive data from memory, which may lead to information disclosure. The vulnerability arises from improper handling of input data, making it possible for malicious actors to exploit the flaw if they can control the input to the affected function. The CVSS score for this vulnerability is 5.4, indicating a moderate severity level.

How To Fix

Minimum fixed version

0:0.10.4-15.el9_6

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

As of now, no specific workarounds have been provided for this vulnerability. The best course of action is to apply the available security update as soon as possible.

Conclusion

The libssh library has a moderate vulnerability (CVE-2025-5318) that can lead to information disclosure due to an out-of-bounds read. It is essential to update to the patched version to secure your applications. Regular monitoring and updates are crucial for maintaining security in open-source software.

See every vulnerability recorded for libssh →

Share this vulnerability

FAQ

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

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

The CVSS score for this vulnerability is 5.4, indicating a moderate severity level.

While there are no specific workarounds available, it is crucial to prioritize updating the package to mitigate the risk associated with this vulnerability.

The libssh library is maintained by the Rocky Enterprise Software Foundation and Red Hat, who are responsible for addressing security issues and providing updates.

Related vulnerabilities

Recent vulnerabilities recorded for libssh.

How To Fix

Minimum fixed version

0:0.10.4-15.el9_6

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