Description
SSHFS is a network filesystem client for connecting to SSH servers. From version 1.4 until 3.7.6, SSHFS accepts a bracketed mount source such as [-oProxyCommand=CMD]:/path and find_base_path() removes the brackets, leaving a host value that begins with - and is passed directly to ssh as a command-line argument. When a caller also supplies a path-valued sftp_server, ssh treats the normalized host as an option and the server path as its destination, causing an injected ProxyCommand to execute locally before any connection or authentication succeeds. The attack requires a caller or wrapper that passes an attacker-controlled mount source to SSHFS with the required sftp_server configuration and results in arbitrary command execution as the user running SSHFS. This issue is fixed in version 3.7.6.
Published: 2026-08-19
Score: 7 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

SSHFS contains an argument injection flaw that allows an attacker to execute arbitrary commands on the host system. The vulnerability arises when a mount source is supplied in a bracketed form such as [-oProxyCommand=CMD]:/path; the program removes the brackets and passes the resulting string, beginning with a dash, as a command-line argument to ssh. When the caller also supplies a path-valued sftp_server, ssh interprets the malformed host as an option and the server path as its destination, causing the injected ProxyCommand to run locally. This flaw enables execution of arbitrary code with the privileges of the user running SSHFS and can be used to compromise the entire system if the user has administrative rights.

Affected Systems

The affected product is the libfuse SSHFS client, versions from 1.4 through 3.7.5 inclusive. Users of any of these versions that allow mounting with bracketed options and supply a path-valued sftp_server are vulnerable. Updating to SSHFS 3.7.6 or later removes the flaw.

Risk and Exploitability

The CVSS rating of 7 indicates a high severity for the ability to gain local code execution via credentialed users of SSHFS. No EPSS score is available, so exploitation likelihood is unclear; the CVE is not listed in the CISA KEV catalog. Exploitation requires that the attacker be able to provide an attacker‑controlled mount source to SSHFS, typically by running a wrapper or script that invokes SSHFS with the malicious source. Because the flaw triggers a local command execution before any SSH connection or authentication, it can be used to compromise a system even when the target SSH server is properly secured.

Generated by OpenCVE AI on August 19, 2026 at 18:13 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to SSHFS 3.7.6 or later to apply the fix that removes the argument injection flaw.
  • Audit existing scripts, wrappers, and scheduled jobs that invoke SSHFS with bracketed mount options, and restrict or remove those that allow untrusted input.
  • Enforce stricter access controls so that only authenticated, trusted users can invoke SSHFS, and consider applying mandatory access control (SELinux/AppArmor) to restrict SSHFS’s ability to execute arbitrary commands.
  • Monitor system logs for suspicious SSHFS invocations and anomalous command executions to detect exploitation attempts.

Generated by OpenCVE AI on August 19, 2026 at 18:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 19 Aug 2026 15:00:00 +0000

Type Values Removed Values Added
Description SSHFS is a network filesystem client for connecting to SSH servers. From version 1.4 until 3.7.6, SSHFS accepts a bracketed mount source such as [-oProxyCommand=CMD]:/path and find_base_path() removes the brackets, leaving a host value that begins with - and is passed directly to ssh as a command-line argument. When a caller also supplies a path-valued sftp_server, ssh treats the normalized host as an option and the server path as its destination, causing an injected ProxyCommand to execute locally before any connection or authentication succeeds. The attack requires a caller or wrapper that passes an attacker-controlled mount source to SSHFS with the required sftp_server configuration and results in arbitrary command execution as the user running SSHFS. This issue is fixed in version 3.7.6.
Title SSHFS: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
Weaknesses CWE-88
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-19T14:42:50.094Z

Reserved: 2026-05-22T18:47:27.755Z

Link: CVE-2026-48711

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-19T15:17:05.580

Modified: 2026-08-19T15:17:05.580

Link: CVE-2026-48711

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-19T18:15:04Z

Weaknesses
  • CWE-88

    Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')