Skip to main content
EPSS 0.4%top 66%

A flaw was found in libssh. During server-side GSSAPI key exchange, a client-supplied Curve25519 public key shorter than the expected length is… (CVE-2026-59842)

0
Low
Published: 07/21/2026 (07/21/2026, 12:33:36 UTC)
Source: GCVE Database

Description

A vulnerability in libssh allows a remote unauthenticated attacker to cause an out-of-bounds heap read during server-side GSSAPI key exchange by supplying a Curve25519 public key shorter than expected. This flaw can lead to disclosure of small amounts of server memory. The issue is tracked as CVE-2026-59842 and has a low severity rating with a CVSS score of 3.7. Red Hat has released updates for libssh packages to address this vulnerability. Mitigations include disabling GSSAPIKeyExchange or removing the gss-curve25519-sha256- algorithm from GSSAPIKexAlgorithms if appropriate.

CVSS v3.1

Score 3.7low

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/19/2026, 16:10:36 UTC

Technical Analysis

CVE-2026-59842 is a vulnerability in libssh where during the server-side GSSAPI key exchange, a client-supplied Curve25519 public key that is shorter than the expected length is copied without proper length validation. This results in an out-of-bounds heap read (CWE-125), potentially allowing a remote unauthenticated attacker to disclose small amounts of server memory. The flaw affects confidentiality by exposing memory contents that may include sensitive information. Red Hat has issued security advisories and updated libssh RPM packages (version 0.12.1-4.hum1) to fix this issue. Mitigation options include disabling the vulnerable key exchange mechanism or removing the affected algorithm from configuration. No known exploits in the wild have been reported.

Potential Impact

The vulnerability allows remote unauthenticated attackers to read out-of-bounds memory on the server during GSSAPI key exchange, potentially disclosing small amounts of sensitive server memory. This could include cryptographic keys or memory addresses that might aid in bypassing protection mechanisms. There is no impact on integrity or availability reported. The overall severity is low with a CVSS score of 3.7.

Mitigation Recommendations

Red Hat has released updated libssh packages (libssh-0.12.1-4.hum1) that address this vulnerability. Users should apply these updates as soon as possible. Alternatively, disabling GSSAPIKeyExchange or removing the gss-curve25519-sha256- algorithm from GSSAPIKexAlgorithms can mitigate the issue if patching is not immediately feasible. There are no indications that no action is required; remediation is recommended.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-x94w-cg8g-g593
Osv Schema Version
1.4.0
Aliases
["CVE-2026-59842"]
Database Specific Severity
LOW
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a6150e79c2644c7f8da2026

Added to database: 07/22/2026, 23:23:19 UTC

Last enriched: 08/19/2026, 16:10:36 UTC

Last updated: 09/12/2026, 12:11:47 UTC

Views: 115

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses