CVE Vulnerabilities

CVE-2026-0967

Inefficient Regular Expression Complexity

Published: Mar 26, 2026 | Modified: May 19, 2026
CVSS 3.x
5.5
MEDIUM
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
2.2 LOW
CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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.

Weakness

The product uses a regular expression with a worst-case computational complexity that is inefficient and possibly exponential.

Affected Software

NameVendorStart VersionEnd Version
LibsshLibssh*0.11.3 (including)
Enterprise_linuxRedhat9.0 (including)9.0 (including)
Enterprise_linuxRedhat10.0 (including)10.0 (including)
Red Hat Enterprise Linux 10RedHatlibssh-0:0.12.0-2.el10*
Red Hat Enterprise Linux 9RedHatlibssh-0:0.10.4-18.el9*
Red Hat Enterprise Linux 9RedHatlibssh-0:0.10.4-18.el9*
LibsshUbuntudevel*
LibsshUbuntuesm-infra-legacy/xenial*
LibsshUbuntuesm-infra/bionic*
LibsshUbuntuesm-infra/focal*
LibsshUbuntuesm-infra/xenial*
LibsshUbuntujammy*
LibsshUbuntunoble*
LibsshUbuntuquesting*
LibsshUbuntuupstream*

Potential Mitigations

References