CVE-2026-59846 Libssh: libssh: information disclosure via proxycommand %r username expansion

Low 3.9 Published Updated

A malicious username in libssh ProxyCommand can inject shell metacharacters, leading to environment variable exposure and potential code execution.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-59846?

CVE-2026-59846 is a low-severity command injection vulnerability in Redhat Enterprise Linux, published on 21 Jul 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

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.

Weakness: CWE-77, CWE-78

Which versions are affected by CVE-2026-59846?

It affects 3 products.

Products include Libssh Libssh, Redhat Enterprise Linux, Redhat Hardened Images.

How do I fix CVE-2026-59846?

Apply the vendor's patch.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-59846 being exploited?

There is no known exploitation of CVE-2026-59846 in the wild and no public exploit code.

All Redhat Enterprise Linux vulnerabilities

Sources

Also known as BELL-CVE-2026-59846, DEBIAN-CVE-2026-59846, ECHO-689c-0cb6-4ae0, GHSA-fvwj-j79q-57v7, UBUNTU-CVE-2026-59846.

Is CVE-2026-59846 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free