The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-46446

CVE-2023-46446: AsyncSSH Rogue Session Attack Vulnerability

CVE-2023-46446 is a rogue session attack vulnerability in AsyncSSH that allows attackers to control SSH client sessions through packet manipulation and shell emulation. This article covers technical details, affected versions, and mitigation.

Published: February 11, 2026

CVE-2023-46446 Overview

CVE-2023-46446 is a protocol vulnerability affecting AsyncSSH versions prior to 2.14.1, enabling attackers to control the remote end of an SSH client session through packet injection/removal and shell emulation. This attack, known as the "Rogue Session Attack," is part of the broader Terrapin Attack family of SSH vulnerabilities that exploit weaknesses in the SSH protocol's handling of sequence numbers during the handshake phase.

Critical Impact

Attackers with network position can hijack SSH client sessions, potentially gaining unauthorized access to remote systems and intercepting or manipulating session data without the client's knowledge.

Affected Products

  • AsyncSSH versions prior to 2.14.1
  • Systems using AsyncSSH for SSH client connections
  • Applications built on the asyncssh Python library

Discovery Timeline

  • November 14, 2023 - CVE-2023-46446 published to NVD
  • November 3, 2025 - Last updated in NVD database

Technical Details for CVE-2023-46446

Vulnerability Analysis

The Rogue Session Attack in AsyncSSH exploits fundamental weaknesses in how the SSH protocol handles packet sequences during connection establishment. The vulnerability is classified under CWE-639 (Authorization Bypass Through User-Controlled Key), indicating that attackers can manipulate authorization mechanisms by controlling critical session parameters.

The attack requires a network position between the client and server (man-in-the-middle), combined with specific timing during the SSH handshake. Despite requiring some privileges and specific network positioning, successful exploitation allows attackers to completely control what the client believes is a legitimate remote session.

This vulnerability is particularly dangerous because it undermines the fundamental trust model of SSH connections. Users connecting to what they believe is a legitimate server may actually be interacting with an attacker-controlled shell emulation, leading to credential theft, command injection, or data exfiltration.

Root Cause

The root cause of CVE-2023-46446 lies in AsyncSSH's insufficient validation of SSH protocol messages during the handshake and early session establishment phases. The implementation failed to properly verify the integrity and sequence of packets, allowing attackers to inject or remove packets without detection. This enables shell emulation where the attacker can impersonate the remote server's shell environment while the actual connection may be to a different destination or state than expected.

Attack Vector

The attack requires network-level access to intercept SSH connections (man-in-the-middle position). The attacker manipulates the SSH handshake by:

  1. Intercepting the initial connection between client and server
  2. Injecting carefully crafted packets during the protocol negotiation phase
  3. Removing legitimate server response packets to control the session state
  4. Emulating the expected shell environment to capture user commands and credentials

The attacker can then present a fake shell environment to the client while potentially redirecting or logging all commands entered by the victim. For detailed technical analysis of the Terrapin attack mechanism, refer to the Packet Storm Security Article and the GitHub Security Advisory.

Detection Methods for CVE-2023-46446

Indicators of Compromise

  • Unexpected SSH session behaviors such as unusual prompts or response delays
  • Network traffic anomalies showing packet manipulation or sequence number discrepancies during SSH handshakes
  • Authentication succeeding despite incorrect credentials (indicating session hijacking)
  • Discrepancies between expected and actual remote system behaviors
  • Unusual patterns in SSH packet sizes or timing during connection establishment

Detection Strategies

  • Monitor SSH connections for signs of man-in-the-middle attacks, including certificate warnings or fingerprint mismatches
  • Implement network intrusion detection rules to identify Terrapin attack patterns
  • Audit AsyncSSH library versions across all systems and applications
  • Deploy endpoint detection to identify suspicious SSH client behaviors
  • Use SentinelOne's behavioral analysis to detect anomalous SSH session activity

Monitoring Recommendations

  • Enable verbose logging for SSH connections to capture handshake details
  • Implement network flow analysis to detect traffic manipulation patterns
  • Configure alerts for SSH connections from unexpected network paths
  • Monitor for applications using vulnerable AsyncSSH versions in your software inventory

How to Mitigate CVE-2023-46446

Immediate Actions Required

  • Upgrade AsyncSSH to version 2.14.1 or later immediately
  • Audit all Python applications and dependencies for AsyncSSH usage
  • Review network architecture to minimize man-in-the-middle attack surfaces
  • Implement strict SSH host key verification policies to detect impersonation attempts
  • Consider network segmentation to limit lateral movement potential

Patch Information

The AsyncSSH project has addressed this vulnerability in version 2.14.1. The fix implements proper validation of packet sequences and integrity checks during the SSH handshake phase. Organizations should update to the latest version by running pip install --upgrade asyncssh or updating their requirements files. Detailed patch information is available in the AsyncSSH Change Log.

Additional vendor advisories have been released by Fedora, NetApp, and Debian for their respective distributions.

Workarounds

  • Use alternative SSH implementations that are not affected by Terrapin attacks when possible
  • Implement network-level protections such as VPNs or encrypted tunnels for SSH traffic
  • Deploy strict firewall rules to limit SSH connection sources to trusted networks
  • Enable SSH host key pinning in client configurations to detect man-in-the-middle attempts
bash
# Upgrade AsyncSSH to patched version
pip install asyncssh>=2.14.1

# Verify installed version
pip show asyncssh | grep Version

# For systems using requirements.txt, update the dependency
echo "asyncssh>=2.14.1" >> requirements.txt
pip install -r requirements.txt

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAsyncssh

  • SeverityMEDIUM

  • CVSS Score6.8

  • EPSS Probability0.49%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-639
  • Technical References
  • Packet Storm Security Article

  • GitHub Security Advisory

  • AsyncSSH Change Log

  • GitHub Security Advisory

  • Fedora Package Announcement

  • NetApp Security Advisory

  • Terrapin Attack Homepage

  • Debian LTS Announcement
  • Related CVEs
  • CVE-2023-46445: AsyncSSH Rogue Extension Negotiation Flaw
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English