Skip to main content

libssh CVE-2026-59848

| EUVDEUVD-2026-46256 MEDIUM
Allocation of Resources Without Limits or Throttling (CWE-770)
2026-07-21 redhat GHSA-4h4r-q9xg-gfmm
5.3
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

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

  1. Access
    Attacker operates malicious SFTP server
  2. Delivery
    Victim libssh client initiates SFTP connection
  3. Exploit
    Server sends responses with unknown request IDs
  4. Execution
    Client queues unknown responses indefinitely
  5. Persist
    Client heap memory exhausts
  6. Impact
    Client process crashes or hangs

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource allocation 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 libssh-based client application to initiate an SFTP session with an attacker-controlled server. The victim must be using libssh (not OpenSSH's ssh/sftp binaries) for the SFTP operation. No authentication, elevated privileges, or non-default configuration on the victim system is required once the connection is established - the malicious server drives the attack entirely through crafted response packets. Limiting factors include: the attacker must control or impersonate the SFTP server endpoint the client connects to; exploitation is client-side only and does not pivot to other systems (S:U, unchanged scope); and the availability impact is partial (A:L), meaning memory exhaustion is gradual rather than instantaneous. Applications that only connect to hardcoded, trusted SFTP servers over authenticated channels are not practically exploitable even if the libssh version is vulnerable.

Impact

The CVSS 5.3 Medium score (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L) correctly categorises this as a network-reachable, low-complexity denial-of-service with limited availability impact. The critical nuance is directionality: the attacker must control the SFTP server, not the network path - the victim application initiates the connection to the malicious server. This substantially limits opportunistic exploitation; an attacker cannot scan the internet for libssh clients to attack directly. Real-world risk is highest for: applications that fetch files from user-supplied or untrusted SFTP endpoints, CI/CD pipelines connecting to dynamically provisioned SFTP backends, and managed-file-transfer scenarios where the server trust boundary is weak. No EPSS data was provided, and no KEV listing or POC code exists at time of analysis, suggesting no observed active exploitation. The low availability impact (A:L) further indicates partial rather than immediate process termination - memory pressure builds gradually, reducing urgency for emergency patching outside high-sensitivity environments.

Exploit ScenarioDerived

An attacker operates a rogue SFTP server and induces a target application - such as a backup client, CI/CD pipeline, or file-transfer tool - to connect to it, either through DNS poisoning, BGP hijacking, misconfigured server URLs, or social engineering. Once the SFTP session is established, the server continuously returns response packets referencing request IDs that the libssh client never issued, causing the client's internal queue to grow without bound until the process exhausts available memory and crashes or becomes unresponsive. No public exploit code exists at time of analysis, but the attack logic is straightforward to implement given the description.

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

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

Alert me

AnalysisAIv1 – Jul 21, 2026

Unbounded memory growth in libssh's SFTP client allows a malicious server to exhaust client-side memory by sending responses for unknown request IDs, resulting in a denial-of-service condition against any application using libssh for SFTP operations. Affected deployments include libssh as packaged in Red Hat Enterprise Linux 8, 9, 10, and Red Hat Hardened Images. No public exploit code and no active exploitation have been identified at time of analysis; the CVSS score of 5.3 (Medium) reflects the limited availability impact and the requirement that a victim client connect to an attacker-controlled server.

RemediationAI

Apply the updated libssh package provided by Red Hat for the affected RHEL release via standard package management (dnf update libssh). Consult https://access.redhat.com/security/cve/CVE-2026-59848 for the specific fixed package version once Red Hat publishes the errata; an exact fix version is not independently confirmed from the available data. As a compensating control where immediate patching is not possible, restrict SFTP client applications to connecting only to explicitly trusted, allowlisted SFTP server endpoints using firewall egress rules or application-level hostname/IP allow lists - this directly eliminates the prerequisite of connecting to a malicious server. A trade-off of this control is operational friction for environments with dynamic or user-supplied server endpoints. Monitoring for abnormal memory growth in processes using libssh can provide early detection of exploitation attempts.

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 SSH2 protocol for both client and server roles, widely packaged in Linux distributions. Its SFTP subsystem tracks outstanding client requests using numeric request IDs and maintains an internal queue of pending operations awaiting server responses. The flaw arises because when a server returns a response referencing an ID not present in the client's outstanding-request table, libssh does not discard the response - it queues it indefinitely. A malicious SFTP server can repeatedly inject bogus response packets with arbitrary unknown IDs, causing the client-side queue to grow without bound and consuming all available heap memory. The CWE classification is not formally assigned in the source data, but the root cause aligns with improper resource release / uncontrolled resource consumption (analogous to CWE-400). The affected packages are identified by CPE strings covering cpe:2.3:a:red_hat:red_hat_enterprise_linux_8, _9, _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 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
vuln.today AI 5.3 MEDIUM

Network vector confirmed; attacker controls server, victim connects; no privileges or user interaction needed beyond the connection itself; availability impact is low (gradual memory growth, not instant crash).

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

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

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

DescriptionCVE.org

A flaw was found in libssh. A malicious SFTP server can send responses for unknown request IDs that libssh clients keep queued indefinitely, causing unbounded memory growth and client-side denial of service.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
widely packaged SSH library in Linux distributions, not ubiquitous
Data Quality
6 sources
Confidence: High

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.3%
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· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
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