Skip to main content

libssh2 EUVDEUVD-2026-26722

| CVE-2026-7598 MEDIUM
Integer Overflow or Wraparound (CWE-190)
2026-05-01 VulDB
6.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Establish TCP connection to SSH service
  2. Delivery
    Send SSH protocol handshake
  3. Exploit
    Craft SSH_MSG_USERAUTH_REQUEST with UINT32_MAX-adjacent username_len
  4. Execution
    Trigger integer overflow in buffer allocation
  5. Persist
    Cause heap memory corruption
  6. Impact
    Achieve partial confidentiality/integrity compromise

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK

1 technique across 1 tactic: Execution

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

Exploitation Conditions

Remote unauthenticated exploitation against services using libssh2 for SSH password authentication. Specific prerequisite: target application must invoke libssh2's userauth_password function with attacker-controlled username_len and password_len values derived from network input without upstream bounds validation. Exploitation requires crafting SSH protocol packets with length fields approaching UINT32_MAX (4,294,967,295 bytes), which limits attack to scenarios where: (1) SSH client or intermediary does not enforce protocol-level length constraints, (2) target system has sufficient memory to process multi-gigabyte authentication attempt without earlier failure, and (3) network infrastructure permits transmission of packets claiming such payload sizes. Standard OpenSSH clients validate input lengths, so exploitation typically requires custom SSH client implementation or direct libssh2 API usage in attacker-controlled application. Does NOT affect systems where calling applications pre-validate authentication input lengths to reasonable bounds (e.g., <1024 bytes) before invoking libssh2.

Impact

CVSS 7.3 (High) with network vector, low complexity, and no authentication required presents concerning baseline metrics. However, real-world risk is tempered by significant exploitation barriers. The CVSS impact ratings (C:L/I:L/A:L - all 'Low') indicate partial system compromise rather than complete takeover. Successful exploitation requires crafting SSH authentication packets with username or password length fields approaching 4GB (UINT32_MAX), which most SSH clients and intermediary network devices will reject due to protocol constraints or resource limits. The vulnerability affects the SSH library layer, not a standalone service, so exploitation depends on how calling applications handle authentication input validation. EPSS data not provided, but given no CISA KEV listing and complexity of real-world exploitation through standard SSH clients, widespread opportunistic scanning is unlikely. Primary risk scenarios involve custom SSH clients or programmatic libssh2 usage where attackers control raw protocol parameters. The available patch (GitHub commit, not yet in tagged release) means distributions may still ship vulnerable versions. Priority should focus on internet-facing services using libssh2 for SSH server authentication where username/password input flows from untrusted sources without upstream validation.

Exploit ScenarioDerived

An attacker initiates SSH connection to a service using vulnerable libssh2 (e.g., custom SFTP server, git-over-SSH endpoint). During password authentication handshake, the attacker sends a crafted SSH_MSG_USERAUTH_REQUEST packet with username_len field set to UINT32_MAX - 20, causing integer overflow when libssh2 calculates total packet buffer size (username_len + password_len + overhead). The resulting undersized buffer allocation leads to heap overflow when username data is copied, corrupting heap metadata and potentially enabling code execution or information disclosure through adjacent memory reads. Publicly available exploit code exists (patch commit reveals exact vulnerable calculation and exploitation primitive).

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

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

Alert me

AnalysisAIv1 – May 01, 2026

Integer overflow in libssh2 up to version 1.11.1 allows remote unauthenticated attackers to cause memory corruption during SSH password authentication. The vulnerability exists in the userauth_password function where inadequate bounds checking on username_len and password_len parameters can trigger integer overflow when calculating buffer sizes, potentially leading to confidentiality breach, integrity compromise, and service disruption. Upstream fix available via GitHub commit 256d04b60d80bf1190e96b0ad1e91b2174d744b1. No active exploitation confirmed (not in CISA KEV), but publicly accessible patch reveals exact exploitation technique.

RemediationAI

Apply the upstream fix by upgrading to libssh2 versions incorporating commit 256d04b60d80bf1190e96b0ad1e91b2174d744b1 available at https://github.com/libssh2/libssh2/commit/256d04b60d80bf1190e96b0ad1e91b2174d744b1 and https://github.com/libssh2/libssh2/pull/1858. Note: Upstream fix available as PR/commit; released patched version not independently confirmed at time of analysis - verify with distribution vendors for packaged updates. For systems unable to immediately patch, implement compensating controls by deploying network-layer SSH traffic inspection to reject authentication packets with username or password length fields exceeding reasonable thresholds (recommend 256 bytes for username, 1024 bytes for password). This may break legitimate use cases involving very long credentials but significantly reduces attack surface. Additionally, restrict SSH service exposure to trusted networks via firewall rules, reducing remote attack opportunities. If libssh2 is used in application code, add input validation rejecting username_len or password_len values exceeding 1024 bytes before passing to libssh2 API - note this adds application-layer complexity and may conflict with future legitimate protocol usage.

