CVE-2026-0968: Libssh: libssh: denial of service due to malformed sftp message

Published Feb 4, 2026
·
Updated

A flaw was found in libssh in which a malicious SFTP (SSH File Transfer Protocol) server can exploit this by sending a malformed 'longname' field within an SSHFXPNAME message during a file listing operation. This missing null check can lead to reading beyond allocated memory on the heap. This can cause unexpected behavior or lead to a denial of service (DoS) due to application crashes.

Other sources

A malicious SFTP server can send malformed longname field of the SSHFXPNAME message (file listing). Due to the missing NULL check, the libssh could read beyond the buffer bounds on heap, causing unexpected behavior or crashes.

Red Hat

Libssh: libssh: denial of service due to malformed sftp message

Microsoft

Affected Software

6 affected componentsFixes available
libssh libssh
libssh libssh<=0.11.3
redhat Enterprise Linux=9.0
redhat Enterprise Linux=10.0
Microsoft azl3 libssh 0.10.6-7
Microsoft azl3 libssh 0.10.6-8

Event History

Feb 4, 2026
Data Sourced
via Red Hat·11:48 PM
DescriptionSeverityAffected Software
Mar 26, 2026
CVE Published
via MITRE·08:06 PM
Data Sourced
via MITRE·08:06 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeaknessAffected Software
Apr 5, 2026
Data Sourced
via Microsoft·08:02 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:02 AM
DescriptionSeverity
Updated
via Microsoft·08:02 AM
Affected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-0968?

CVE-2026-0968 is classified as a denial of service vulnerability.

2

How does CVE-2026-0968 affect libssh?

CVE-2026-0968 allows a malicious SFTP server to exploit libssh by sending a malformed 'longname' field causing a denial of service.

3

What versions of libssh are affected by CVE-2026-0968?

CVE-2026-0968 affects some versions of libssh, specifically those utilizing vulnerable SFTP functionalities.

4

How can I fix CVE-2026-0968?

To fix CVE-2026-0968, update to the latest version of libssh that addresses this vulnerability.

5

Is there a workaround for CVE-2026-0968?

Currently, there are no known effective workarounds for mitigating CVE-2026-0968, so updating is recommended.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203