Vulnerability in libssh2 - security update

libssh2 Updated 02 Oct 2025

Summary

11/03/2015
N/A
Yes i
Unrated
Not published

DSA-3182-1: libssh2 - security update. Affects libssh2 versions < 1.4.2-1.1+deb7u1. Fixed in 1.4.2-1.1+deb7u1. 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

libssh2 is a SSH2 client-side library used for establishing secure connections to remote servers. It provides functionality for negotiating SSH sessions and handling encryption. The library is widely used in various applications that require secure communication with remote servers.

Vulnerability Detail

A vulnerability was discovered in libssh2 that allowed a malicious attacker to exploit the SSH_MSG_KEXINIT packet during the negotiation of a new SSH session. The library did not perform sufficient range checks on the received packet, which could lead to a denial of service (crash) or unintended memory access. An attacker could potentially perform a man-in-the-middle attack and manipulate the server response to trigger this vulnerability.

How To Fix

Minimum fixed version

1.4.2-1.1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libssh2

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to apply the security update to ensure the integrity and security of the libssh2 library.

Conclusion

The vulnerability in libssh2 could allow an attacker to crash a client or gain unintended access to memory areas. It is recommended to upgrade the libssh2 package to the latest version to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libssh2 →

Share this vulnerability

FAQ

libssh2 is a SSH2 client-side library used for secure communication with remote servers.

This vulnerability could allow an attacker to crash a client using the libssh2 library or gain unintended access to memory areas.

To fix this vulnerability, you should upgrade the libssh2 package to version 1.4.2-1.1+deb7u1 or later.

No, there is no known workaround for this vulnerability. It is crucial to apply the security update.

You can find more information about this vulnerability in the DSA-3182-1 advisory on the Debian Security website.

Related vulnerabilities

Recent vulnerabilities recorded for libssh2.

How To Fix

Minimum fixed version

1.4.2-1.1+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libssh2

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