---
id: CVE-2026-0967
title: A flaw was found in libssh
summary: >-
  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 expressio…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'
cwe:
  - CWE-1333
vendor: libssh
product: libssh
affected:
  - libssh <= 0.11.3
  - enterprise_linux = 9.0
  - enterprise_linux = 10.0
published: '2026-03-26'
updated: '2026-08-21'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-0967'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:18160'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:18683'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2026-0967'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2436981'
    label: secalert@redhat.com
  - url: >-
      https://www.libssh.org/2026/02/10/libssh-0-12-0-and-0-11-4-security-releases/
    label: secalert@redhat.com
tags:
  - nvd
epss: 0.00223
epssPercentile: 0.11446
ingestedAt: '2026-08-21T14:17:57.672Z'
---

## Overview

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.

## Affected

- `libssh <= 0.11.3`
- `enterprise_linux = 9.0`
- `enterprise_linux = 10.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
