Don’t let overlooked obligations become incidents. Learn how.
Utility navigation bar redirect icon
Portal LoginSupportContact
Search
Close search
Huntress Logo in Teal
  • Platform Overview
    Managed EDR

    Get full endpoint visibility, detection, and response.

    Managed EDR

    Get full endpoint visibility, detection, and response.

    Managed ITDR

    Protect your Microsoft 365 and Google Workspace identities and email environments.

    Managed ITDR

    Protect your Microsoft 365 and Google Workspace identities and email environments.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed SIEM

    Managed threat response and robust compliance support at a predictable price.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Managed Security Awareness Training

    Empower your teams with science-backed security awareness training.

    Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Managed ISPM

    Continuous Microsoft 365 and identity hardening, managed and enforced by Huntress experts.

    Managed ESPM

    Proactively secure endpoints against attacks.

    Managed ESPM

    Proactively secure endpoints against attacks.

    Integrations
    Integrations
    Support Documentation
    Support Documentation
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
    See Huntress in Action

    Quickly deploy and manage real-time protection for endpoints, email, and employees - all from a single dashboard.

    Huntress Cybersecurity
  • Threats We Stop
    Phishing
    Phishing
    Business Email Compromise
    Business Email Compromise
    Ransomware
    Ransomware
    Infostealers
    Infostealers
    View Allright arrowView Allright arrow
    Industries We Serve
    Education
    Education
    Financial Services
    Financial Services
    State and Local Government
    State and Local Government
    Healthcare
    Healthcare
    Law Firms
    Law Firms
    Manufacturing
    Manufacturing
    Utilities
    Utilities
    View Allright arrowView Allright arrow
    Tailored Solutions
    MSPs
    MSPs
    Resellers
    Resellers
    SMBs
    SMBs
    Compliance
    Compliance
    What Gets Overlooked Gets Exploited

    Most days, nothing happens. But one day, something will.

    Huntress Cybersecurity
    Cybercriminals Have Evolved

    Get the intel on today’s cybercriminal groups and learn how to protect yourself.

    Huntress Cybersecurity
  • Pricing
  • Community Series
    The Product Lab

    Shape the next big thing in cybersecurity together.

    The Product Lab

    Shape the next big thing in cybersecurity together.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Fireside Chat

    Real people. Real perspectives. Better conversations.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    Tradecraft Tuesday

    No products, no pitches – just tradecraft.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    _declassified

    Exposing hidden truths in the world of cybersecurity.

    Resources
    Upcoming Events
    Upcoming Events
    Ebooks
    Ebooks
    On-Demand Webinars
    On-Demand Webinars
    Videos
    Videos
    Whitepapers
    Whitepapers
    Datasheets
    Datasheets
    Cybersecurity Education
    Cybersecurity 101
    Cybersecurity 101
    Cybersecurity Guides
    Cybersecurity Guides
    Threat Library
    Threat Library
    Real Tradecraft, Real Results
    Real Tradecraft, Real Results
    2026 Cyber Threat Report
    2026 Cyber Threat Report
    The Huntress Blog
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    Huntress Lands on the Microsoft Marketplace
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    How Huntress & DEFCERT Are Streamlining CMMC Assessment Prep
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
    Live Hacking Into Microsoft 365 with Kyle Hanslovan
    Huntress Cybersecurity
  • Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    Why Huntress

    Go beyond AI in the fight against today’s hackers with Huntress Managed EDR purpose-built for your needs

    Huntress Cybersecurity
    The Huntress SOC

    24/7 Security Operations Center

    The Huntress SOC

    24/7 Security Operations Center

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Reviews

    Why businesses of all sizes trust Huntress to defend their assets

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Case Studies

    Learn directly from our partners how Huntress has helped them

    Community

    Get in touch with the Huntress Community team

    Community

    Get in touch with the Huntress Community team

    Compare Huntress
    Bitdefender
    Bitdefender
    Blackpoint
    Blackpoint
    Breach Secure Now!
    Breach Secure Now!
    Crowdstrike
    Crowdstrike
    Datto
    Datto
    SentinelOne
    SentinelOne
    Sophos
    Sophos
    Compare Allright arrowCompare Allright arrow
  • HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    HUNTRESS HUB

    Login to access top-notch marketing resources, tools, and training.

    Huntress Cybersecurity
    Partners
    MSPs

    Join our partner community to deliver expert-led managed security.

    MSPs

    Join our partner community to deliver expert-led managed security.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Resellers

    Partner program designed to grow your cybersecurity business.

    Tech Alliances

    Driving innovation through global technology Partnerships

    Tech Alliances

    Driving innovation through global technology Partnerships

    Microsoft Partnership

    A Level-Up for Your Business Security

    Microsoft Partnership

    A Level-Up for Your Business Security

  • Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Press Release
    Huntress Announces Collaboration with Microsoft to Strengthen Cybersecurity for Businesses of All Sizes
    Huntress Cybersecurity
    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Our Story

    We're on a mission to shatter the barriers to enterprise-level security.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Newsroom

    Explore press releases, news articles, media interviews and more.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Meet the Team

    Founded by former NSA Cyber Operators. Backed by security researchers.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Careers

    Ready to shake up the cybersecurity world? Join the hunt.

    Awards
    Awards
    Contact Us
    Contact Us
  • Portal Login
  • Support
  • Contact
  • Search
  • Get a Demo
  • Start for Free
