p PatchFirst

CVE-2026-15370

CVE-2026-15370 · Libssh: libssh: stack buffer overflow in sftp server longname construction

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 6.7 · Medium · EPSS 0.2% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • red hat enterprise linux 10

    Versions
    • ≥ 0:0.12.0-3.el10_2: Not affected (rpm)

    No fix published

  • red hat hardened images

    Versions
    • ≥ 0.12.2-1.hum1: Not affected (rpm)

    No fix published

  • red hat enterprise linux 8

    No fix published

  • red hat enterprise linux 9

    No fix published

  • libssh Debian:13

    Versions
    • 0.11.2-1
    • 0.11.2-1+deb13u1
    • 0.11.3-1
    Affected ranges
    • ECOSYSTEM: < 0.11.5-0+deb13u1

    Update to 0.11.5-0+deb13u1

  • libssh Debian:14

    Versions
    • 0.11.2-1
    • 0.11.3-1
    • 0.12.0-1
    • 0.12.0-2
    • 0.12.0-3
    Affected ranges
    • ECOSYSTEM: < 0.12.1-1

    Update to 0.12.1-1

  • libssh Ubuntu:26.04:LTS

    Versions
    • 0.11.2-1build1
    • 0.11.3-1
    • 0.11.3-1ubuntu1
    • 0.11.3-1ubuntu2
    Affected ranges
    • ECOSYSTEM: < 0.11.3-1ubuntu2.1

    Update to 0.11.3-1ubuntu2.1

Original sources

Check your server →