Skip to content
Heist/ feed
Back to feed
Low

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2026-0968
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 20:45 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 26 Mar 2026, 20:06 UTC

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.

osv:CVE-2026-0968
Complete source record
{
  "id": "90c15ce7ce2deb6d75910fffd986c62ec3ff2aac3842e5c34152986ddedd9621",
  "url": "https://osv.dev/vulnerability/CVE-2026-0968",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Libssh: libssh: denial of service due to malformed sftp message",
    "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 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.",
    "evidence": "osv:CVE-2026-0968",
    "products": [],
    "severity": "low",
    "structured": {
      "id": "CVE-2026-0968",
      "aliases": [
        "CVE-2026-0968"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/libssh/libssh-mirror",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "last_affected": "301d0e16dfa8a5cac1cff956b6880ca90eb82864"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "last_affected": "0.11.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "libssh-0.11.3",
            "libssh-0.11.2",
            "libssh-0.11.1",
            "libssh-0.11.0",
            "libssh-0.8.0",
            "release-0-3-0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-0968.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.250144990Z",
      "provider": "osv",
      "references": [
        "https://access.redhat.com/downloads/content/package-browser/",
        "https://www.libssh.org/2026/02/10/libssh-0-12-0-and-0-11-4-security-releases/",
        "https://access.redhat.com/errata/RHSA-2026:18160",
        "https://access.redhat.com/errata/RHSA-2026:18683",
        "https://access.redhat.com/security/cve/CVE-2026-0968",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/0xxx/CVE-2026-0968.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-0968",
        "https://bugzilla.redhat.com/show_bug.cgi?id=2436982"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-476"
        ],
        "cna_assigner": "redhat",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "0:0.12.0-2.el10"
                  },
                  {
                    "fixed": "0:0.10.4-18.el9"
                  },
                  {
                    "fixed": "0:0.10.4-18.el9"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "InverseAffectedRanges"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/0xxx/CVE-2026-0968.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-0968",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506826,
  "published_at": "2026-03-26T20:06:29.554+00:00"
}