{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": [
              "cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*",
              "cpe:2.3:a:libssh:libssh:0.12.0:*:*:*:*:*:*:*"
            ],
            "extracted_events": [
              {
                "introduced": "0.11.0"
              },
              {
                "fixed": "0.11.5"
              },
              {
                "introduced": "0.12.0"
              },
              {
                "last_affected": "0.12.0"
              }
            ],
            "source": [
              "CPE_RANGE",
              "CPE_STRING"
            ]
          },
          "events": [
            {
              "introduced": "894e07aede659d26e13569ac9987191b81bc359d"
            },
            {
              "fixed": "a09fdd00416e53b6ed436df6ff14339a4f884601"
            },
            {
              "introduced": "50313883f3a077458cde4ea95bf46bfeb0771b34"
            },
            {
              "last_affected": "50313883f3a077458cde4ea95bf46bfeb0771b34"
            }
          ],
          "repo": "https://gitlab.com/libssh/libssh-mirror",
          "type": "GIT"
        }
      ],
      "versions": [
        "0.12.0"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "redhat",
    "cwe_ids": [
      "CWE-121"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/15xxx/CVE-2026-15370.json"
  },
  "details": "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.",
  "id": "CVE-2026-15370",
  "modified": "2026-09-24T03:30:47.162076960Z",
  "published": "2026-07-21T09:07:34.608Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://access.redhat.com/downloads/content/package-browser/"
    },
    {
      "type": "WEB",
      "url": "https://catalog.redhat.com/software/containers/"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:47768"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/errata/RHSA-2026:55855"
    },
    {
      "type": "ADVISORY",
      "url": "https://access.redhat.com/security/cve/CVE-2026-15370"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/15xxx/CVE-2026-15370.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-15370"
    },
    {
      "type": "REPORT",
      "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2499049"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Libssh: libssh: stack buffer overflow in sftp server longname construction"
}