Skip to main content

libssh EUVDEUVD-2026-46177

| CVE-2026-59843 MEDIUM
Uncontrolled Resource Consumption (CWE-400)
2026-07-21 redhat GHSA-4846-7xwg-pw5m
6.5
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid SSH credentials
  2. Delivery
    Connect to libssh-based SSH service
  3. Exploit
    Send SSH_MSG_CHANNEL_OPEN with zero maximum packet size
  4. Execution
    Trigger infinite write loop in channel handler
  5. Persist
    Exhaust server CPU
  6. Impact
    Sustained denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to hold a valid, authenticated SSH session against a service built on libssh - corresponding to the PR:L metric in the CVSS vector. The trigger is a crafted SSH_MSG_CHANNEL_OPEN message with a zero maximum packet size, which is a standard protocol message available to any authenticated channel opener; no special feature flag, non-default configuration, or elevated permission beyond basic authentication is required. Exploitation is limited by the authentication requirement: unauthenticated network actors cannot reach the vulnerable code path. The impact is confined to CPU exhaustion on the target process (S:U, scope unchanged) - there is no confidentiality or integrity impact. Platform scope is constrained to deployments of the libssh library on Red Hat Enterprise Linux 8, 9, 10, and Hardened Images per available CPE data.

Impact

CVSS 3.1 scores this at 6.5 (Medium) with vector AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. The network vector and low attack complexity indicate this is remotely triggerable with minimal effort, but PR:L confirms that a valid authenticated session is a hard prerequisite - unauthenticated attackers cannot reach the vulnerable code path. The availability impact is High, meaning a single malicious authenticated peer can fully saturate the CPU of the target process. No KEV listing is present in the input data, meaning confirmed active exploitation has not been reported to CISA. No public POC is identified. No EPSS score was provided, so probabilistic exploitation likelihood cannot be quantified here. The realistic threat actor is an insider or a user with compromised SSH credentials; opportunistic mass exploitation is constrained by the authentication barrier. The signals are internally consistent - CVSS vector aligns with the described attack mechanism - and no conflicting data is present.

Exploit ScenarioDerived

An attacker with valid SSH credentials connects to a server running a libssh-based SSH daemon and initiates channel negotiation by sending SSH_MSG_CHANNEL_OPEN with the maximum packet size field set to zero. The libssh server-side write loop, lacking a guard against a zero-size limit, enters an infinite iteration and pegs CPU utilization, effectively causing denial of service for the duration of the connection. No public POC has been identified, but the attack requires only standard SSH protocol messages and low-level protocol knowledge.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 21, 2026

CPU exhaustion via malformed SSH channel negotiation in libssh allows an authenticated remote peer to cause indefinite server-side looping and denial of service. By advertising a zero maximum packet size in SSH_MSG_CHANNEL_OPEN, the attacker forces subsequent channel writes into an infinite loop, fully consuming CPU on the affected host. This affects libssh as shipped in Red Hat Enterprise Linux 8, 9, and 10 and Red Hat Hardened Images; no public exploit or CISA KEV listing has been identified at time of analysis.

RemediationAI

Apply the libssh package update provided by Red Hat for the affected RHEL major versions (8, 9, 10) and Hardened Images as detailed at https://access.redhat.com/security/cve/CVE-2026-59843. An exact patched package version is not independently confirmed in the available data - consult the Red Hat advisory and errata directly for the specific build to install. As a compensating control while awaiting the patch, restrict SSH access to the minimal set of trusted authenticated users via AllowUsers or AllowGroups directives in sshd_config; this reduces the attacker pool but does not eliminate risk from a compromised authorized account. Additionally, consider deploying connection-rate limiting and maximum session controls (MaxSessions, MaxStartups in sshd_config) to limit the CPU impact of an ongoing attack. Note that these mitigations do not prevent exploitation by a legitimately authenticated malicious user - patching is the only definitive fix.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

libssh is a C library implementing the SSHv2 protocol, used in applications requiring embedded SSH client or server functionality. The SSH channel mechanism uses SSH_MSG_CHANNEL_OPEN to negotiate parameters including the remote maximum packet size, which governs how much data can be sent per channel write. When a peer advertises a maximum packet size of zero, any subsequent write operation that divides or iterates based on that value enters an unreachable-exit loop, consuming CPU without bound. The root cause is absent or insufficient input validation of the negotiated packet size prior to its use in write-loop logic - conceptually equivalent to CWE-835 (Loop with Unreachable Exit Condition) or CWE-400 (Uncontrolled Resource Consumption), though no formal CWE is assigned in this record. CPE data confirms the affected surface is the libssh package bundled within Red Hat Enterprise Linux 8 (cpe:2.3:a:red_hat:red_hat_enterprise_linux_8), RHEL 9, RHEL 10, and Red Hat Hardened Images.

Know when Red Hat Enterprise Linux 10 gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (redhat) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 6.5 MEDIUM

Authenticated network attacker sends a crafted channel-open message; zero packet size causes unbounded CPU loop giving A:H with no confidentiality or integrity impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 6.5 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.5%
Top 63% exploitable
Prevalence
High
libssh bundled in widely deployed Red Hat Enterprise Linux
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

cpe:2.3:a:red_hat:red_hat_enterprise_linux_10:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_8:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_9:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_hardened_images:*:*:*:*:*:*:*:*
CVE-2026-18663 MEDIUM
5.9 Aug 12

Heap corruption via double-free in 389-ds-base's LDAP control parsing allows an unauthenticated remote attacker to crash

CVE-2026-4631 CRITICAL POC
9.8 Apr 07

Remote code execution in Cockpit's web interface allows unauthenticated attackers to execute arbitrary commands on the h

CVE-2026-4480 CRITICAL POC
9.0 May 26

Remote code execution in Samba's printing subsystem allows remote attackers to inject arbitrary shell commands via craft

CVE-2026-101258 HIGH POC
7.8 Oct 06

Ghostscript can execute arbitrary shell commands with the privileges of its process when it renders a crafted PostScript

CVE-2026-96889 HIGH POC
7.8 Sep 23

Use-after-free in librsvg during rendering of crafted SVG documents with nested XInclude directives and duplicate entity

CVE-2026-4775 HIGH POC
7.8 Mar 24

A signed integer overflow vulnerability exists in the libtiff library's putcontig8bitYCbCr44tile function that leads to

CVE-2026-114406 MEDIUM POC
6.8 Oct 21

The system CA trust store shipped in Red Hat's ca-certificates RPM packages includes eMudhra root authorities that signe

CVE-2026-18922 CRITICAL
9.8 Sep 07

Authentication bypass in 389 Directory Server (shipped as Red Hat Directory Server 11-13 and within RHEL 6-10) lets remo

CVE-2026-14544 CRITICAL
9.8 Jul 03

Remote code execution and privilege escalation in HPLIP (HP Linux Imaging and Printing) affects the hpcups print filter

CVE-2026-76578 CRITICAL
9.8 Sep 07

Unauthenticated privilege escalation in FreeIPA (Red Hat Identity Management) allows a remote attacker to gain genuine a

CVE-2026-102560 CRITICAL
9.8 Sep 29

A heap buffer overflow exists in libsoup's WebSocket permessage-deflate compression path: when a very large outbound mes

CVE-2026-5121 HIGH
7.5 Mar 30

Remote code execution in libarchive on 32-bit systems allows unauthenticated attackers to execute arbitrary code via spe

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Module for Basesystem 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy