CVE-2026-0968Libssh: libssh: denial of service due to malformed sftp message
- 3.1LowCVSS base score
- 0.47%Exploitation in 30 daysEPSS · top 59% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By redhat
- 2 months later
· 2 months later
Published
- 8 months later
· 8 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Low3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L |
| NVDNVD · Modified | 3.1 | Low3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L |
- EPSS (exploitation in 30 days)
- 0.47% · top 59% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 3.1.
Affected products
Red Hat · Red Hat Enterprise Linux 10
- unaffected 0:0.12.0-2.el10 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:0.10.4-18.el9 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:0.10.4-18.el9 – < *
Red Hat · Red Hat Enterprise Linux 6
All versions: unaffected
Red Hat · Red Hat Enterprise Linux 7
All versions: unaffected
Red Hat · Red Hat Enterprise Linux 8
All versions: affected
Red Hat · Red Hat Hardened Images
All versions: unaffected
Red Hat · Red Hat OpenShift Container Platform 4
All versions: affected
Red Hat · Red Hat OpenShift Container Platform 4
All versions: affected
What to do
Workaround: A workaround suggested by upstream is to properly verify the identity of SFTP servers before connecting to them, as exploitation requires a libssh client to initiate a connection to a malicious or compromised SFTP server. Restricting SFTP connections to trusted and verified servers reduces the risk of exposure. The upstream project has issued fixed releases (libssh 0.11.4 and 0.12.0); updating to a version that includes the fix resolves the issue.
References
References5
- RHSA-2026:18160 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:18683 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-0968 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2436982 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://www.libssh.org/2026/02/10/libssh-0-12-0-and-0-11-4-security-releases/ (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-16335 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-0968)Record last updated .