CVE-2026-15370
Received Received - Intake

libssh SFTP Longname Stack Buffer Overflow

Vulnerability report for CVE-2026-15370, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-07-21

Last updated on: 2026-07-21

Assigner: Red Hat, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-07-21
Last Modified
2026-07-21
Generated
2026-07-21
AI Q&A
2026-07-21
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
libssh libssh *

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-121 A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a stack-based buffer overflow in libssh's SFTP server directory listing. When an attacker provides a very long filename in a directory, the server's longname field overflows a fixed-size stack buffer during processing. This can crash the server or potentially allow code execution.

Detection Guidance

To detect this vulnerability, monitor for crashes in libssh-based SFTP servers during directory listings. Check logs for segmentation faults or unusual activity in SSH processes. No specific commands are provided in the context.

Impact Analysis

If you run a libssh-based SFTP server, an attacker could exploit this to crash your server or execute malicious code. This could lead to service disruption or unauthorized access to your system. The impact depends on server configuration and privileges.

Compliance Impact

This vulnerability could lead to unauthorized access or data breaches, violating GDPR's integrity and confidentiality requirements or HIPAA's security rules for protected health information. Organizations must patch to maintain compliance.

Mitigation Strategies

Apply the latest patches for libssh to fix the stack buffer overflow in SFTP directory listing. If patches are unavailable, restrict access to SFTP services or disable them until patched. Monitor vendor advisories for updates.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-15370. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart