Integer overflow in libssh - CVE-2025-5449

 

Integer overflow in libssh - CVE-2025-5449

Published: September 12, 2025 / Updated: February 24, 2026


Vulnerability identifier: #VU115174
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-5449
CWE-ID: CWE-190
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to an incorrect packet length check within the SFTP server message decoding logic when handling large payload sizes on 32-bit systems. A remote attacker can trick the victim into connecting to a malicious server, trigger an integer overflow and crash the application.


Affected software

libssh
Ubuntu
Fedora
libssh (Ubuntu package)
libssh

How to mitigate CVE-2025-5449

Install updates from vendor's website.

libssh - update to 0.11.2
libssh (Ubuntu package) - addressed in versions 0.9.6-2ubuntu0.22.04.4, 0.10.6-2ubuntu0.1, 0.10.6-3ubuntu1.1, 0.11.1-1ubuntu0.1
libssh - update to 0.11.2-1.fc41

External References

Related Security Bulletins