Critical Security Flaws in libssh: A Comprehensive Overview

libssh Updated 04 Jun 2026

Summary

28/05/2026
N/A
Yes i
Medium
6.5

RLSA-2026:18683: Moderate: libssh security update. Affects libssh versions < 0:0.10.4-18.el9. Fixed in 0:0.10.4-18.el9. 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 Penetration testing for web, API and mobile 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 between client and server applications. It is integral to various systems for secure data transmission and remote management. However, recent vulnerabilities have raised concerns about its security integrity, necessitating immediate attention from users and developers.

Vulnerability Detail

The vulnerabilities in libssh stem from multiple issues, including a double free vulnerability in key export functions, use of uninitialized variables, and memory exhaustion during key exchanges. These flaws can lead to severe consequences such as denial of service, unauthorized access, and potential data breaches. The vulnerabilities are identified by several CVEs, including CVE-2025-4877, CVE-2025-4878, and CVE-2026-0968, among others, indicating a critical need for remediation.

How To Fix

Minimum fixed version

0:0.10.4-18.el9

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 measure, users can limit the exposure of applications using libssh by restricting access to sensitive functionalities and monitoring logs for unusual activities. However, this is not a substitute for applying the necessary updates.

Conclusion

The vulnerabilities identified in libssh pose significant risks to applications relying on this library for secure communications. It is crucial for users to update to the latest patched version to safeguard against potential exploits. Regular monitoring and proactive vulnerability management are essential to maintain security integrity.

See every vulnerability recorded for libssh →

Share this vulnerability

FAQ

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

The vulnerabilities include double free issues, use of uninitialized variables, buffer overflows, and denial of service conditions.

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

The CVSS score for the vulnerabilities in libssh is 6.5, indicating a moderate severity level.

If immediate updates are not possible, consider implementing access restrictions and monitoring for unusual activities as a temporary workaround.

Related vulnerabilities

Recent vulnerabilities recorded for libssh.

How To Fix

Minimum fixed version

0:0.10.4-18.el9

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