OS Command Injection in libssh - CVE-2026-59846

 

OS Command Injection in libssh - CVE-2026-59846

Published: July 27, 2026


Vulnerability identifier: #VU139529
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-59846
CWE-ID: CWE-78
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: libssh
Affected software:
libssh

Detailed vulnerability description

The vulnerability allows a local user to disclose sensitive information.

The vulnerability exists due to improper neutralization of special elements in the ProxyCommand username expansion in the client component when expanding a user-supplied username into a ProxyCommand executed by the shell. A local user can supply a malicious username and trick the victim into initiating a connection to disclose sensitive information.

User interaction is required to initiate the connection, and the issue is limited to the client side.


How to mitigate CVE-2026-59846

Install security update from vendor's website.

Sources