CVEfocus › CVE database › CVE-2025-5449

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

CVSS 6.5 MediumEPSS 1.1% (higher than 65% of CVEs)Published 2025-07-25Updated 2026-11-24Assigner: redhat

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.

CWE-190

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

5Fixed
17Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04libsshNot affected
vulnerable_code_not_present
Ubuntu 22.04libsshNot affected
vulnerable_code_not_present
Debian 14libsshFixed0.11.2-1DEBIAN-CVE-2025-5449
Debian 13libsshFixed0.11.2-1DEBIAN-CVE-2025-5449
Red Hat Enterprise Linux 10libsshNot affected
Red Hat Enterprise Linux 10libssh-configNot affected
Red Hat Enterprise Linux 10libssh-develNot affected
Red Hat Enterprise Linux 9libsshNot affected
Red Hat Enterprise Linux 9libssh-configNot affected
Red Hat Enterprise Linux 9libssh-develNot affected
Red Hat Enterprise Linux 8libsshNot affected
Red Hat Enterprise Linux 8libssh-configNot affected
Red Hat Enterprise Linux 8libssh-develNot affected
Red Hat Enterprise Linux 7libssh2Not affected
Red Hat Enterprise Linux 7libssh2-develNot affected
Red Hat Enterprise Linux 7libssh2-docsNot affected
Red Hat Enterprise Linux 6libssh2Not affected
Red Hat Enterprise Linux 6libssh2-develNot affected
Red Hat Enterprise Linux 6libssh2-docsNot affected
Alpine Linux 3.24libsshFixed0.11.2-r0ALPINE-CVE-2025-5449
Alpine Linux 3.23libsshFixed0.11.2-r0ALPINE-CVE-2025-5449
Alpine Linux 3.22libsshFixed0.11.2-r0ALPINE-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.

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

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.