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-2021-36368

CVE-2021-36368: OpenSSH Auth Bypass Vulnerability

CVE-2021-36368 is an authentication bypass flaw in OpenSSH affecting versions before 8.9. This vulnerability impacts FIDO authentication with agent forwarding. This post covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2021-36368 Overview

An authentication bypass vulnerability was discovered in OpenSSH before version 8.9. When a client uses public-key authentication with agent forwarding but without -oLogLevel=verbose, and an attacker has silently modified the server to support the None authentication option, users cannot determine whether FIDO authentication is confirming a connection to the intended server or allowing that server to connect to a different server on the user's behalf. This creates a potential user consent confusion scenario in FIDO-based authentication workflows.

Critical Impact

Attackers who have compromised a server can potentially abuse FIDO agent forwarding to authenticate to other servers without the user's explicit knowledge or consent, leading to unauthorized access to additional systems.

Affected Products

  • OpenBSD OpenSSH (versions before 8.9)
  • Debian Linux 9.0
  • Debian Linux 10.0
  • Debian Linux 11.0

Discovery Timeline

  • 2022-03-13 - CVE CVE-2021-36368 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2021-36368

Vulnerability Analysis

This vulnerability represents an authentication bypass flaw classified under CWE-287 (Improper Authentication). The core issue lies in how OpenSSH handles FIDO authentication prompts when agent forwarding is enabled.

FIDO (Fast Identity Online) authentication typically requires user consent through physical interaction with a security key. However, when the SSH client is configured with agent forwarding, the FIDO authentication requests can be forwarded through the SSH connection chain. The vulnerability exploits the lack of clear indication to the user about which server is requesting FIDO authentication.

If an attacker has compromised an intermediate server and modified it to support the "None" authentication option, they can trigger FIDO authentication requests that appear to be for the compromised server but are actually for a different target server. Without verbose logging enabled (-oLogLevel=verbose), the user has no way to distinguish between these scenarios.

Note: The vendor (OpenBSD) has stated that this is not technically an authentication bypass since the authentication mechanism itself is not being circumvented—rather, user consent is being obtained under potentially misleading circumstances.

Root Cause

The root cause stems from insufficient user notification during FIDO authentication when agent forwarding is active. The SSH client does not adequately inform users about the actual destination of forwarded authentication requests, making it possible for attackers to abuse the trust relationship established through agent forwarding.

Attack Vector

The attack requires network access and involves several prerequisites:

  1. The attacker must have compromised an SSH server that the victim connects to
  2. The victim must be using FIDO-based public-key authentication with agent forwarding enabled
  3. The victim must not be using verbose logging (-oLogLevel=verbose)
  4. The attacker modifies the compromised server to support None authentication

When these conditions are met, the attacker can leverage the victim's FIDO credentials through agent forwarding to authenticate to other servers that the victim has access to. The victim performs the FIDO authentication action (such as touching a security key) believing they are authenticating to one server, when in fact the authentication is being used for a different destination.

For technical details on this attack vector, refer to the SSH-MITM Trivial Authentication Guide and the Bugzilla Report #3316.

Detection Methods for CVE-2021-36368

Indicators of Compromise

  • Unexpected FIDO authentication prompts when connecting to known SSH servers
  • SSH connections being established to servers not explicitly intended by the user
  • Authentication logs showing connections to unexpected destinations following FIDO key usage
  • Modified SSH server configurations on potentially compromised systems enabling None authentication

Detection Strategies

  • Enable verbose logging (-oLogLevel=verbose) on SSH clients to capture detailed authentication flow information
  • Monitor SSH agent forwarding activity for unusual authentication patterns
  • Audit SSH server configurations for unauthorized changes to authentication methods
  • Implement network monitoring to detect SSH connections to unexpected destinations following agent-forwarded authentication

Monitoring Recommendations

  • Review SSH client and server logs for anomalous authentication patterns
  • Monitor for modifications to SSH server configurations, particularly authentication options
  • Track FIDO authentication events and correlate them with actual intended destinations
  • Implement alerting for SSH agent forwarding activity in sensitive environments

How to Mitigate CVE-2021-36368

Immediate Actions Required

  • Upgrade OpenSSH to version 8.9 or later where this issue has been addressed
  • Enable verbose logging by adding -oLogLevel=verbose to SSH commands when using FIDO authentication with agent forwarding
  • Consider disabling SSH agent forwarding when not strictly necessary
  • Review and restrict which hosts are permitted to use agent forwarding through SSH configuration

Patch Information

OpenBSD has addressed this vulnerability in OpenSSH version 8.9. The fix improves user notification during FIDO authentication when agent forwarding is in use. For detailed patch information, see the GitHub Pull Request #258 and the OpenSSH Security Documentation.

Debian users should consult the Debian CVE-2021-36368 Tracker for distribution-specific patch availability.

Workarounds

  • Always use -oLogLevel=verbose when connecting with FIDO authentication and agent forwarding to ensure visibility into authentication destinations
  • Disable agent forwarding in SSH client configuration (ForwardAgent no) unless explicitly required
  • Use ssh-add -c to require confirmation for each use of keys in the agent
  • Implement jump hosts or bastion servers as an alternative to agent forwarding for multi-hop SSH access
bash
# Configuration example
# Add to ~/.ssh/config to enforce verbose logging and disable agent forwarding by default
Host *
    LogLevel VERBOSE
    ForwardAgent no

# Enable agent forwarding only for specific trusted hosts
Host trusted-host.example.com
    ForwardAgent yes
    AddKeysToAgent confirm

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

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechOpenssh

  • SeverityLOW

  • CVSS Score3.7

  • EPSS Probability0.21%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-287
  • Technical References
  • Bugzilla Report #3316

  • SSH-MITM Trivial Authentication Guide

  • Debian CVE-2021-36368 Tracker
  • Vendor Resources
  • GitHub Pull Request #258

  • OpenSSH Security Documentation
  • Related CVEs
  • CVE-2023-51767: OpenSSH Auth Bypass Vulnerability

  • CVE-2023-48795: OpenSSH Terrapin Auth Bypass Vulnerability

  • CVE-2026-35414: OpenSSH Information Disclosure Vulnerability

  • CVE-2026-35388: OpenSSH Privilege Escalation Vulnerability
Default Legacy - Prefooter | 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