CVE-2026-59846 in Libssh and 2 more products
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.
Affects 3 products from 2 vendors. Facts below cite their sources.
Requires local access, low complexity, low privileges required, requires user interaction, impact contained to the vulnerable component, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Libssh | Libssh | No version listed by the source |
| Redhat | Enterprise Linux | 8.0 9.0 10.0 |
| Redhat | Hardened Images | No version listed by the source |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-59846 |
|---|---|
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N |
| Published | 2026-07-21 |
| Last modified | 2026-09-01 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-77: Command Injection
Attacker injects operating system commands through application inputs passed to a shell or system call.
CWE-78: OS Command Injection
Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.
Related attack patterns (CAPEC)
CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-77, CWE-78
CAPEC-76 Manipulating Web Input to File System Calls via CWE-77
CAPEC-108 Command Line Execution through SQL Injection via CWE-78
CAPEC-6 Argument Injection via CWE-78
CAPEC-15 Command Delimiters via CWE-77, CWE-78
Show all 11
CAPEC-40 Manipulating Writeable Terminal Devices via CWE-77
CAPEC-75 Manipulating Writeable Configuration Files via CWE-77
CAPEC-88 OS Command Injection via CWE-78
CAPEC-136 LDAP Injection via CWE-77
CAPEC-183 IMAP/SMTP Command Injection via CWE-77
CAPEC-248 Command Injection via CWE-77
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A low severity vulnerability (CVE-2026-59846) affects the target system. 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.
Questions
What is CVE-2026-59846?
A low severity vulnerability (CVE-2026-59846) affects the target system. 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.
What is the CVSS score for CVE-2026-59846?
CVE-2026-59846 has CVSS 3.9 (Low). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N. EPSS: 0.1%.
Is CVE-2026-59846 actively exploited?
No confirmed active exploitation of CVE-2026-59846 as of 2026-10-06.
How do I remediate CVE-2026-59846?
Advisory: https://access.redhat.com/errata/RHSA-2026:42922
What systems are affected by CVE-2026-59846?
CVE-2026-59846 affects Libssh Libssh; Redhat Enterprise Linux, Hardened Images.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Libssh","product":"Libssh","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-09-01.