CVE-2025-5351
Libssh: double free vulnerability in libssh key export functions
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
6.5
Libssh: double free vulnerability in libssh key export functions
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
- Record
CVE-2025-5351- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-415
- Updated
- 2026-11-05
EUVDEUVD-2025-19935
6.5
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
- Record
EUVD-2025-19935- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-05
GitHub AdvisoriesGHSA-pfqf-mv4p-9j4r
4.2
A flaw was found in the key export functionality of libssh. The issue occurs in the internal...
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
- Record
GHSA-pfqf-mv4p-9j4r- CVSS 3.1
- 4.2 Medium
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N - Weakness
- CWE-415
- Updated
- 2026-11-02
NVD
6.5
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
- Record
CVE-2025-5351- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-415
- Updated
- 2026-11-05
OSVALPINE-CVE-2025-5351
6.5
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
- Record
ALPINE-CVE-2025-5351- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSVBELL-CVE-2025-5351
6.5
- Record
BELL-CVE-2025-5351- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 19 moreShow less
OSV
6.5
Libssh: double free vulnerability in libssh key export functions
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
- Record
CVE-2025-5351- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Weakness
- CWE-415
- Updated
- 2026-11-07
OSVDEBIAN-CVE-2025-5351
6.5
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
- Record
DEBIAN-CVE-2025-5351- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVJLSEC-2025-98
6.5
A flaw was found in the key export functionality of libssh
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
- Record
JLSEC-2025-98- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVOESA-2025-2127
8.8
libssh security update
The ssh library was designed to be used by programmers needing a working SSH implementation by the mean of a library. The complete control of the client is made by the programmer. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel for your remote programs. With its Secure FTP implementation, you can play with remote files easily, without third-party programs others than libcrypto (from openssl).
Security Fix(es):
A vulnerability classified as critical was found in libssh up to 0.11.1.The CWE definition for the vulnerability is CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer.As an impact it is known to affect confidentiality, integrity, and availability.Upgrading to version 0.11.2 eliminates this vulnerability.(CVE-2025-4877)
A vulnerability, which was classified as problematic, has been found in libssh up to 0.11.1.Using CWE to declare the problem leads to CWE-824. The product accesses or uses a pointer that has not been initialized.Impacted is confidentiality, integrity, and availability.Upgrading to version 0.11.2 eliminates this vulnerability.(CVE-2025-4878)
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.(CVE-2025-5351)
A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions' confidentiality, integrity, and availability.(CVE-2025-5372)
A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSL library. If an attacker manages to exhaust the heap space, this error is not detected and may lead to libssh using a partially initialized cipher context. This occurs because the OpenSSL error code returned aliases with the SSH_OK code, resulting in libssh not properly detecting the error returned by the OpenSSL library. This issue can lead to undefined behavior, including compromised data confidentiality and integrity or crashes.(CVE-2025-5987)
- Record
OESA-2025-2127- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2025-2132
8.8
libssh security update
The ssh library was designed to be used by programmers needing a working SSH implementation by the mean of a library. The complete control of the client is made by the programmer. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel for your remote programs. With its Secure FTP implementation, you can play with remote files easily, without third-party programs others than libcrypto (from openssl).
Security Fix(es):
A vulnerability classified as critical was found in libssh up to 0.11.1.The CWE definition for the vulnerability is CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer.As an impact it is known to affect confidentiality, integrity, and availability.Upgrading to version 0.11.2 eliminates this vulnerability.(CVE-2025-4877)
A vulnerability, which was classified as problematic, has been found in libssh up to 0.11.1.Using CWE to declare the problem leads to CWE-824. The product accesses or uses a pointer that has not been initialized.Impacted is confidentiality, integrity, and availability.Upgrading to version 0.11.2 eliminates this vulnerability.(CVE-2025-4878)
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.(CVE-2025-5351)
A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions' confidentiality, integrity, and availability.(CVE-2025-5372)
A flaw was found in libssh when using the ChaCha20 cipher with the OpenSSL library. If an attacker manages to exhaust the heap space, this error is not detected and may lead to libssh using a partially initialized cipher context. This occurs because the OpenSSL error code returned aliases with the SSH_OK code, resulting in libssh not properly detecting the error returned by the OpenSSL library. This issue can lead to undefined behavior, including compromised data confidentiality and integrity or crashes.(CVE-2025-5987)
- Record
OESA-2025-2132- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2025-2294
8.8
libssh security update
The ssh library was designed to be used by programmers needing a working SSH implementation by the mean of a library. The complete control of the client is made by the programmer. With libssh, you can remotely execute programs, transfer files, use a secure and transparent tunnel for your remote programs. With its Secure FTP implementation, you can play with remote files easily, without third-party programs others than libcrypto (from openssl).
Security Fix(es):
There's a vulnerability in the libssh package where when a libssh consumer passes in an unexpectedly large input buffer to ssh_get_fingerprint_hash() function. In such cases the bin_to_base64() function can experience an integer overflow leading to a memory under allocation, when that happens it's possible that the program perform out of bounds write leading to a heap corruption. This issue affects only 32-bits builds of libssh.(CVE-2025-4877)
A vulnerability was found in libssh, where an uninitialized variable exists under certain conditions in the privatekey_from_file() function. This flaw can be triggered if the file specified by the filename doesn't exist and may lead to possible signing failures or heap corruption.(CVE-2025-4878)
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.(CVE-2025-5351)
A flaw was found in libssh versions built with OpenSSL versions older than 3.0, specifically in the ssh_kdf() function responsible for key derivation. Due to inconsistent interpretation of return values where OpenSSL uses 0 to indicate failure and libssh uses 0 for success—the function may mistakenly return a success status even when key derivation fails. This results in uninitialized cryptographic key buffers being used in subsequent communication, potentially compromising SSH sessions' confidentiality, integrity, and availability.(CVE-2025-5372)
- Record
OESA-2025-2294- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2026:18683
6.5
Red Hat Security Advisory: libssh security update
- Record
RHSA-2026:18683- CVSS 3.0
- 6.5 Medium
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H - Updated
- 2026-11-02
OSVRLSA-2026:18683
6.5
Moderate: libssh security update
libssh is a library which implements the SSH protocol. It can be used to implement client and server applications.
Security Fix(es):
-
libssh: Double Free Vulnerability in libssh Key Export Functions (CVE-2025-5351)
-
libssh: Use of uninitialized variable in privatekey_from_file() (CVE-2025-4878)
-
libssh: Write beyond bounds in binary to base64 conversion functions (CVE-2025-4877)
-
libssh: NULL Pointer Dereference in libssh KEX Session ID Calculation (CVE-2025-8114)
-
libssh: Memory Exhaustion via Repeated Key Exchange in libssh (CVE-2025-8277)
-
libssh: Buffer underflow in ssh_get_hexa() on invalid input (CVE-2026-0966)
-
libssh: Improper sanitation of paths received from SCP servers (CVE-2026-0964)
-
libssh: libssh: Denial of Service via improper configuration file handling (CVE-2026-0965)
-
libssh: libssh: Denial of Service via inefficient regular expression processing (CVE-2026-0967)
-
libssh: libssh: Denial of Service due to malformed SFTP message (CVE-2026-0968)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the Rocky Linux 9 Release Notes linked from the References section.
- Record
RLSA-2026:18683- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVROOT-OS-DEBIAN-12-CVE-2025-5351
6.5
CVE-2025-5351 in libssh - Patched by Root
Root has patched CVE-2025-5351 in the libssh package for Root:Debian:12. Multiple fixed versions available.
- Record
ROOT-OS-DEBIAN-12-CVE-2025-5351- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2025-5351
6.5
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
- Record
UBUNTU-CVE-2025-5351- CVSS 3.1
- 6.5 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVALSA-2026:18683 No score
Moderate: libssh security update
libssh is a library which implements the SSH protocol. It can be used to implement client and server applications.
Security Fix(es):
- libssh: Double Free Vulnerability in libssh Key Export Functions (CVE-2025-5351)
- libssh: Use of uninitialized variable in privatekey_from_file() (CVE-2025-4878)
- libssh: Write beyond bounds in binary to base64 conversion functions (CVE-2025-4877)
- libssh: NULL Pointer Dereference in libssh KEX Session ID Calculation (CVE-2025-8114)
- libssh: Memory Exhaustion via Repeated Key Exchange in libssh (CVE-2025-8277)
- libssh: Buffer underflow in ssh_get_hexa() on invalid input (CVE-2026-0966)
- libssh: Improper sanitation of paths received from SCP servers (CVE-2026-0964)
- libssh: libssh: Denial of Service via improper configuration file handling (CVE-2026-0965)
- libssh: libssh: Denial of Service via inefficient regular expression processing (CVE-2026-0967)
- libssh: libssh: Denial of Service due to malformed SFTP message (CVE-2026-0968)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Additional Changes:
For detailed information on changes in this release, see the AlmaLinuxRelease Notes linked from the References section.
- Record
ALSA-2026:18683- Updated
- 2026-11-02
OSVAZL-64653 No score
CVE-2025-5351 affecting package libssh for versions less than 0.10.6-2
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
- Record
AZL-64653- Updated
- 2026-11-02
OSVAZL-64659 No score
CVE-2025-5351 affecting package libssh for versions less than 0.10.6-2
A flaw was found in the key export functionality of libssh. The issue occurs in the internal function responsible for converting cryptographic keys into serialized formats. During error handling, a memory structure is freed but not cleared, leading to a potential double free issue if an additional failure occurs later in the function. This condition may result in heap corruption or application instability in low-memory scenarios, posing a risk to system reliability where key export operations are performed.
- Record
AZL-64659- Updated
- 2026-11-05
OSVCLSA-2025-1765985737 No score
libssh: Fix of 2 CVEs
- CVE-2025-5351: fix double-free conditions
- CVE-2025-8114: fix NULL pointer dereference
- Record
CLSA-2025-1765985737- Updated
- 2026-11-02
OSVMGASA-2026-0189 No score
Updated libssh packages fix security vulnerabilities
CVE-2025-4877 Write beyond bounds in binary to base64 conversion functions CVE-2025-4878 Use of uninitialized variable in privatekey_from_file() CVE-2025-5318 Likely read beyond bounds in sftp server handle management CVE-2025-5351 Double free in functions exporting keys CVE-2025-5372 ssh_kdf() returns a success code on certain failures CVE-2025-5449 Likely read beyond bounds in sftp server message decoding CVE-2025-5987 Invalid return code for chacha20 poly1305 with OpenSSL backend
- Record
MGASA-2026-0189- Updated
- 2026-11-02
OSVopenSUSE-SU-2025:15243-1 No score
libssh-config-0.11.2-1.1 on GA media
These are all security issues fixed in the libssh-config-0.11.2-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2025:15243-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:20557-1 No score
Security update for libssh
This update for libssh fixes the following issues:
- CVE-2025-5372: ssh_kdf() returns a success code on certain failures (bsc#1245314)
- CVE-2025-5987: Invalid return code for chacha20 poly1305 with OpenSSL backend (bsc#1245317)
- CVE-2025-4877: Write beyond bounds in binary to base64 conversion functions (bsc#1245309)
- CVE-2025-4878: Use of uninitialized variable in privatekey_from_file() (bsc#1245310)
- CVE-2025-5318: Likely read beyond bounds in sftp server handle management (bsc#1245311)
- CVE-2025-5351: Double free in functions exporting keys (bsc#1245312)
- Record
SUSE-SU-2025:20557-1- Updated
- 2026-11-02
OSVSUSE-SU-2025:20596-1 No score
Security update for libssh
This update for libssh fixes the following issues:
- CVE-2025-5372: ssh_kdf() returns a success code on certain failures (bsc#1245314)
- CVE-2025-5987: Invalid return code for chacha20 poly1305 with OpenSSL backend (bsc#1245317)
- CVE-2025-4877: Write beyond bounds in binary to base64 conversion functions (bsc#1245309)
- CVE-2025-4878: Use of uninitialized variable in privatekey_from_file() (bsc#1245310)
- CVE-2025-5318: Likely read beyond bounds in sftp server handle management (bsc#1245311)
- CVE-2025-5351: Double free in functions exporting keys (bsc#1245312)
- Record
SUSE-SU-2025:20596-1- Updated
- 2026-11-02
OSVUSN-7619-1 No score
libssh vulnerabilities
Ronald Crane discovered that libssh incorrectly handled certain base64 conversions. An attacker could use this issue to cause libssh to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2025-4877)
Ronald Crane discovered that libssh incorrectly handled the privatekey_from_file() function. An attacker could use this issue to cause libssh to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2025-4878)
Ronald Crane discovered that libssh incorrectly handled certain memory operations in the sftp server. An attacker could possibly use this issue to cause libssh to crash, resulting in a denial of service. (CVE-2025-5318, CVE-2025-5449)
Ronald Crane discovered that libssh incorrectly handled exporting keys. An attacker could possibly use this issue to cause libssh to crash, resulting in a denial of service. This issue only affected Ubuntu 24.04 LTS, Ubuntu 24.10, and Ubuntu 25.04. (CVE-2025-5351)
Ronald Crane discovered that libssh incorrectly handled the ssh_kdf() function. An attacker could use this issue to cause libssh to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2025-5372)
Ronald Crane discovered that libssh incorrectly handled the ChaCha20 cipher. An attacker could possibly use this issue to cause libssh to use partially initialized cypher content. This issue only affected Ubuntu 24.04 LTS, Ubuntu 24.10, and Ubuntu 25.04. (CVE-2025-5987)
- Record
USN-7619-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
libsshAlpine:v3.22 |
0.10.0 up to 0.11.2-r0 | 0.11.2-r0 |
libsshAlpine:v3.23 |
0.10.0 up to 0.11.2-r0 | 0.11.2-r0 |
libsshAlpine:v3.24 |
0.10.0 up to 0.11.2-r0 | 0.11.2-r0 |
libsshAlmaLinux:9 From an advisory covering 10 CVEs |
before 0.10.4-18.el9 | 0.10.4-18.el9 |
libssh-configAlmaLinux:9 From an advisory covering 10 CVEs |
before 0.10.4-18.el9 | 0.10.4-18.el9 |
libssh-develAlmaLinux:9 From an advisory covering 10 CVEs |
before 0.10.4-18.el9 | 0.10.4-18.el9 |
libsshAzure Linux:2 |
before 0.10.6-2 | 0.10.6-2 |
libsshAzure Linux:3 |
before 0.10.6-2 | 0.10.6-2 |
libsshAlpaquita:23 |
0.10.4-r0 up to 0.11.2-r0 | 0.11.2-r0 |
libsshAlpaquita:25 |
0.11.1-r0 up to 0.11.2-r0 | 0.11.2-r0 |
Show 26 moreShow less
| Package | Affected | Fixed |
|---|---|---|
libsshAlpaquita:stream |
0.10.4-r0 up to 0.11.2-r0 | 0.11.2-r0 |
libsshTuxCare:AlmaLinux:9.6 From an advisory covering 2 CVEs |
before 0.10.4-15.el9_6.tuxcare.els2 | 0.10.4-15.el9_6.tuxcare.els2 |
libssh-configTuxCare:AlmaLinux:9.6 From an advisory covering 2 CVEs |
before 0.10.4-15.el9_6.tuxcare.els2 | 0.10.4-15.el9_6.tuxcare.els2 |
libssh-develTuxCare:AlmaLinux:9.6 From an advisory covering 2 CVEs |
before 0.10.4-15.el9_6.tuxcare.els2 | 0.10.4-15.el9_6.tuxcare.els2 |
libsshDebian:12 |
before 0.10.6-0+deb12u2, plus listed versions 0.10.5-20.10.5-30.10.5-3+hurd.10.10.6-0+deb12u1 |
0.10.6-0+deb12u2 |
libsshDebian:13 |
before 0.11.2-1 | 0.11.2-1 |
libsshDebian:14 |
before 0.11.2-1 | 0.11.2-1 |
libssh_jllJulia |
before 0.11.3+0 | 0.11.3+0 |
libsshMageia:9 From an advisory covering 7 CVEs |
before 0.10.6-1.1.mga9 | 0.10.6-1.1.mga9 |
libsshopenEuler:24.03-LTS-SP2 From an advisory covering 5 CVEs |
before 0.10.5-5.oe2403sp2 | 0.10.5-5.oe2403sp2 |
libsshopenEuler:24.03-LTS-SP1 From an advisory covering 5 CVEs |
before 0.10.5-5.oe2403sp1 | 0.10.5-5.oe2403sp1 |
libsshopenEuler:24.03-LTS From an advisory covering 4 CVEs |
before 0.10.5-5.oe2403 | 0.10.5-5.oe2403 |
libssh-debuginfoRed Hat:enterprise_linux:9::appstream From an advisory covering 10 CVEs |
before 0:0.10.4-18.el9 | 0:0.10.4-18.el9 |
libssh-debugsourceRed Hat:enterprise_linux:9::appstream From an advisory covering 10 CVEs |
before 0:0.10.4-18.el9 | 0:0.10.4-18.el9 |
libssh-develRed Hat:enterprise_linux:9::appstream From an advisory covering 10 CVEs |
before 0:0.10.4-18.el9 | 0:0.10.4-18.el9 |
libsshRed Hat:enterprise_linux:9::baseos From an advisory covering 10 CVEs |
before 0:0.10.4-18.el9 | 0:0.10.4-18.el9 |
libssh-configRed Hat:enterprise_linux:9::baseos From an advisory covering 10 CVEs |
before 0:0.10.4-18.el9 | 0:0.10.4-18.el9 |
libssh-debuginfoRed Hat:enterprise_linux:9::baseos From an advisory covering 10 CVEs |
before 0:0.10.4-18.el9 | 0:0.10.4-18.el9 |
libssh-debugsourceRed Hat:enterprise_linux:9::baseos From an advisory covering 10 CVEs |
before 0:0.10.4-18.el9 | 0:0.10.4-18.el9 |
libsshRocky Linux:9 From an advisory covering 10 CVEs |
before 0:0.10.4-18.el9 | 0:0.10.4-18.el9 |
libsshSUSE:Linux Micro 6.0 From an advisory covering 6 CVEs |
before 0.10.6-2.1 | 0.10.6-2.1 |
libsshSUSE:Linux Micro 6.1 From an advisory covering 6 CVEs |
before 0.10.6-slfo.1.1_2.1 | 0.10.6-slfo.1.1_2.1 |
libsshUbuntu:24.04:LTS |
before 0.10.6-2ubuntu0.1, plus listed versions 0.10.5-3ubuntu10.10.5-3ubuntu20.10.6-20.10.6-2build10.10.6-2build2 |
0.10.6-2ubuntu0.1 |
libsshUbuntu:22.04:LTS From an advisory covering 7 CVEs |
before 0.9.6-2ubuntu0.22.04.4, plus listed versions 0.9.6-10.9.6-1build10.9.6-20.9.6-2build10.9.6-2ubuntu0.22.04.10.9.6-2ubuntu0.22.04.20.9.6-2ubuntu0.22.04.3 |
0.9.6-2ubuntu0.22.04.4 |
libsshUbuntu:24.04:LTS From an advisory covering 7 CVEs |
before 0.10.6-2ubuntu0.1, plus listed versions 0.10.5-3ubuntu10.10.5-3ubuntu20.10.6-20.10.6-2build10.10.6-2build2 |
0.10.6-2ubuntu0.1 |
libsshopenSUSE:Tumbleweed From an advisory covering 7 CVEs |
before 0.11.2-1.1 | 0.11.2-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | EUVD, NVD, OSV | |
| facts | CVE List, OSV | |
| affected, aliases, references | OSV | |
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-5351 is a medium vulnerability (CVSS 6.5) in Libssh, published June 25, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.63%, the 50th percentile. Fixed in libssh 0.11.2-r0.
References
access.redhat.com/errata/RHSA-2026:18683
access.redhat.com/security/cve/CVE-2025-5351
bugzilla.redhat.com/show_bug.cgi?id=2369367
nvd.nist.gov/vuln/detail/CVE-2025-5351
github.com/advisories/GHSA-pfqf-mv4p-9j4r
security.alpinelinux.org/vuln/CVE-2025-5351
Show 101 moreShow less
access.redhat.com/security/cve/CVE-2025-4877
access.redhat.com/security/cve/CVE-2025-4878
access.redhat.com/security/cve/CVE-2025-8114
access.redhat.com/security/cve/CVE-2025-8277
access.redhat.com/security/cve/CVE-2026-0964
access.redhat.com/security/cve/CVE-2026-0965
access.redhat.com/security/cve/CVE-2026-0966
access.redhat.com/security/cve/CVE-2026-0967
access.redhat.com/security/cve/CVE-2026-0968
bugzilla.redhat.com/2369367
bugzilla.redhat.com/2376184
bugzilla.redhat.com/2376193
bugzilla.redhat.com/2383220
bugzilla.redhat.com/2383888
bugzilla.redhat.com/2433121
bugzilla.redhat.com/2436979
bugzilla.redhat.com/2436980
bugzilla.redhat.com/2436981
bugzilla.redhat.com/2436982
errata.almalinux.org/9/ALSA-2026-18683.html
docs.bell-sw.com/security/cves/CVE-2025-5351
errata.tuxcare.com/els_os/tuxcare9.6esu/CLSA-2025-1765985737.html
access.redhat.com/downloads/content/package-browser
git.libssh.org/projects/libssh.git
github.com/CVEProject/cvelistV5/tree/main/cves/2025/5xxx/CVE-2025-5351.json
security-tracker.debian.org/tracker/CVE-2025-5351
advisories.mageia.org/MGASA-2026-0189.html
bugs.mageia.org/show_bug.cgi?id=34405
openwall.com/lists/oss-security/2025/06/27/2
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-2127
nvd.nist.gov/vuln/detail/CVE-2025-4877
nvd.nist.gov/vuln/detail/CVE-2025-4878
nvd.nist.gov/vuln/detail/CVE-2025-5372
nvd.nist.gov/vuln/detail/CVE-2025-5987
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-2132
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-2294
docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html/9.8_release_notes/index
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=2376184
bugzilla.redhat.com/show_bug.cgi?id=2376193
bugzilla.redhat.com/show_bug.cgi?id=2383220
bugzilla.redhat.com/show_bug.cgi?id=2383888
bugzilla.redhat.com/show_bug.cgi?id=2433121
bugzilla.redhat.com/show_bug.cgi?id=2436979
bugzilla.redhat.com/show_bug.cgi?id=2436980
bugzilla.redhat.com/show_bug.cgi?id=2436981
bugzilla.redhat.com/show_bug.cgi?id=2436982
issues.redhat.com/browse/RHEL-150661
security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_18683.json
cve.org/CVERecord?id=CVE-2025-4877
git.libssh.org/projects/libssh.git/commit?h=stable-0.11&id=6fd9cc8ce3958092a1aae11f1f2e911b2747732d
libssh.org/security/advisories/CVE-2025-4877.txt
cve.org/CVERecord?id=CVE-2025-4878
git.libssh.org/projects/libssh.git/commit?id=697650caa97eaf7623924c75f9fcfec6dd423cd1
git.libssh.org/projects/libssh.git/commit?id=b35ee876adc92a208d47194772e99f9c71e0bedb
libssh.org/security/advisories/CVE-2025-4878.txt
cve.org/CVERecord?id=CVE-2025-5351
cve.org/CVERecord?id=CVE-2025-8114
nvd.nist.gov/vuln/detail/CVE-2025-8114
git.libssh.org/projects/libssh.git/commit?id=53ac23ded4cb2c5463f6c4cd1525331bd578812d
git.libssh.org/projects/libssh.git/commit?id=65f363c9
libssh.org/security/advisories/CVE-2025-8114.txt
cve.org/CVERecord?id=CVE-2025-8277
nvd.nist.gov/vuln/detail/CVE-2025-8277
libssh.org/security/advisories/CVE-2025-8277.txt
cve.org/CVERecord?id=CVE-2026-0964
nvd.nist.gov/vuln/detail/CVE-2026-0964
libssh.org/2026/02/10/libssh-0-12-0-and-0-11-4-security-releases
cve.org/CVERecord?id=CVE-2026-0965
nvd.nist.gov/vuln/detail/CVE-2026-0965
cve.org/CVERecord?id=CVE-2026-0966
nvd.nist.gov/vuln/detail/CVE-2026-0966
cve.org/CVERecord?id=CVE-2026-0967
nvd.nist.gov/vuln/detail/CVE-2026-0967
cve.org/CVERecord?id=CVE-2026-0968
nvd.nist.gov/vuln/detail/CVE-2026-0968
errata.rockylinux.org/RLSA-2026:18683
suse.com/support/update/announcement/2025/suse-su-202520557-1
bugzilla.suse.com/1245309
bugzilla.suse.com/1245310
bugzilla.suse.com/1245311
bugzilla.suse.com/1245312
bugzilla.suse.com/1245314
bugzilla.suse.com/1245317
suse.com/security/cve/CVE-2025-4877
suse.com/security/cve/CVE-2025-4878
suse.com/security/cve/CVE-2025-5318
suse.com/security/cve/CVE-2025-5351
suse.com/security/cve/CVE-2025-5372
suse.com/security/cve/CVE-2025-5987
suse.com/support/update/announcement/2025/suse-su-202520596-1
ubuntu.com/security/CVE-2025-5351
libssh.org/security/advisories/CVE-2025-5351.txt
ubuntu.com/security/notices/USN-7619-1
ubuntu.com/security/CVE-2025-4877
ubuntu.com/security/CVE-2025-4878
ubuntu.com/security/CVE-2025-5318
ubuntu.com/security/CVE-2025-5372
ubuntu.com/security/CVE-2025-5449
ubuntu.com/security/CVE-2025-5987
suse.com/security/cve/CVE-2025-5449