Security Update: libssh Vulnerability - Invalid Return Code in ChaCha20 Poly1305

libssh Updated 24 Dec 2025

Summary

17/12/2025
N/A
Yes i
Unrated
Not published

ALSA-2025:23484: Moderate: libssh security update. Affects libssh versions < 0.11.1-5.el10_1. Fixed in 0.11.1-5.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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

libssh is a widely-used library that implements the SSH protocol, enabling secure communication between client and server applications. It is integral for secure data transfer and remote command execution. The library supports various cryptographic algorithms, including ChaCha20 and Poly1305, which are essential for maintaining data integrity and confidentiality. However, a recent vulnerability has been identified that affects its functionality, particularly when using the OpenSSL backend.

Vulnerability Detail

The vulnerability arises from an invalid return code in the ChaCha20 Poly1305 implementation when using the OpenSSL backend in libssh. This flaw could potentially allow an attacker to exploit the library, leading to unauthorized access or data manipulation. The issue is documented under CVE-2025-5987, which highlights the security implications and the need for immediate attention to prevent exploitation.

How To Fix

Minimum fixed version

0.11.1-5.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 mentioned for this vulnerability. The best course of action is to apply the security update as soon as it is available.

Conclusion

In summary, the libssh vulnerability identified as CVE-2025-5987 poses a moderate security risk due to an invalid return code in its ChaCha20 Poly1305 implementation. It is crucial for users to update their libssh packages to the patched version to mitigate potential risks. Regular monitoring and updates are essential for maintaining secure applications.

See every vulnerability recorded for libssh →

Share this vulnerability

FAQ

libssh is a library that implements the SSH protocol, allowing secure communication between client and server applications.

CVE-2025-5987 refers to the specific vulnerability in libssh related to an invalid return code for the ChaCha20 Poly1305 implementation.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without requiring signup.

Failing to address this vulnerability could lead to unauthorized access and potential data breaches, compromising the security of applications using libssh.

Yes, there is a risk of data manipulation or unauthorized access, which could lead to data loss or corruption if the vulnerability is exploited.

Related vulnerabilities

Recent vulnerabilities recorded for libssh.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

0.11.1-5.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