Skip to content
OpenAdvisories
Medium · 6.5 CVE-2025-5449 EUVD-2025-22738GHSA-q9x7-4rf7-4xq2

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

Published Jul 25, 2025 · Updated Nov 5, 2026 · Assigned by redhat

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

VendorProductAffectedFixed
— libssh 0.11.0 – ≤ 0.11.1 —
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat OpenShift Container Platform 4 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libssh 0.11.2-1 —
Debian 13 libssh 0.11.2-1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS libssh 0.10.6-2ubuntu0.1 USN-7619-1
Ubuntu 22.04 LTS libssh 0.9.6-2ubuntu0.22.04.4 USN-7619-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libssh 0.11.2-1.1 openSUSE-SU-2025:15243-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libssh 0.11.2-r0 —
Alpine v3.23 libssh 0.11.2-r0 —
Alpine v3.22 libssh 0.11.2-r0 —

Advisories 3

References