CVE-2026-138374
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-138374 NameCVE-2026-138374 DescriptionAsyncSSH 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…
CVE-2026-138374
| Name | CVE-2026-138374 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1155839 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| python-asyncssh (PTS) | bookworm | 2.10.1-2+deb12u2 | vulnerable |
| bookworm (security) | 2.10.1-2+deb12u1 | vulnerable | |
| trixie | 2.20.0-1 | vulnerable | |
| forky, sid | 2.24.0-2 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| python-asyncssh | source | (unstable) | (unfixed) | 1155839 |
Notes
https://github.com/ronf/asyncssh/security/advisories/GHSA-54qj-68m2-5346
Fixed by: https://github.com/ronf/asyncssh/commit/43dfcb81b86d29b605873f7c77df06f9e9920ce1 (v2.42.2)
Apply commands
https://github.com/ronf/asyncssh/security/advisories/GHSA-54qj-68m2-5346Fixed by: https://github.com/ronf/asyncssh/commit/43dfcb81b86d29b605873f7c77df06f9e9920ce1 (v2.42.2)
OS impact
Debian Affected 4 releases
| Version | Package | Status | Fixed in |
|---|---|---|---|
| trixie | python-asyncssh |
Affected | — |
| sid | python-asyncssh |
Affected | — |
| forky | python-asyncssh |
Affected | — |
| bookworm | python-asyncssh |
Affected | — |
SUSE Tracked 1 release
| Version | Package | Status | Fixed in |
|---|---|---|---|
| — | — | Unknown | — |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| ronf | asyncssh | {"startIncluding":"2.7.0","endExcluding":"2.24.2"} | 2.24.2 |
References
- https://github.com/ronf/asyncssh/blob/v2.24.1/asyncssh/config.py#L148-L152
- https://github.com/ronf/asyncssh/blob/v2.24.2/docs/changes.rst
- https://github.com/ronf/asyncssh/commit/43dfcb81b86d29b605873f7c77df06f9e9920ce1
- https://github.com/ronf/asyncssh/security/advisories/GHSA-54qj-68m2-5346
- https://www.vulncheck.com/advisories/asyncssh-2.7.0-before-2.24.2-argument-injection-via-proxycommand-token-substitution
- https://security-tracker.debian.org/tracker/CVE-2026-138374
- https://www.suse.com/security/cve/CVE-2026-138374.html
CWEs
CWE-88
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.