Affected VersionsENISA

libssh2 1.11.1
libssh2 1.11.0

Affected Packages

euvd libssh2 no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

libssh2 is a widely-used C library implementing the SSH2 protocol, commonly integrated into applications like curl, git, and various file transfer tools. This vulnerability (CWE-190: Integer Overflow) occurs in src/userauth.c during SSH password authentication. The root cause is arithmetic overflow when the userauth_password function sums username_len, password_len, and protocol overhead constants (27, 40, or 44 bytes depending on code path) to allocate packet buffers. If username_len or password_len values approach UINT32_MAX, the addition wraps around to a small positive integer, causing undersized buffer allocation. Subsequent operations writing username and password data into this undersized buffer can corrupt heap metadata or adjacent memory regions. The patch adds explicit overflow checks comparing username_len against (UINT32_MAX - overhead) before arithmetic, and rewrites the conditional from additive form to subtraction-resistant form to prevent wraparound.

Know when Libssh2 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 (VulDB) PRIMARY 6.9 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
SUSE 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Red Hat 9.1 HIGH

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
Severity Changed
May 01, 2026 - 22:22 NVD
HIGH MEDIUM
CVSS changed
May 01, 2026 - 22:22 NVD
7.3 (HIGH) 6.9 (MEDIUM)
Patch released
May 01, 2026 - 21:46 nvd
Patch available
CVE Published
May 01, 2026 - 21:30 nvd
MEDIUM 6.9

DescriptionCVE.org

A security vulnerability has been detected in libssh2 up to 1.11.1. The impacted element is the function userauth_password of the file src/userauth.c. Such manipulation of the argument username_len/password_len leads to integer overflow. The attack may be launched remotely. The name of the patch is 256d04b60d80bf1190e96b0ad1e91b2174d744b1. A patch should be applied to remediate this issue.

Executive ViewAI

Why It Matters

libssh2 versions up to 1.11.1 contain an integer overflow vulnerability in SSH password authentication that allows unauthenticated remote attackers to corrupt memory and potentially breach confidentiality or disrupt service. This affects any organization using libssh2 for SSH connectivity, particularly in automated systems, file transfer operations, or remote access infrastructure where the library handles untrusted network input.

Business Impact: High
Compensating Controls

Apply vendor patch. If immediate patching is not possible: restrict SSH access to trusted IP ranges via firewall rules, disable password-based authentication in favor of key-based authentication where feasible, and monitor SSH authentication logs for failed connection attempts or anomalous access patterns.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Data Quality
9 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC Vendor CIRCL GitHub 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.0%
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2026-55200 CRITICAL POC
9.2 Jun 17

Remote code execution in libssh2 through version 1.11.1 stems from an unchecked packet_length field in ssh2_transport_re

CVE-2019-17498 HIGH POC
8.1 Oct 21

In libssh2 v1.9.0 and earlier versions, the SSH_MSG_DISCONNECT logic in packet.c has an integer overflow in a bounds che

CVE-2026-58050 HIGH POC
8.3 Jun 28

Heap buffer overflow in the libssh2 SSH client library (all versions through 1.11.1) lets a malicious or compromised SSH

CVE-2026-58051 HIGH POC
8.3 Jun 28

Free of an uninitialized, attacker-influenceable pointer in libssh2 through 1.11.1 allows a malicious SSH server to corr

CVE-2025-15661 HIGH POC
8.3 Jun 18

Out-of-bounds heap read in libssh2 through 1.11.1 enables a malicious SFTP server or man-in-the-middle attacker to leak

CVE-2019-13115 HIGH POC
8.1 Jul 16

In libssh2 before 1.9.0, kex_method_diffie_hellman_group_exchange_sha256_key_exchange in kex.c has an integer overflow t

CVE-2019-3862 CRITICAL
9.1 Mar 21

An out of bounds read flaw was discovered in libssh2 before 1.8.1 in the way SSH_MSG_CHANNEL_REQUEST packets with an exi

CVE-2019-3855 HIGH
8.8 Mar 21

An integer overflow flaw which could lead to an out of bounds write was discovered in libssh2 before 1.8.1 in the way pa

CVE-2019-3858 CRITICAL
9.1 Mar 21

An out of bounds read flaw was discovered in libssh2 before 1.8.1 when a specially crafted SFTP packet is received from

CVE-2019-3859 CRITICAL
9.1 Mar 21

An out of bounds read flaw was discovered in libssh2 before 1.8.1 in the _libssh2_packet_require and _libssh2_packet_req

CVE-2019-3861 CRITICAL
9.1 Mar 25

An out of bounds read flaw was discovered in libssh2 before 1.8.1 in the way SSH packets with a padding length value gre

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed
SUSE Linux Enterprise Micro 5.3 Fixed

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