Portal LoginSupportContact
Search
Close search
Get a Demo
Start for Free
HomeThreat LibraryVulnerabilities
CVE-2023-48795

CVE-2023-48795 Vulnerability

Written by: Monica Burgess

Published: 12/03/2025

Glitch effectGlitch effect

CVE-2023-48795, also known as the Terrapin attack, is a prefix truncation vulnerability in the SSH protocol. This flaw allows a man-in-the-middle (MitM) attacker to downgrade connection security by manipulating sequence numbers during the handshake. The result? Attackers can delete messages at the beginning of the secure channel, compromising the integrity of the connection.

What is CVE-2023-48795 Vulnerability?

CVE-2023-48795 is a significant vulnerability within the Secure Shell (SSH) transport protocol. It enables a MitM attacker to bypass integrity checks by truncating the initial messages exchanged during a secure handshake. By carefully manipulating sequence numbers, an attacker can delete a specific number of messages from the beginning of the communication without the client or server noticing. This compromises the channel's integrity, potentially allowing for the downgrade of public key authentication algorithms or other security features.

When was it Discovered?

The vulnerability was discovered by researchers at the Ruhr University Bochum in Germany. They publicly disclosed their findings and the details of the Terrapin attack on December 18, 2023. The coordinated disclosure involved multiple vendors to ensure patches and guidance were available to address the widespread issue impacting numerous SSH implementations.

Affected Products & Versions

The Terrapin attack impacts a broad range of SSH clients and servers that support specific encryption modes. Any implementation using ChaCha20-Poly1305 or any CBC cipher combined with Encrypt-then-MAC is potentially vulnerable. This has a wide-reaching effect across the software landscape.

Product

Versions Affected

Fixed Versions / Patch Links

OpenSSH

All versions before 9.6

OpenSSH 9.6+

PuTTY

0.68 to 0.79

0.80+

AsyncSSH

All versions before 2.14.2

2.14.2+

libssh

All versions before 0.10.6 and 0.9.8

0.10.6, 0.9.8

Paramiko

All versions before 3.4.0

3.4.0+

ProFTPD

All versions before 1.3.8b and 1.3.9rc2

1.3.8b, 1.3.9rc2

Note: This table is not exhaustive. Many other products are affected. Check with your software vendors for specific advisories.

CVE-2023-48795 Technical Description

The root cause of the CVE-2023-48795 vulnerability lies in how the SSH protocol handles sequence numbers during the initial key exchange. An active MitM attacker can intercept the connection and inject specific, unencrypted packets before the secure communication channel is fully established. This action desynchronizes the message sequence numbers between the client and server.

Because the handshake integrity is not protected in certain configurations, the attacker can manipulate the SSH_MSG_EXT_INFO message, which is optional and negotiated. By truncating this message, they can control how many initial packets are "ignored" by the receiver. This allows the attacker to selectively delete messages sent by the client or server at the beginning of the encrypted session, effectively weakening the security of the entire connection. The flaw breaks the assumption that the initial key exchange is tamper-proof.

Tactics, Techniques & Procedures (TTPs)

Threat actors exploiting CVE-2023-48795 primarily use Man-in-the-Middle (MitM) attacks. The core TTP involves intercepting the SSH handshake between a client and a server. From there, the attacker injects specially crafted packets to manipulate sequence numbers and then selectively removes early-session messages to downgrade security protocols. This could lead to weaker authentication methods being used, making it easier for them to compromise the session later.

Indicators of Compromise

