Libssh: libssh: denial of service via inefficient regular expression processing
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 4 fixed, 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-1333.
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 expression backtracking. This can cause timeouts and resource exhaustion, resulting in a Denial of Service (DoS) for the client.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | — | 0.12.0-2.el10 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9 | — | 0.10.4-18.el9 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 9 | — | 0.10.4-18.el9 | Patch available | CNA |
| Red Hat | Red Hat Enterprise Linux 6 | — | — | Not affected | CNA |
| Red Hat | Red Hat Enterprise Linux 7 | — | — | Not affected | CNA |
| Red Hat | Red Hat Enterprise Linux 8 | — | — | No fix listed | CNA |
| Red Hat | Red Hat Hardened Images | — | — | Not affected | CNA |
| Red Hat | Red Hat OpenShift Container Platform 4 | — | — | No fix listed | CNA |
| Red Hat | Red Hat OpenShift Container Platform 4 | — | — | No fix listed | CNA |
- Red Hat Enterprise Linux 10 VendorRed Hat Affected — Fixed in 0.12.0-2.el10 Patch available CNA
- Red Hat Enterprise Linux 9 VendorRed Hat Affected — Fixed in 0.10.4-18.el9 Patch available CNA
- Red Hat Enterprise Linux 9 VendorRed Hat Affected — Fixed in 0.10.4-18.el9 Patch available CNA
- Red Hat Enterprise Linux 6 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Enterprise Linux 7 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Enterprise Linux 8 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat Hardened Images VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat OpenShift Container Platform 4 VendorRed Hat Affected — Fixed in — No fix listed CNA
- Red Hat OpenShift Container Platform 4 VendorRed Hat Affected — Fixed in — No fix listed CNA
Remediation
Red Hat 2 advisories
- RHSA-2026:18683 Released 2026-05-19 · Red Hat rating Moderatelibssh security update
- Red Hat Enterprise Linux AppStream (v. 9) libssh-devel-0.10.4-18.el9
- Red Hat Enterprise Linux BaseOS (v. 9) libssh-0.10.4-18.el9, libssh-config-0.10.4-18.el9
- RHSA-2026:18160 Released 2026-05-19 · Red Hat rating Moderatelibssh security update
- Red Hat Enterprise Linux AppStream (v. 10) libssh-devel-0.12.0-2.el10
- Red Hat Enterprise Linux BaseOS (v. 10) libssh-0.12.0-2.el10, libssh-config-0.12.0-2.el10
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 6 and 5 more products — RHSA-2026:18160
5 records Highest priority Priority MEDIUM 1 MEDIUM, 4 LOW
Other records, highest priority first
- TI-2026-00732 Libssh: libssh: denial of service via zero-length input in ssh_get_hexa()Priority MEDIUM 43
- TI-2026-00730 Libssh: improper sanitation of paths received from scp serversPriority LOW 28
- TI-2026-00734 Libssh: libssh: denial of service due to malformed sftp messagePriority LOW 16
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 8 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Red Hat Enterprise Linux AppStream (v. 10) | Fixed | RHSA-2026:18160 |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | RHSA-2026:18683 |
| Red Hat Enterprise Linux BaseOS (v. 10) | Fixed | RHSA-2026:18160 |
| Red Hat Enterprise Linux BaseOS (v. 9) | Fixed | RHSA-2026:18683 |
Not affected: 3 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2026-0967
- 2026-10-03 Alias added: GHSA-6jpg-fr24-wpvf
References
More Red Hat Enterprise Linux vulnerabilities
- TI-2019-08259 Underflow in PHP-FPM can lead to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2018-10530 Code injection in [UNKNOWN] RichFaces KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05975 GNU Bash through 4.3 bash43-025 processes trailing strings after certain malformed… KEVCVSS 3.1CRITICAL 9.8
- TI-2014-05157 GNU Bash through 4.3 processes trailing strings after function definitions in the values… KEVCVSS 3.1CRITICAL 9.8
- TI-2025-23530 Sudo before 1.9.17p1 allows local users to obtain root access because /etc/nsswitch.conf… KEVCVSS 3.1CRITICAL 9.3
- TI-2021-17490 mod_proxy SSRF KEVCVSS 3.1CRITICAL 9.0
Sources
- CVE-2026-0967 · CVE Program
- CVE-2026-0967 · NVD
- FIRST EPSS
- GHSA-6jpg-fr24-wpvf · GitHub Advisory Database · CC BY 4.0
- CVE-2026-0967 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences