CVE-2026-138374

AsyncSSH 2.7.0 before 2.24.2 Argument Injection via ProxyCommand Token Substitution

Published Nov 29, 2026 CVSS 4.0 · 7.7 High EPSS < 1% KEV · Not listed
Description
AsyncSSH 2.7.0 before 2.24.2 contains an argument injection vulnerability that allows attackers supplying host or user names to add arguments to the local proxy program by embedding whitespace or quote characters substituted into %h, %n or %r ProxyCommand tokens before splitting. Attackers can inject an -o option into the common ssh -W %h:%p bastion ProxyCommand to make the local ssh client run attacker-chosen commands as the application user.

Analysis

AI-generated

Technical impact

AsyncSSH 2.7.0 through 2.24.1 contains an argument injection flaw that lets an attacker who can influence the host or user name passed to an AsyncSSH connection embed special characters and whitespace into the %h, %n, or %r tokens used in a ProxyCommand. This causes the underlying local ssh command to be invoked with additional arguments supplied by the attacker. As a result, the attacker can add an -o option to the default "ssh -W %h:%p" ProxyCommand to run an arbitrary command as the application user, thereby providing remote code execution capabilities.

Affected Systems

The vulnerability affects the AsyncSSH project’s AsyncSSH library in the 2.7.0 through 2.24.1 releases. Systems that use these library versions to establish SSH connections via a ProxyCommand are impacted.

Risk and Exploitability

The CVSS score of 7.7 indicates high severity. The EPSS score is not available, so the likelihood of exploitation is uncertain, and the vulnerability is not listed in CISA’s KEV catalog. It is inferred that an attacker who can control the host or user name used in an AsyncSSH connection—such as through a web application or other software that delegates SSH connections—can exploit the flaw by injecting whitespace or quote characters to manipulate the local ssh command and execute attacker‑chosen commands.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the AsyncSSH library to version 2.24.2 or later to remove the vulnerability.
  • Sanitize or validate any host or user name passed to AsyncSSH before it is used in the connection to prevent injection of special characters.
  • If ProxyCommand functionality is not required, disable ProxyCommand usage or replace it with a more secure configuration that does not perform token substitution.

Generated by OpenCVE AI on November 29, 2026 at 14:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Ronf
Ronf asyncssh
Vendors & Products Ronf
Ronf asyncssh
Type Values Removed Values Added
Description AsyncSSH 2.7.0 before 2.24.2 contains an argument injection vulnerability that allows attackers supplying host or user names to add arguments to the local proxy program by embedding whitespace or quote characters substituted into %h, %n or %r ProxyCommand tokens before splitting. Attackers can inject an -o option into the common ssh -W %h:%p bastion ProxyCommand to make the local ssh client run attacker-chosen commands as the application user.
Title AsyncSSH 2.7.0 before 2.24.2 Argument Injection via ProxyCommand Token Substitution
First Time appeared Asyncssh Project
Asyncssh Project asyncssh
Weaknesses CWE-88
CPEs cpe:2.3:a:asyncssh_project:asyncssh:*:*:*:*:*:*:*:*
Vendors & Products Asyncssh Project
Asyncssh Project asyncssh
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 7.7, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-88

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 30, 2026, 8:03 PM
Reserved
Nov 29, 2026, 1:09 PM
Status
Awaiting Analysis
Published
Nov 29, 2026, 2:17 PM
Modified
Nov 30, 2026, 9:17 PM