CVE-2026-59846: Libssh: libssh: information disclosure via proxycommand %r username expansion
Vulnerability summary
CVE-2026-59846 is a low (CVSS 3.9) vulnerability in libssh. EPSS estimates a 0.12% chance of exploitation in the next 30 days, higher than 2% of scored vulnerabilities.
Not severe (CVSS 3.9, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 19 · Related 13Timeline
- 21-07-2026PublishedVulnerability first disclosed.
- 06-11-2026Last modifiedVulnerability information updated.
Description
A flaw was found in libssh. A malicious username expanded through %r in ProxyCommand handling can inject shell metacharacters, exposing environment variables and causing unintended shell behavior.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated3.9LowCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated3.9LowCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
- NVDNIST3.9LowCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
- OSV · AlpineEcosystem advisory · calculated3.9LowCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N
EPSS trend
Probability
0.12%
Chance of exploitation in the next 30 days
Percentile
2%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.12% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-78Improper Neutralization of Special Elements used in an OS CommandThe product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command before it is sent to a downstream component.
- CWE-77Improper Neutralization of Special Elements used in a CommandThe product constructs all or part of a command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended command when it is sent to a downstream component.
Affected systems
Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard3 products
- libssh< 0.12.1-r0
- libssh-dev< 0.12.1-r0
- libssh2All versions (No fix recorded)
Wolfi3 products
- libssh< 0.12.1-r0
- libssh-dev< 0.12.1-r0
- libssh2All versions (No fix recorded)
Redhat2 products
- enterprise_linux8.0 | 9.0 | 10.0
- hardened_imagesna
Alpine1 product
- libssh< 0.12.1-r0
Debian1 product
- libsshAll versions (No fix recorded) | < 0.10.6-0+deb12u3 | < 0.11.5-0+deb13u1 | < 0.12.1-1
Libssh1 product
- libsshna
Ubuntu1 product
- libsshAll versions (No fix recorded) | < 0.6.3-4.3ubuntu0.6+esm6 | < 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm8 | < 0.9.3-2ubuntu2.5+esm5 | < 0.9.6-2ubuntu0.22.04.8 | < 0.10.6-2ubuntu0.5 | < 0.11.3-1ubuntu2.1
7 vendors · 12 products