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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2025-5449 vendor-advisory
- access.redhat.com third-party-advisory vdb-entry
- RHBZ#2369705 issue-tracking third-party-advisory
- git.libssh.org patch
- git.libssh.org patch
- git.libssh.org patch
- git.libssh.org patch
- git.libssh.org patch
- www.libssh.org third-party-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking