Moderate Vulnerability in libssh: Incorrect Return Code Handling
Summary
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 ↓
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.
No signup required · Results in about 60 seconds
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 →
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.