Detecting an active Terrapin attack can be tricky since it happens at the protocol level. However, Indicators of Compromise (IOCs) for the CVE-2023-48795 exploit include unexpected SSH connection failures or resets, particularly after the initial handshake. Network monitoring may reveal unusual packet injections during the SSH negotiation phase. System administrators should also watch for logs indicating a failure to negotiate EXT_INFO or sudden downgrades in cipher suite strength.

Known Proof-of-Concepts & Exploits

Since its disclosure, researchers have released a proof-of-concept (PoC) scanner that can check if an SSH server is vulnerable to the Terrapin attack. This tool helps administrators identify affected systems. While widespread, active exploitation in the wild has not been heavily reported, the availability of a public PoC and the broad attack surface mean the risk is very real. It's only a matter of time before threat actors start adding this to their standard playbook.

How to Detect CVE-2023-48795 Vulnerability?

You can detect the CVE-2023-48795 vulnerability using several methods. Network scanners, such as the one released by the original researchers, can actively probe SSH servers to check for the flaw. On the host side, you can check the versions of your SSH clients and servers against the list of affected software. For security teams using a SIEM, monitor for an unusual number of failed SSH handshakes or logs that show errors related to unexpected sequence numbers.

Impact & Risk of CVE-2023-48795 Vulnerability

The impact of the CVE-2023-48795 vulnerability is primarily the degradation of connection security. While it doesn't directly lead to code execution or data decryption, it cripples the integrity of the SSH channel. This opens the door for other attacks. For example, an attacker could disable specific security features, like keystroke timing obfuscation in OpenSSH, making the session more vulnerable to traffic analysis. The biggest risk is that it weakens trust in a protocol that is the backbone of secure remote administration.

Mitigation & Remediation Strategies

Let's get this fixed. The primary mitigation for CVE-2023-48795 is to patch your systems. Update all SSH clients and servers to the latest versions that include fixes for this vulnerability. Most major vendors have already released patches.

If patching isn't an option right away, you can implement a workaround. Configure your SSH servers and clients to disable the vulnerable ChaCha20-Poly1305 and CBC-mode ciphers. Instead, prioritize robust ciphers like AES-GCM. This move effectively closes the door on the Terrapin attack by removing the conditions it needs to succeed.

CVE-2023-48795 Vulnerability FAQs

CVE-2023-48795, or the Terrapin attack, is a vulnerability in the SSH protocol. It allows a man-in-the-middle attacker to truncate the initial messages of a secure connection by manipulating sequence numbers. This compromises the integrity of the handshake, potentially allowing the attacker to downgrade the connection's security.

This vulnerability isn't an "infection" like malware. Instead, it's a protocol-level flaw that is exploited during an active SSH session. An attacker must first gain a position between the client and server (MitM) to intercept and modify the connection handshake as it happens.

Yes, it absolutely remains a threat. Any unpatched SSH client or server using vulnerable ciphers is still exposed. As long as legacy systems exist or administrators neglect updates, attackers can and will exploit this flaw to weaken secure connections.

Protection is straightforward: patch everything. Update all SSH clients and servers to versions that address CVE-2023-48795. If you can't patch immediately, reconfigure your SSH settings to disable the affected ciphers (ChaCha20-Poly1305 and any CBC ciphers) and prioritize more secure alternatives.

Glitch effectGlitch effectBlurry glitch effect

Protect What Matters

Secure endpoints, email, and employees with the power of our 24/7 SOC. Try Huntress for free and deploy in minutes to start fighting threats.
Try Huntress for Free
Huntress Managed Security PlatformManaged EDRManaged EDR for macOSManaged EDR for LinuxManaged ITDRManaged SIEMManaged Security Awareness TrainingManaged ISPMManaged ESPMBook a Demo
PhishingComplianceBusiness Email CompromiseEducationFinanceHealthcareManufacturingState & Local Government
Managed Service ProvidersResellersIT & Security Teams24/7 SOCCase Studies
BlogResource CenterCybersecurity 101Upcoming EventsSupport Documentation
Our CompanyLeadershipNews & PressCareersContact Us
Huntress white logo

Protecting 215k+ customers like you with enterprise-grade protection.

Privacy PolicyCookie PolicyTerms of UseCookie Consent
Linkedin iconTwitter X iconYouTube iconInstagram icon
© 2025 Huntress All Rights Reserved.

Join the Hunt

Get insider access to Huntress tradecraft, killer events, and the freshest blog updates.

By submitting this form, you accept our Terms of Service & Privacy Policy