CVE-2025-5449Libssh: integer overflow in libssh sftp server packet length validation leading to…
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | libssh | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | libssh | Not affected vulnerable_code_not_present | ||
| Debian 14 | libssh | Fixed | 0.11.2-1 | DEBIAN-CVE-2025-5449 |
| Debian 13 | libssh | Fixed | 0.11.2-1 | DEBIAN-CVE-2025-5449 |
| Red Hat Enterprise Linux 10 | libssh | Not affected | ||
| Red Hat Enterprise Linux 10 | libssh-config | Not affected | ||
| Red Hat Enterprise Linux 10 | libssh-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libssh | Not affected | ||
| Red Hat Enterprise Linux 9 | libssh-config | Not affected | ||
| Red Hat Enterprise Linux 9 | libssh-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libssh | Not affected | ||
| Red Hat Enterprise Linux 8 | libssh-config | Not affected | ||
| Red Hat Enterprise Linux 8 | libssh-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libssh2 | Not affected | ||
| Red Hat Enterprise Linux 7 | libssh2-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | libssh2-docs | Not affected | ||
| Red Hat Enterprise Linux 6 | libssh2 | Not affected | ||
| Red Hat Enterprise Linux 6 | libssh2-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | libssh2-docs | Not affected | ||
| Alpine Linux 3.24 | libssh | Fixed | 0.11.2-r0 | ALPINE-CVE-2025-5449 |
| Alpine Linux 3.23 | libssh | Fixed | 0.11.2-r0 | ALPINE-CVE-2025-5449 |
| Alpine Linux 3.22 | libssh | Fixed | 0.11.2-r0 | ALPINE-CVE-2025-5449 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- libssh: affected: 0.11.0 to 0.11.1
- Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
Workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
References
- https://access.redhat.com/security/cve/CVE-2025-5449
- https://bugzilla.redhat.com/show_bug.cgi?id=2369705
- 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.