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.
Published: 2026-07-21
Score: 3.9 Low
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability in libssh allows a maliciously crafted username to be expanded through the %r placeholder in ProxyCommand processing, enabling the injection of shell metacharacters. This flaw can lead to the disclosure of environment variables and unintended shell behavior, effectively exposing sensitive configuration data that may be available to an attacker who can supply or influence the username value. The weakness corresponds to improper input validation and is classified as an information exposure issue.

Affected Systems

Red Hats Red Enterprise Linux distributions—including versions 8, 9, 10—and the Red Hats Hardened Images rely on libssh. The advisory does not list specific libssh versions, so any installation containing libssh on the affected distributions may be vulnerable.

Risk and Exploitability

The CVSS score of 3.9 indicates a low severity impact focused on confidentiality. The EPSS score of less than 1% suggests that exploitation attempts are unlikely in current threat data, and the vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be remote, requiring an attacker to initiate an SSH connection using a ProxyCommand that expands %r; thus the user must control or influence the username submitted to the SSH daemon. Given the low exploitation likelihood and limited information leakage, the overall risk remains moderate, but the vulnerability should still be addressed promptly to avoid inadvertent data exposure.

Generated by OpenCVE AI on August 3, 2026 at 00:38 UTC.

Remediation

Vendor Workaround

Make sure you are not executing connections with untrusted username inputs.


OpenCVE Recommended Actions

  • Install the Red Hat Security Advisory RHSA‑2026:42922 to update libssh to the patched version.
  • Modify or remove the ProxyCommand directive in sshd_config to prevent the use of the %r placeholder with untrusted usernames.
  • Restart the SSH daemon to apply configuration changes and verify that no ProxyCommand usage remains active.

Generated by OpenCVE AI on August 3, 2026 at 00:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DSA Debian DSA DSA-6410-1 libssh security update
History

Wed, 29 Jul 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Mon, 27 Jul 2026 23:30:00 +0000

Type Values Removed Values Added
First Time appeared Libssh
Libssh libssh
Redhat hardened Images
Vendors & Products Libssh
Libssh libssh
Redhat hardened Images

Fri, 24 Jul 2026 04:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-200

Thu, 23 Jul 2026 14:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-77

Wed, 22 Jul 2026 20:00:00 +0000

Type Values Removed Values Added
References

Wed, 22 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 22 Jul 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Low


Tue, 21 Jul 2026 13:15:00 +0000

Type Values Removed Values Added
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.
Title Libssh: libssh: information disclosure via proxycommand %r username expansion
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
References
Metrics cvssV3_1

{'score': 3.9, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N'}


Subscriptions

Libssh Libssh
Redhat Enterprise Linux Hardened Images Hummingbird
cve-icon MITRE

Status: PUBLISHED

Assigner: redhat

Published:

Updated: 2026-07-23T13:40:22.734Z

Reserved: 2026-07-07T15:40:24.561Z

Link: CVE-2026-59846

cve-icon Vulnrichment

Updated: 2026-07-22T14:03:18.765Z

cve-icon NVD

No data.

cve-icon Redhat

Severity : Low

Publid Date: 2026-07-21T12:46:04Z

Links: CVE-2026-59846 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T00:45:03Z

Weaknesses
  • CWE-77

    Improper Neutralization of Special Elements used in a Command ('Command Injection')