Skip to main content
Mallory
LowVulnerability

CVE-2026-59846: Shell metacharacter injection in libssh ProxyCommand username expansion

Published Jul 21, 2026 · Updated 4 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days2 mentions · peak 1 in a dayToday
CVSS3.9Low · v3.1
EPSS0.12%1st percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendors
Red HatLibssh
IdentifiersCVE-2026-59846CWE-78 · Improper Neutralization of Special…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
LibsshLibsshapplication
Red HatHardened Imagesapplication
Red HatRed Hat Enterprise Linuxoperating_system
FAQ

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.
Activity feed

Recent activity

33 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
tenable nessus pluginsNews · Oct 27, 2026Debian dla-4844 : libssh-4 - security update | Tenable®UnknownRead more ↗tenable nessus pluginsNews · Oct 14, 2026Unity Linux 20.1070a Security Update: libssh (UTSA-2026-130108) | Tenable®A libssh vulnerability affecting Unity Linux 20 allows shell metacharacter injection through a malicious username expanded using %r in ProxyCommand handling. This can expose environment variables and cause unintended shell behavior. The reported CVSS v3 base score is 3.9 (Low), with local access, low privileges, and user interaction required. Nessus detects affected package versions rather than testing exploitation. Unity Linux advisory UTSA-2026-130108 directs users to update libssh.Read more ↗tenable nessus pluginsNews · Oct 13, 2026Ubuntu 22.04 LTS / 24.04 LTS / 26.04 LTS : libssh vulnerabilit... | Tenable®Improper sanitization of shell metacharacters during username expansion in ProxyCommand strings could allow an attacker to obtain sensitive information.Read more ↗tenable cloud security pluginsNews · Oct 2, 2026Echo: libssh: security update to 0.12.0-3+e2 | Tenable®A shell-metacharacter injection vulnerability in libssh's ProxyCommand handling. A malicious username expanded through %r can expose environment variables and trigger unintended shell behavior. The advisory rates it Low, with a CVSS v3 base score of 3.9; the vector indicates local access, low privileges, and required user interaction. Updating to version 0.12.0-3+e2 or later addresses the vulnerability.Read more ↗
+13 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity3Community discussion across Reddit, Mastodon, and other social sources.