CVE catalog

CVE-2026-0967

A flaw was found in libssh. A remote attacker, by controlling client configuration files or known_hosts files, could craft specific hostnames that when processed by the `match_pattern()` function can

[CVE catalog]

Severity
Medium · CVSS 5.5CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.23% · Oct 25, 2026

A flaw was found in libssh. A remote attacker, by controlling client configuration files or known_hosts files, could craft specific hostnames that when processed by the `match_pattern()` function can lead to inefficient regular expression backtracking. This can cause timeouts and resource exhaustion, resulting in a Denial of Service (DoS) for the client.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianlibsshsid0.12.2-1fixed
Debianlibsshforky0.12.2-1fixed
Debianlibsshtrixie0.11.5-0+deb13u1fixed
Debianlibsshtrixie-security0.11.5-0+deb13u1fixed
Debianlibsshbookworm0.10.6-0+deb12u2vulnerable
Debianlibsshbookworm-security0.10.6-0+deb12u3fixed
CpelibsshNot reportedNot reportedvulnerable
CpelibsshNot reported0.10.6-2ubuntu0.3fixed
Cpelibssh-4Not reported0.10.6-2ubuntu0.3fixed
Cpelibssh-devNot reported0.10.6-2ubuntu0.3fixed
Cpelibssh-docNot reported0.10.6-2ubuntu0.3fixed
Cpelibssh-gcrypt-4Not reported0.10.6-2ubuntu0.3fixed
Cpelibssh-gcrypt-devNot reported0.10.6-2ubuntu0.3fixed
CpelibsshNot reportedNot reportedunknown
Cpeenterprise_linuxNot reportedNot reportedunknown
CpelibsshNot reportedNot reportedunknown
Cpeenterprise_linuxNot reportedNot reportedunknown
Ubuntulibsshpro0.9.0-1ubuntu1vulnerable
Ubuntulibsshpro0.9.0-1ubuntu4vulnerable
Ubuntulibsshpro0.9.0-1ubuntu5vulnerable
Ubuntulibsshpro0.9.3-2ubuntu1vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.1vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.2vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.3vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.4vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.5vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.5+esm1vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.5+esm2vulnerable
Ubuntulibsshpro0.9.3-2ubuntu2.5+esm3fixed
Ubuntulibssh22.040.9.6-1vulnerable
Ubuntulibssh22.040.9.6-1build1vulnerable
Ubuntulibssh22.040.9.6-2vulnerable
Ubuntulibssh22.040.9.6-2build1vulnerable
Ubuntulibssh22.040.9.6-2ubuntu0.22.04.1vulnerable
Ubuntulibssh22.040.9.6-2ubuntu0.22.04.2vulnerable
Ubuntulibssh22.040.9.6-2ubuntu0.22.04.3vulnerable
Ubuntulibssh22.040.9.6-2ubuntu0.22.04.4vulnerable
Ubuntulibssh22.040.9.6-2ubuntu0.22.04.5vulnerable
Ubuntulibssh22.040.9.6-2ubuntu0.22.04.6fixed
Ubuntulibssh24.040.10.5-3ubuntu1vulnerable
Ubuntulibssh24.040.10.5-3ubuntu2vulnerable
Ubuntulibssh24.040.10.6-2vulnerable
Ubuntulibssh24.040.10.6-2build1vulnerable
Ubuntulibssh24.040.10.6-2build2vulnerable
Ubuntulibssh24.040.10.6-2ubuntu0.1vulnerable
Ubuntulibssh24.040.10.6-2ubuntu0.2vulnerable
Ubuntulibssh24.040.10.6-2ubuntu0.3fixed
Ubuntulibssh25.100.11.1-1vulnerable
Ubuntulibssh25.100.11.1-2vulnerable
Ubuntulibssh25.100.11.2-1vulnerable
Ubuntulibssh25.100.11.2-1build1vulnerable
Ubuntulibssh25.100.11.2-1ubuntu0.1vulnerable
Ubuntulibssh25.100.11.2-1ubuntu0.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibsshsourcesid0.12.0-1not yet assignedNot reported[1127693]
Debianlibsshsourceforky0.12.0-1not yet assignedNot reported[1127693]
Debianlibsshsourcetrixie0.11.5-0+deb13u1not yet assignedNot reported[1127693]
Debianlibsshsourcebookworm0.10.6-0+deb12u3not yet assignedNot reported[1127693]
CpelibsshcpeNot reported0.10.6-2ubuntu0.3Not reportedNot reportedNot reported
Cpelibssh-4cpeNot reported0.10.6-2ubuntu0.3Not reportedNot reportedNot reported
Cpelibssh-devcpeNot reported0.10.6-2ubuntu0.3Not reportedNot reportedNot reported
Cpelibssh-doccpeNot reported0.10.6-2ubuntu0.3Not reportedNot reportedNot reported
Cpelibssh-gcrypt-4cpeNot reported0.10.6-2ubuntu0.3Not reportedNot reportedNot reported
Cpelibssh-gcrypt-devcpeNot reported0.10.6-2ubuntu0.3Not reportedNot reportedNot reported
Ubuntulibsshdebpro0.9.3-2ubuntu2.5+esm3Not reportedUBUNTU-CVE-2026-0967Not reported
Ubuntulibsshdeb22.040.9.6-2ubuntu0.22.04.6Not reportedUBUNTU-CVE-2026-0967Not reported
Ubuntulibsshdeb24.040.10.6-2ubuntu0.3Not reportedUBUNTU-CVE-2026-0967Not reported
Ubuntulibsshdeb25.100.11.2-1ubuntu0.2Not reportedUBUNTU-CVE-2026-0967Not reported

