CVE Database›Document archive›CVE-2026-7598

CVE-2026-7598

libssh2: integer overflow via large username or password arguments

Loading…

Severity

Important

Red Hat Product Security

9.1

CVSS 3.1

Review impact separately from score.

Published · May 2, 2026

Updated · September 1, 2026

Description

A flaw was found in the libssh2 library. A remote attacker can exploit an integer overflow vulnerability in the userauth_password function by manipulating the username_len or password_len arguments and cause a heap-based buffer overflow. This leads to a crash to the application linked to the library and potentially allows arbitrary code execution.

Statement

To exploit this flaw, an attacker needs to be able to supply an excessively large value to the arguments of the userauth_password function, typically to an application processing untrusted SSH authentication requests. The primary security impact of this issue is a crash to the application linked to the library due to memory corruption, potentially allowing arbitrary code execution.

Default Red Hat Enterprise Linux security features, including SELinux enforcement, Address Space Layout Randomization (ASLR) and NX (No-Execute) stack protection, significantly increase the difficulty of achieving arbitrary code execution, limiting the impact of this vulnerability.

Due to these reasons, this vulnerability has been rated with an important severity.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this flaw, applications linked to the libssh2 library should be configured or updated to exclusively use public key authentication. Explicitly disabling password-based logins prevents the application from executing the vulnerable userauth_password function.

CVSS / CWE

CVSS 3.1 · 9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

CWE-190 · Integer Overflow or Wraparound