libssh2 userauth.c userauth_password integer overflow
Published May 1, 2026
6.9
MEDIUMCVSS 4.0
EPSS 0.82%
Description
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.
Affected products
-
Affected
- 1.11.0
- 1.11.1
No data.
Red Hat Enterprise Linux 7 Extended Lifecycle Support
libssh2-0:1.8.0-4.el7_9.2
Fixed · RHSA-2026:61752
Red Hat Hardened Images
libssh2-main-1.11.1-5.1.hum1
Fixed · RHSA-2026:7021
Red Hat Hardened Images
rust-main-1.95.0-5.hum1
Fixed · RHSA-2026:16736
Red Hat Enterprise Linux 6
libssh2
Will not fix
Red Hat OpenShift Container Platform 4
conmon-rs
Not affected
Red Hat OpenShift Update Service
openshift-update-service/openshift-update-service-rhel8
Not affected
Red Hat Trusted Profile Analyzer
rhtpa/rhtpa-trustification-service-rhel9
Affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 Extended Lifecycle Support | libssh2-0:1.8.0-4.el7_9.2 | Fixed | RHSA-2026:61752 |
| Red Hat Hardened Images | libssh2-main-1.11.1-5.1.hum1 | Fixed | RHSA-2026:7021 |
| Red Hat Hardened Images | rust-main-1.95.0-5.hum1 | Fixed | RHSA-2026:16736 |
| Red Hat Enterprise Linux 6 | libssh2 | Will not fix | n/a |
| Red Hat OpenShift Container Platform 4 | conmon-rs | Not affected | n/a |
| Red Hat OpenShift Update Service | openshift-update-service/openshift-update-service-rhel8 | Not affected | n/a |
| Red Hat Trusted Profile Analyzer | rhtpa/rhtpa-trustification-service-rhel9 | Affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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.
Red Hat 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.
References (15)
- https://access.redhat.com/errata/RHSA-2026:16736
- https://access.redhat.com/errata/RHSA-2026:61752
- https://access.redhat.com/errata/RHSA-2026:7021
- https://access.redhat.com/security/cve/CVE-2026-7598 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2464597 Issue Tracking
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-26722 Advisory
- https://github.com/libssh2/libssh2/ product
- https://github.com/libssh2/libssh2/commit/256d04b60d80bf1190e96b0ad1e91b2174d744b1 patch
- https://github.com/libssh2/libssh2/pull/1858 issue-trackingpatchIssue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2026-7598
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-7598.json
- https://vuldb.com/submit/805564 exploitthird-party-advisoryThird Party AdvisoryVDB Entry
- https://vuldb.com/vuln/360555 vdb-entrytechnical-descriptionThird Party AdvisoryVDB Entry
- https://vuldb.com/vuln/360555/cti signaturepermissions-requiredPermissions RequiredVDB Entry
- https://www.cve.org/CVERecord?id=CVE-2026-7598
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
GitHub
No data