6.5Medium

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

libssh; Red Hat Red Hat Enterprise Linux 10; Red Hat Red Hat Enterprise Linux 6; Red Hat Red Hat Enterprise Linux 7 Published: (1 year ago)

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.

Weakness (CWE): CWE-190

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
libssh libssh 0.11.0
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 —
— libssh 0.11.0 – ≤ 0.11.1

References and patches

CPE matches (NVD) (2)

  • cpe:2.3:a:libssh:libssh:0.11.0:*:*:*:*:*:*:*
  • cpe:2.3:a:libssh:libssh:0.11.1:*:*:*:*:*:*:*