Vulnerability · Published Jul 25, 2025 · Assigned by redhat
CVE-2025-5449Libssh: integer overflow in libssh sftp server packet length validation leading to denial of service
Medium 6.5
In plain English
A medium-severity integer overflow in libssh. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 64% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.22 | libssh | 0.11.2-r0 | ALPINE-CVE-2025-5449 |
| Alpine:v3.23 | libssh | 0.11.2-r0 | ALPINE-CVE-2025-5449 |
| Alpine:v3.24 | libssh | 0.11.2-r0 | ALPINE-CVE-2025-5449 |
| Debian:13 | libssh | 0.11.2-1 | DEBIAN-CVE-2025-5449 |
| Debian:14 | libssh | 0.11.2-1 | DEBIAN-CVE-2025-5449 |
| Ubuntu:22.04:LTS | libssh | 0.9.6-2ubuntu0.22.04.4 | USN-7619-1 |
| Ubuntu:24.04:LTS | libssh | 0.10.6-2ubuntu0.1 | USN-7619-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| libssh | 0.11.0 – through 0.11.1 | |
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 6 | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
| Red Hat | Red Hat OpenShift Container Platform 4 | see references |
Weakness: CWE-190 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
References
- https://access.redhat.com/security/cve/CVE-2025-5449 vdb-entry, x_refsource_REDHAT
- RHBZ#2369705 issue-tracking, x_refsource_REDHAT
- https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=261612179f740bc62ba363d98b3bd5e5573a811f
- https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=3443aec90188d6aab9282afc80a81df5ab72c4da
- https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=5504ff40515439a5fecbb17da7483000c4d12eb7
- https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=78485f446af9b30e37eb8f177b81940710d54496
- https://git.libssh.org/projects/libssh.git/commit/?h=stable-0.11&id=f79ec51b7fd519dbc5737a7ba826e3ed093f6ceb
- https://www.libssh.org/security/advisories/CVE-2025-5449.txt