Skip to main content
View

Attack ChainAIDerived

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

  1. Access
    Connect to libssh SSH server
  2. Delivery
    Initiate GSSAPI Curve25519 key exchange
  3. Exploit
    Send undersized public key
  4. Execution
    Trigger out-of-bounds heap read
  5. Impact
    Receive leaked server heap memory bytes

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

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 target server to be running libssh with GSSAPI key exchange support compiled in and actively enabled - this is a non-default configuration. Specifically, the server must be configured to advertise and accept GSSAPI key exchange algorithms such as gss-curve25519-sha256. The attack occurs during the pre-authentication key exchange phase, so no credentials are required (PR:N per CVSS). The high attack complexity rating (AC:H) reflects this configuration prerequisite: default libssh server deployments without GSSAPI are not affected by this vulnerability. Exploitation is further limited by the minimal data exposed per attempt; repeated connections may be needed to leak useful memory contents, which increases detection risk.

Impact

The CVSS 3.1 score of 3.7 (Low) accurately reflects a constrained risk profile. AV:N confirms network reachability and PR:N confirms no authentication is required, which are concerning signals in isolation, but AC:H significantly limits real-world exposure - GSSAPI key exchange must be explicitly compiled and enabled on the server, a configuration not present in the majority of libssh deployments. Confidentiality impact is Low (C:L), consistent with the description's qualifier of 'small amounts' of memory, and there is no integrity or availability impact (I:N/A:N). EPSS data was not provided in the available intelligence and is therefore unknown. The vulnerability is not listed in the CISA KEV catalog, and no proof-of-concept code has been identified. The realistic attack yield is low: memory leakage per attempt is small and unlikely to directly expose private keys or credentials unless heap layout is highly favorable. This is a low-priority finding for most organizations; highest risk applies to environments running libssh as a server with GSSAPI enabled that also handle sensitive in-memory data.

Exploit ScenarioDerived

A remote attacker connects to an SSH server running libssh with GSSAPI key exchange enabled and deliberately initiates a GSSAPI Curve25519 key exchange, supplying a public key shorter than the required 32 bytes. The server processes the malformed key without length validation, reads beyond the allocated heap buffer, and may return small amounts of adjacent server memory as part of the exchange. No public proof-of-concept code has been identified at time of analysis.

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

Out-of-bounds heap read in libssh exposes small amounts of server memory during GSSAPI key exchange, exploitable by remote unauthenticated attackers. When a client submits a Curve25519 public key shorter than the expected 32 bytes during server-side GSSAPI key exchange, libssh copies the key without validating its length, triggering a read beyond the intended buffer boundary. No public exploit has been identified at time of analysis; exploitation is constrained to servers with GSSAPI key exchange explicitly enabled, which is a non-default configuration.

RemediationAI

An exact fixed libssh package version is not confirmed in the available intelligence - monitor the Red Hat Security Advisory at https://access.redhat.com/security/cve/CVE-2026-59842 and Bugzilla issue 2498168 for patch release. On RHEL 8, 9, and 10 systems, apply errata updates via 'dnf update libssh' once Red Hat publishes a patched package. As an immediate compensating control, disable GSSAPI key exchange in the libssh server configuration if not operationally required; this eliminates the vulnerable code path entirely with no impact to non-GSSAPI SSH sessions. Additionally, restricting SSH server access to trusted networks via host-based firewall rules (e.g., firewalld or iptables) reduces exposure to untrusted clients while a patch is pending.

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 multiplatform C library implementing the SSHv2 protocol, widely packaged in enterprise Linux distributions. The flaw resides in the server-side GSSAPI (Generic Security Services Application Program Interface) key exchange routine, specifically in Curve25519 ECDH public key ingestion. CWE-125 (Out-of-bounds Read) identifies the root cause: the library performs a heap memory copy of the client-supplied Curve25519 key without first asserting that the input meets the mandatory 32-byte length. The under-length key causes the copy to read adjacent heap memory beyond the buffer, potentially exposing nearby heap contents. Per CPE data, affected products include libssh as packaged in 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 LOW
NVD 5.3 MEDIUM
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
vuln.today AI 3.7 LOW

GSSAPI key exchange must be explicitly enabled (AC:H); attack is pre-authentication (PR:N) with only small, bounded memory disclosure (C:L) and no integrity or availability impact.

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

Primary rating from Vendor (redhat).

CVSS VectorNVD

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

Lifecycle Timeline

3
Severity Changed
Jul 30, 2026 - 13:22 NVD
LOW MEDIUM
CVSS changed
Jul 30, 2026 - 13:22 NVD
3.7 (LOW) 5.3 (MEDIUM)
CVE Published
Jul 21, 2026 - 11:08 cve.org
LOW 3.7

DescriptionNVD

A flaw was found in libssh. During server-side GSSAPI key exchange, a client-supplied Curve25519 public key shorter than the expected length is copied without proper length validation, leading to an out-of-bounds heap read. This could allow a remote unauthenticated attacker to disclose small amounts of server memory.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Medium
widely packaged SSH library in enterprise Linux distributions
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

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

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: Low
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Not-Affected
SUSE Linux Enterprise Micro 5.3 Not-Affected
SUSE Linux Enterprise Micro 5.4 Not-Affected
SUSE Linux Enterprise Micro 5.5 Not-Affected

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