[Debian bug #1127693]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libssh-4]Affected

    Source package: [libssh]

    Details (4)
    • 0.10.6-0+deb12u2 · amd64 · bookworm

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u2 · arm64 · bookworm

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u1 · amd64 · bookworm-security

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u1 · arm64 · bookworm-security

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

  • [libssh-dev]Affected

    Source package: [libssh]

    Details (4)
    • 0.10.6-0+deb12u2 · amd64 · bookworm

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u2 · arm64 · bookworm

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u1 · amd64 · bookworm-security

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u1 · arm64 · bookworm-security

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

  • [libssh-doc]Affected

    Source package: [libssh]

    Details (4)
    • 0.10.6-0+deb12u2 · all · bookworm

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u2 · all · bookworm

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u1 · all · bookworm-security

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u1 · all · bookworm-security

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

  • [libssh-gcrypt-4]Affected

    Source package: [libssh]

    Details (4)
    • 0.10.6-0+deb12u2 · amd64 · bookworm

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u2 · arm64 · bookworm

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u1 · amd64 · bookworm-security

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u1 · arm64 · bookworm-security

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

  • Source package: [libssh]

    Details (4)
    • 0.10.6-0+deb12u2 · amd64 · bookworm

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u2 · arm64 · bookworm

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u1 · amd64 · bookworm-security

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

    • 0.10.6-0+deb12u1 · arm64 · bookworm-security

      Affected · Fixed: 0.10.6-0+deb12u3

      nvd · libssh · debian · bookworm; nvd · libssh · debian · 12

[Debian 13 (Trixie)]

  • [libssh-4]Affected

    Source package: [libssh]

    Details (4)
    • 0.11.2-1+deb13u1 · amd64 · trixie

      Affected · Fixed: 0.11.5-0+deb13u1

      nvd · libssh · debian · 13

    • 0.11.2-1+deb13u1 · arm64 · trixie

      Affected · Fixed: 0.11.5-0+deb13u1

      nvd · libssh · debian · 13

    • 0.11.5-0+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 0.11.5-0+deb13u1

      nvd · libssh · debian · 13

    • 0.11.5-0+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 0.11.5-0+deb13u1

      nvd · libssh · debian · 13

  • [libssh-dev]Affected

    Source package: [libssh]

    Details (4)
    • 0.11.2-1+deb13u1 · amd64 · trixie

      Affected · Fixed: 0.11.5-0+deb13u1

      nvd · libssh · debian · 13

    • 0.11.2-1+deb13u1 · arm64 · trixie

      Affected · Fixed: 0.11.5-0+deb13u1

      nvd · libssh · debian · 13

    • 0.11.5-0+deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 0.11.5-0+deb13u1

      nvd · libssh · debian · 13

    • 0.11.5-0+deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 0.11.5-0+deb13u1

      nvd · libssh · debian · 13

  • [libssh-doc]Affected

    Source package: [libssh]

    Details (4)
    • 0.11.2-1+deb13u1 · all · trixie

      Affected · Fixed: 0.11.5-0+deb13u1

      nvd · libssh · debian · 13

    • 0.11.2-1+deb13u1 · all · trixie

      Affected · Fixed: 0.11.5-0+deb13u1

      nvd · libssh · debian · 13

    • 0.11.5-0+deb13u1 · all · trixie-security

      Fixed · Fixed: 0.11.5-0+deb13u1

      nvd · libssh · debian · 13

    • 0.11.5-0+deb13u1 · all · trixie-security

      Fixed · Fixed: 0.11.5-0+deb13u1

      nvd · libssh · debian · 13

Observed:

References