CVE-2026-0967

Libssh: libssh: denial of service via inefficient regular expression processing

Published Mar 26, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

A flaw in libssh allows a remote attacker, by controlling client configuration files or known_hosts files, to craft hostnames that trigger inefficient regular expression backtracking within the match_pattern() function. This backtracking can consume excessive processor time and memory, ultimately causing the client to time out or become unresponsive, which manifests as a denial of service for anyone using that client.

Affected Systems

The vulnerability impacts Red Hat products including Red Hat Enterprise Linux 10, 6, 7, 8, and 9, Red Hat Hardened Images, and Red Hat OpenShift Container Platform 4, as well as all distributions employing libssh 0.12.0 or 0.11.4. The affected components are present in the listed RHEL releases and OpenShift 4, and the issue originates from the libssh library used by these platforms.

Risk and Exploitability

The CVSS score of 5.5 indicates a medium severity, and the EPSS score of less than 1% shows a very low probability of current exploitation. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires an attacker to supply crafted configuration or known_hosts entries, which can be done remotely if the attacker can influence those files. Once exploited, the attack can lead to client-side resource exhaustion and denial of service without compromising confidentiality or integrity.

Remediation

Vendor Workaround

Avoid using complex patterns in configuration files and known_hosts.


OpenCVE Recommended Actions

  • Upgrade libssh to the latest security release (0.12.0 or later).
  • Apply the most recent Red Hat security updates for all affected RHEL and OpenShift platforms.
  • Avoid using complex regular expression patterns in configuration files and known_hosts, as a temporary workaround to reduce backtracking risk.

Generated by OpenCVE AI on April 15, 2026 at 15:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4844-1 libssh security update
Debian DSA Debian DSA DSA-6410-1 libssh security update
Ubuntu USN Ubuntu USN USN-8051-2 libssh vulnerabilities
Ubuntu USN Ubuntu USN USN-8051-1 libssh vulnerabilities
History
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:8
cpe:/o:redhat:rhel_els:6
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
cpe:/o:redhat:enterprise_linux:9::baseos
References
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10 cpe:/o:redhat:enterprise_linux:10.2
References
Type Values Removed Values Added
First Time appeared Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat hummingbird
Type Values Removed Values Added
CPEs cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description No description is available for this CVE. 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.
Title libssh: libssh: Denial of Service via inefficient regular expression processing Libssh: libssh: denial of service via inefficient regular expression processing
First Time appeared Redhat
Redhat enterprise Linux
Redhat openshift
Weaknesses CWE-1333
CPEs cpe:/a:redhat:openshift:4
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:6
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat openshift
References
Type Values Removed Values Added
First Time appeared Libssh
Libssh libssh
Vendors & Products Libssh
Libssh libssh
Type Values Removed Values Added
Description No description is available for this CVE.
Title libssh: libssh: Denial of Service via inefficient regular expression processing
References
Metrics threat_severity

None

cvssV3_0

{'score': 2.2, 'vector': 'CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:N/A:L'}

threat_severity

Low

Weaknesses
  • CWE-1333

    Inefficient Regular Expression Complexity

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 6, 2026, 5:49 PM
Reserved
Jan 14, 2026, 9:55 PM
Status
Modified
Published
Mar 26, 2026, 9:17 PM
Modified
Nov 6, 2026, 6:17 PM
Severity
Low
Public date
Feb 10, 2026, 6:47 PM