---
id: CVE-2026-138374
title: >-
  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 …
summary: >-
  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 …
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-88
published: '2026-11-29'
updated: '2026-11-30'
sourceUpdated: '2026-11-30T21:17:29.570'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-138374'
references:
  - url: 'https://github.com/ronf/asyncssh/blob/v2.24.1/asyncssh/config.py#L148-L152'
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ronf/asyncssh/blob/v2.24.2/docs/changes.rst'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/ronf/asyncssh/commit/43dfcb81b86d29b605873f7c77df06f9e9920ce1
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ronf/asyncssh/security/advisories/GHSA-54qj-68m2-5346'
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/asyncssh-2.7.0-before-2.24.2-argument-injection-via-proxycommand-token-substitution
    label: disclosure@vulncheck.com
  - url: 'https://github.com/ronf/asyncssh/security/advisories/GHSA-54qj-68m2-5346'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
epss: 0.00826
epssPercentile: 0.58578
ingestedAt: '2026-11-29T15:02:12.502Z'
vendor: ronf
product: AsyncSSH
affected:
  - AsyncSSH >= 2.7.0 < 2.24.2
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-11-30T20:02:00.776029Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
