Cloudanix VulnDB

CVE-2023-46446

Medium · 6.8

CVSS

6.8

EPSS

0.9%

Published

Nov 14, 2023

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

Attackers could silently take over an SSH connection and pretend to be the server, letting them see or change what the client does.

Chainable
Exploitation
Remote Authenticated
Attacker needs
Low Privilege
Complexity
High
Impact
Privilege Gain
Component
Library
Class
Authorization Bypass
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Allows attackers to inject or remove SSH packets and emulate shell behavior to seize control of the client side of an SSH session.

Why it matters to the business

Attackers can hijack interactive SSH sessions, potentially leading to unauthorized command execution, credential theft, or lateral movement inside environments that rely on AsyncSSH for automation or remote management.

How an attack unfolds

An attacker positioned on the network path performs packet injection or removal against an AsyncSSH client connection and uses shell emulation to impersonate the server, ultimately gaining control of the client session.

How to fix it

Upgrade ronf/asyncssh to the fixed commit 0d6de9aec1a81a4f6ff7400c24b699eb6137fba3 (equivalent to version 2.14.1 or newer).

How to confirm the fix worked

Verify the installed AsyncSSH version or commit hash matches or exceeds the fixed revision; re-test SSH client connections for proper session termination behavior.

Typical attack path

  1. Establish network position to observe or intercept SSH traffic
  2. Inject or strip selected packets to disrupt normal protocol state
  3. Emulate legitimate shell responses to maintain the illusion of a valid server
  4. Issue commands or capture input from the client once session control is obtained

How to detect it

Inspect network captures and SSH client logs for unexpected packet sequences, abrupt session state changes, or shell output that does not match server behavior.

What your security team should do

  • Apply the fixed commit immediately in all environments using AsyncSSH clients
  • Review network segmentation and encryption requirements for SSH traffic
  • Add version pinning and dependency scanning to CI pipelines to prevent regression

The record

An issue in AsyncSSH before 2.14.1 allows attackers to control the remote end of an SSH client session via packet injection/removal and shell emulation, aka a "Rogue Session Attack."

Affected packages

Ecosystem Package Introduced Fixed
PyPI asyncssh 0 2.14.1
Debian:11 python-asyncssh 0 2.5.0-0.1+deb11u1
Debian:12 python-asyncssh 0 No fix
Debian:13 python-asyncssh 0 2.15.0-1
Ubuntu:16.04:LTS python-asyncssh 0 No fix
Ubuntu:20.04:LTS python-asyncssh 0 No fix
Ubuntu:20.04:LTS python-asyncssh 0 1.12.2-1ubuntu0.2
Ubuntu:22.04:LTS python-asyncssh 0 No fix
Ubuntu:22.04:LTS python-asyncssh 0 2.5.0-1ubuntu0.1
Ubuntu:24.04:LTS python-asyncssh 0 No fix
Ubuntu:24.10 python-asyncssh 0 No fix
Ubuntu:Pro:16.04:LTS python-asyncssh 0 No fix
Ubuntu:Pro:18.04:LTS python-asyncssh 0 No fix
Ubuntu:Pro:18.04:LTS python-asyncssh 0 1.11.1-1ubuntu0.1~esm2
Ubuntu:Pro:24.04:LTS python-asyncssh 0 2.10.1-2ubuntu0.1+esm1

Related vulnerabilities