Vulnerability · Published Mar 26, 2026 · Assigned by redhat

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

Low 3.1

In plain English

A low-severity null pointer dereference in Red Hat Enterprise Linux 10 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.1Low
Exploit odds (30 days)0.5%top 60.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10libssh0.12.0-2.el10ALSA-2026:18160
AlmaLinux:9libssh0.10.4-18.el9ALSA-2026:18683
AlmaLinux:10libssh-config0.12.0-2.el10ALSA-2026:18160
AlmaLinux:9libssh-config0.10.4-18.el9ALSA-2026:18683
AlmaLinux:10libssh-devel0.12.0-2.el10ALSA-2026:18160
AlmaLinux:9libssh-devel0.10.4-18.el9ALSA-2026:18683
Alpine:v3.23libssh0.11.4-r0ALPINE-CVE-2026-0968
Alpine:v3.24libssh0.12.0-r0ALPINE-CVE-2026-0968
Debian:12libssh0.10.6-0+deb12u3DEBIAN-CVE-2026-0968
Debian:13libssh0.11.5-0+deb13u1DEBIAN-CVE-2026-0968
Debian:14libssh0.12.0-1DEBIAN-CVE-2026-0968
Rocky Linux:10libssh0:0.12.0-2.el10RLSA-2026:18160
Rocky Linux:9libssh0:0.10.4-18.el9RLSA-2026:18683
Ubuntu:22.04:LTSlibssh0.9.6-2ubuntu0.22.04.6UBUNTU-CVE-2026-0968
Ubuntu:22.04:LTSlibssh0.9.6-2ubuntu0.22.04.6USN-8051-1
Ubuntu:24.04:LTSlibssh0.10.6-2ubuntu0.3USN-8051-1
Ubuntu:24.04:LTSlibssh0.10.6-2ubuntu0.3UBUNTU-CVE-2026-0968
Ubuntu:25.10libssh0.11.2-1ubuntu0.2UBUNTU-CVE-2026-0968
Ubuntu:25.10libssh0.11.2-1ubuntu0.2USN-8051-1

Affected products (as reported)

Weakness: CWE-476 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L

References