Moderate Vulnerability in libssh: Incorrect Return Code Handling

libssh Updated 25 Nov 2025

Summary

25/11/2025
N/A
Yes i
Medium
5.0

RLSA-2025:21977: Moderate: libssh security update. Affects libssh versions < 0:0.9.6-16.el8_10. Fixed in 0:0.9.6-16.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 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 robust library that implements the SSH protocol, enabling secure communication between client and server applications. It is widely used in various software solutions to facilitate secure data transfer and remote command execution. The library's functionality is critical for maintaining secure connections, but it is also susceptible to vulnerabilities that can compromise its integrity and security.

Vulnerability Detail

The vulnerability identified as CVE-2025-5372 in libssh stems from incorrect return code handling in the ssh_kdf() function. This flaw can lead to unintended behavior in applications utilizing the library, potentially allowing attackers to exploit the issue. The ramifications of this vulnerability include the possibility of unauthorized access or manipulation of secure communications, which could have severe consequences for data integrity and confidentiality.

How To Fix

Minimum fixed version

0:0.9.6-16.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

As a temporary workaround, users may consider implementing additional security measures such as restricting access to the affected applications or monitoring for unusual activity until the package can be updated.

Conclusion

The libssh library has a moderate vulnerability (CVE-2025-5372) due to incorrect return code handling, which can lead to serious security issues. It is crucial to update to the patched version to mitigate risks associated with this vulnerability. Utilizing tools like Vulert can further enhance security by monitoring for vulnerabilities in real-time.

See every vulnerability recorded for libssh →

Share this vulnerability

FAQ

CVE-2025-5372 is a security vulnerability in the libssh library that involves incorrect return code handling in the ssh_kdf() function.

This vulnerability can lead to unauthorized access or manipulation of secure communications, potentially compromising data integrity and confidentiality.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Update the libssh package to the patched version 0:0.9.6-16.el8_10 or later using the command 'sudo yum update libssh'.

Vulert is a tool that monitors and alerts in real-time for open-source vulnerabilities using a manifest file like package-lock.json, helping developers maintain secure applications.

Related vulnerabilities

Recent vulnerabilities recorded for libssh.

How To Fix

Minimum fixed version

0:0.9.6-16.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