CVE-2026-59843

Libssh: libssh: denial of service via zero advertised channel packet size

Published Jul 21, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
A flaw was found in libssh. A remote authenticated peer can advertise a zero maximum packet size in SSH_MSG_CHANNEL_OPEN, causing later channel writes to loop indefinitely and consume CPU, leading to denial of service.

Analysis

AI-generated

Technical impact

A flaw in the libssh library allows an authenticated remote peer to advertise a zero maximum packet size during an SSH channel open request. The server subsequently enters an infinite loop when writing to that channel, consuming CPU resources until the process is terminated. This results in a denial of service that reduces the availability of the host system. The weakness maps to CWE‑400: Uncontrolled Resource Consumption and CWE‑835: Infinite Loop.

Affected Systems

The vulnerability is present in Red Hat Enterprise Linux 10, 8, and 9, as well as Red Hat Hardened Images that ship the libssh component (Hummingbird). Any system running the affected package versions is impacted.

Risk and Exploitability

The CVSS base score of 6.5 indicates moderate severity, and the EPSS score of less than 1% points to a low probability of exploitation in the wild. The attack path requires an authenticated SSH session, meaning the attacker must have valid credentials or have already compromised the target. No workaround is available, and the issue is not listed in CISA KEV, so the recommended response is to apply the vendor update promptly.

Remediation

Vendor Workaround

No workaround available.


OpenCVE Recommended Actions

  • Install the Red Hat security update RHSA‑2026:42922 on all affected RHEL 8, 9, and 10 installations and Hardened Images to patch the libssh library.
  • Restart the SSH service or reboot the system to ensure the patched library is loaded into memory.
  • Monitor CPU usage and SSH audit logs for abnormal channel open attempts or sustained high CPU consumption, and investigate any anomalies immediately.

Generated by OpenCVE AI on August 13, 2026 at 11:22 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-8699-1 libssh vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:8::appstream
cpe:/a:redhat:enterprise_linux:9::appstream
cpe:/o:redhat:enterprise_linux:8::baseos
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
Weaknesses CWE-835
Type Values Removed Values Added
First Time appeared Libssh
Libssh libssh
Redhat hardened Images
Vendors & Products Libssh
Libssh libssh
Redhat hardened Images
Type Values Removed Values Added
Weaknesses CWE-400
Metrics ssvc

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

Type Values Removed Values Added
Description A flaw was found in libssh. A remote authenticated peer can advertise a zero maximum packet size in SSH_MSG_CHANNEL_OPEN, causing later channel writes to loop indefinitely and consume CPU, leading to denial of service.
Title Libssh: libssh: denial of service via zero advertised channel packet size
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 5, 2026, 10:18 PM
Reserved
Jul 7, 2026, 3:40 PM
Status
Modified
Published
Jul 21, 2026, 12:18 PM
Modified
Sep 1, 2026, 9:18 PM
Severity
Moderate
Public date
Jul 21, 2026, 11:07 AM