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)
A vulnerability in libssh was discovered where, during server-side GSSAPI key exchange, a client-supplied Curve25519 public key shorter than expected is copied without proper length validation. This results in an out-of-bounds heap read, potentially allowing a remote unauthenticated attacker to disclose small amounts of server memory. The issue is classified as low severity and has no known exploits in the wild. Red Hat has released an update for libssh in their Hardened Images RPMs to address this flaw.
AI Analysis
Technical Summary
The libssh library contains a vulnerability (CVE-2026-59842) involving improper length validation of a client-supplied Curve25519 public key during server-side GSSAPI key exchange. This flaw leads to an out-of-bounds heap read, which could disclose limited server memory contents to a remote unauthenticated attacker. The vulnerability is identified as CWE-125 (out-of-bounds read). Red Hat has issued a security advisory and provided updated libssh packages (libssh-0.12.1-4.hum1) as part of their Hardened Images RPMs to remediate the issue.
Potential Impact
The vulnerability allows remote unauthenticated attackers to read small amounts of server memory due to an out-of-bounds heap read caused by improper length validation of a Curve25519 public key during GSSAPI key exchange. There is no indication of integrity or availability impact. No known exploits are reported in the wild. The overall impact is limited to confidentiality with low severity.
Mitigation Recommendations
Red Hat has released an updated libssh package (libssh-0.12.1-4.hum1) as part of their Hardened Images RPMs to fix this vulnerability. Users of affected Red Hat Hardened Images should apply this update promptly. Patch status is confirmed by the vendor advisory. No additional mitigation steps are specified or required beyond applying the official update.
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)
Description
A vulnerability in libssh was discovered where, during server-side GSSAPI key exchange, a client-supplied Curve25519 public key shorter than expected is copied without proper length validation. This results in an out-of-bounds heap read, potentially allowing a remote unauthenticated attacker to disclose small amounts of server memory. The issue is classified as low severity and has no known exploits in the wild. Red Hat has released an update for libssh in their Hardened Images RPMs to address this flaw.
CVSS v3.1
Score 3.7low
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The libssh library contains a vulnerability (CVE-2026-59842) involving improper length validation of a client-supplied Curve25519 public key during server-side GSSAPI key exchange. This flaw leads to an out-of-bounds heap read, which could disclose limited server memory contents to a remote unauthenticated attacker. The vulnerability is identified as CWE-125 (out-of-bounds read). Red Hat has issued a security advisory and provided updated libssh packages (libssh-0.12.1-4.hum1) as part of their Hardened Images RPMs to remediate the issue.
Potential Impact
The vulnerability allows remote unauthenticated attackers to read small amounts of server memory due to an out-of-bounds heap read caused by improper length validation of a Curve25519 public key during GSSAPI key exchange. There is no indication of integrity or availability impact. No known exploits are reported in the wild. The overall impact is limited to confidentiality with low severity.
Mitigation Recommendations
Red Hat has released an updated libssh package (libssh-0.12.1-4.hum1) as part of their Hardened Images RPMs to fix this vulnerability. Users of affected Red Hat Hardened Images should apply this update promptly. Patch status is confirmed by the vendor advisory. No additional mitigation steps are specified or required beyond applying the official update.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-x94w-cg8g-g593
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-59842"]
- Ecosystems
- []
- Database Specific Severity
- LOW
- Cvss Version
- 3.1
Threat ID: 6a6150e79c2644c7f8da2026
Added to database: 07/22/2026, 23:23:19 UTC
Last enriched: 07/22/2026, 23:37:20 UTC
Last updated: 07/31/2026, 19:24:46 UTC
Views: 27
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.