CVE-2026-59846: Shell metacharacter injection in libssh ProxyCommand username expansion
- Vendors
- Red HatLibssh
CVE-2026-59846 is a shell metacharacter injection vulnerability in libssh's ProxyCommand handling. The library insufficiently sanitizes usernames substituted through the %r placeholder in ProxyCommand strings. An attacker-controlled username containing shell metacharacters can consequently alter shell interpretation, potentially exposing environment variables and causing unintended shell behavior in the application initiating the SSH connection.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation can disclose sensitive information, including environment variables accessible to the invoking process, and alter intended shell behavior. The vulnerability-specific CVSS assessment assigns low confidentiality and integrity impacts and no availability impact, with a base score of 3.9. Arbitrary code execution and privilege escalation are not explicitly established for this vulnerability.
Mitigation
If you can’t patch tonight, do this now.
Avoid ProxyCommand configurations that substitute untrusted usernames through %r. Disable affected ProxyCommand usage where practical, or restrict username inputs to trusted, validated values. On affected F5OS systems, do not initiate SSH connections from the system shell using untrusted username inputs.
Remediation
Patch, then assume compromise.
Install the distribution- or product-specific libssh security update. Fixed packages include RHEL 8 version 0.9.6-17.el8_10, RHEL 9 version 0.10.4-19.el9_8, RHEL 10 version 0.12.0-3.el10_2, and Debian 13 version 0.11.5-0+deb13u1. Ubuntu fixed packages include 0.11.3-1ubuntu2.1 for 26.04 LTS, 0.10.6-2ubuntu0.6 for 24.04 LTS, 0.9.6-2ubuntu0.22.04.9 for 22.04 LTS, 0.9.3-2ubuntu2.5+esm5 for 20.04 LTS, 0.8.0~20170825.94fa1e38-1ubuntu0.7+esm8 for 18.04 LTS, and 0.6.3-4.3ubuntu0.6+esm6 for 16.04 LTS. Ubuntu 20.04 and 18.04 fixes require Ubuntu Pro; Ubuntu 16.04 additionally requires Legacy Support. Use these releases or later applicable vendor-fixed packages rather than comparing version numbers across distributions. No fixed F5OS 2.x release is identified; apply the workaround pending a vendor-fixed release.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-59846 exploited in the wild?
- As of Nov 24, 2026, Mallory has no reports of CVE-2026-59846 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-59846?
- As of Nov 24, 2026, Mallory has found no public exploit for CVE-2026-59846.
- Is there a patch for CVE-2026-59846?
- Install the distribution- or product-specific libssh security update. Fixed packages include RHEL 8 version 0.9.6-17.el8_10, RHEL 9 version 0.10.4-19.el9_8, RHEL 10 version 0.12.0-3.el10_2, and Debian 13 version 0.11.5-0+deb13u1.
- What products are affected by CVE-2026-59846?
- Libssh, Red Hat Hardened Images, and Red Hat Enterprise Linux.
- How severe is CVE-2026-59846?
- CVE-2026-59846 has a CVSS v3.1 score of 3.9 (Low) and an EPSS score of 0.12% (1st percentile) as of Nov 24, 2026.
Recent activity
33 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.