Skip to content

CVE-2025-5449 Libssh: integer overflow in libssh sftp server packet length validation leading to denial of service

MediumCVSS 6.5 EPSS 1.0%
Published
Updated
Exploit status
No public exploit known
Technology
DebianRed Hat

Description

A flaw was found in the SFTP server message decoding logic of libssh. The issue occurs due to an incorrect packet length check that allows an integer overflow when handling large payload sizes on 32-bit systems. This issue leads to failed memory allocation and causes the server process to crash, resulting in a denial of service.

Affected products

ProductAffected versionsFixed in
debian/libssh(Debian:13) < 0.11.2-1 0.11.2-1
debian/libssh(Debian:14) < 0.11.2-1 0.11.2-1
libssh >= 0.11.0, <= 0.11.1 No fix listed
redhat enterprise linux = 10 No fix listed
redhat rhel els = 6 No fix listed
redhat rhel els = 7 No fix listed
redhat enterprise linux = 8 No fix listed
redhat enterprise linux = 9 No fix listed
redhat openshift = 4 No fix listed
alpine/libssh(Alpine:v3.22) < 0.11.2-r0 0.11.2-r0
alpine/libssh(Alpine:v3.23) < 0.11.2-r0 0.11.2-r0
alpine/libssh(Alpine:v3.24) < 0.11.2-r0 0.11.2-r0
libssh = 0.11.0 No fix listed
libssh = 0.11.1 No fix listed

References