Skip to content
Heist/ feed
Back to feed
HighFix available

libssh — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2026-15370

A flaw was found in libssh. During SFTP server directory listing, the longname field is constructed with unsafe concatenation into a fixed-size stack buffer. When a client causes the server to list attacker-controlled filenames, sufficiently long names can overflow that stack buffer and may lead to crashes or possible code execution on the server.

Products
libssh
Affected versions
0.11.2-1, 0.11.2-1+deb13u1, 0.11.3-1, 0.12.0-1, 0.12.0-2, 0.12.0-3
Fixed versions
0.11.5-0+deb13u1, 0.12.1-1
CVEs
CVE-2026-15370
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 23:06 UTC · Revision 1

Source evidence

DEBIAN-CVE-2026-15370

core-osv · Original source

Published 21 Jul 2026, 09:16 UTC

A flaw was found in libssh. During SFTP server directory listing, the longname field is constructed with unsafe concatenation into a fixed-size stack buffer. When a client causes the server to list attacker-controlled filenames, sufficiently long names can overflow that stack buffer and may lead to crashes or possible code execution on the server.

osv:DEBIAN-CVE-2026-15370

libssh

Fixed versions: 0.11.5-0+deb13u1

libssh

Fixed versions: 0.12.1-1

Complete source record
{
  "id": "2e087e5ab9ba026ac4b51a03027d01fe7d8eff300ae32227a1f77d62559977fa",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2026-15370",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2026-15370",
    "summary": "A flaw was found in libssh. During SFTP server directory listing, the longname field is constructed with unsafe concatenation into a fixed-size stack buffer. When a client causes the server to list attacker-controlled filenames, sufficiently long names can overflow that stack buffer and may lead to crashes or possible code execution on the server.",
    "evidence": "osv:DEBIAN-CVE-2026-15370",
    "products": [
      {
        "name": {
          "value": "libssh",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.11.5-0+deb13u1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.11.2-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.11.2-1+deb13u1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.11.3-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "libssh",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "0.12.1-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "0.11.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.11.3-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.12.0-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.12.0-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "0.12.0-3",
            "evidence": "/affected/1/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "DEBIAN-CVE-2026-15370",
      "aliases": [
        "DEBIAN-CVE-2026-15370"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.11.5-0+deb13u1"
                }
              ]
            }
          ],
          "package": {
            "name": "libssh",
            "purl": "pkg:deb/debian/libssh?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "versions": [
            "0.11.2-1",
            "0.11.2-1+deb13u1",
            "0.11.3-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-15370.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.12.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "libssh",
            "purl": "pkg:deb/debian/libssh?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "versions": [
            "0.11.2-1",
            "0.11.3-1",
            "0.12.0-1",
            "0.12.0-2",
            "0.12.0-3"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-15370.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-17T00:00:08.375018010Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-15370"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2026-15370"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-15370",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 349395,
  "published_at": "2026-07-21T09:16:53.683+00:00"
}