---
id: CVE-2026-0968
title: >-
  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 `SSH_FXP_NAME` message during a file listing operation
summary: >-
  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 `SSH_FXP_NAME` message during a file listing operation. This missing
  null check c…
severity: low
cvss: 3.1
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L'
cwe:
  - CWE-476
vendor: libssh
product: libssh
affected:
  - libssh <= 0.11.3
  - enterprise_linux = 9.0
  - enterprise_linux = 10.0
published: '2026-03-26'
updated: '2026-08-21'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-0968'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:18160'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:18683'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2026-0968'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2436982'
    label: secalert@redhat.com
  - url: >-
      https://www.libssh.org/2026/02/10/libssh-0-12-0-and-0-11-4-security-releases/
    label: secalert@redhat.com
tags:
  - nvd
epss: 0.00442
epssPercentile: 0.35674
ingestedAt: '2026-08-21T14:17:57.723Z'
---

## Overview

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 `SSH_FXP_NAME` 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.

## Affected

- `libssh <= 0.11.3`
- `enterprise_linux = 9.0`
- `enterprise_linux = 10.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
