Description
A flaw was found in libssh. During SFTP server directory listing, the longname field is constructed with unsafe concatenation into a fixed-size stack buffer. When a client causes the server to list attacker-controlled filenames, sufficiently long names can overflow that stack buffer and may lead to crashes or possible code execution on the server.
Published: 2026-07-21
Score: 6.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A stack buffer overflow occurs during SFTP directory listing when libssh constructs the longname field with unsafe concatenation into a fixed-size stack buffer. When a client forces the server to list attacker-controlled filenames that are sufficiently long, the buffer can overflow, leading to server crashes or potential execution of arbitrary code on the host.

Affected Systems

Red Hat Enterprise Linux 8, 9, 10 and Red Hat Hardened Images, all of which ship the vulnerable libssh component. Any system running the SFTP server on these platforms is affected.

Risk and Exploitability

The CVSS score of 6.7 indicates moderate severity, and the EPSS score of less than 1% reflects a low likelihood of exploitation at present. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is a remote SFTP client that supplies oversized filenames during a directory listing. Exploitation would require network access to the SFTP service and could result in a crash or, in the worst case, remote code execution on the server.

Generated by OpenCVE AI on July 30, 2026 at 17:58 UTC.

Remediation

Vendor Workaround

No workaround available.


OpenCVE Recommended Actions

  • Update the libssh package to the latest Red Hat release that contains the fix
  • Restart the SFTP server after the update to load the corrected library
  • Monitor SFTP logs for abnormal filename activity and enforce length restrictions if possible

Generated by OpenCVE AI on July 30, 2026 at 17:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6410-1 libssh security update
History

Thu, 30 Jul 2026 09:00:00 +0000

Type Values Removed Values Added
References

Mon, 27 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Libssh
Libssh libssh
Redhat hardened Images
Vendors & Products Libssh
Libssh libssh
Redhat hardened Images

Wed, 22 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 21 Jul 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 21 Jul 2026 09:15:00 +0000

Type Values Removed Values Added
Description A flaw was found in libssh. During SFTP server directory listing, the longname field is constructed with unsafe concatenation into a fixed-size stack buffer. When a client causes the server to list attacker-controlled filenames, sufficiently long names can overflow that stack buffer and may lead to crashes or possible code execution on the server.
Title Libssh: libssh: stack buffer overflow in sftp server longname construction
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Weaknesses CWE-121
CPEs cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
References
Metrics cvssV3_1

{'score': 6.7, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

Libssh Libssh
Redhat Enterprise Linux Hardened Images Hummingbird
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-30T08:29:07.609Z

Reserved: 2026-07-10T08:14:26.583Z

Link: CVE-2026-15370

cve-icon Vulnrichment

Updated: 2026-07-22T17:49:21.197Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-07-21T09:02:49Z

Links: CVE-2026-15370 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-07-30T18:00:15Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow