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-28531

CVE-2023-28531: OpenSSH Privilege Escalation Vulnerability

CVE-2023-28531 is a privilege escalation vulnerability in OpenSSH where ssh-add adds smartcard keys without destination constraints. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 11, 2026

CVE-2023-28531 Overview

CVE-2023-28531 is a vulnerability in OpenSSH's ssh-add utility that affects versions 8.9 through 9.2. The vulnerability occurs when smartcard keys are added to the SSH authentication agent (ssh-agent) without properly applying the intended per-hop destination constraints. This flaw allows smartcard-based SSH keys to be used more broadly than intended, potentially enabling unauthorized authentication to hosts that should have been excluded by destination constraints.

Critical Impact

Smartcard keys added via ssh-add bypass per-hop destination constraints, potentially allowing unauthorized access to SSH servers that should have been restricted by agent forwarding policies.

Affected Products

  • OpenBSD OpenSSH (versions 8.9 to before 9.3)
  • NetApp Brocade Fabric Operating System
  • NetApp HCI Bootstrap OS
  • NetApp SolidFire Element OS

Discovery Timeline

  • 2023-03-15 - Vulnerability disclosed on Openwall OSS Security Discussion
  • 2023-03-17 - CVE CVE-2023-28531 published to NVD
  • 2025-11-04 - Last updated in NVD database

Technical Details for CVE-2023-28531

Vulnerability Analysis

This vulnerability represents an authorization bypass in OpenSSH's smartcard key handling. When users add smartcard keys to ssh-agent using the ssh-add command with destination constraints (introduced in OpenSSH 8.9), those constraints are not properly enforced. Destination constraints are a security feature designed to limit which hosts an SSH key can authenticate to when agent forwarding is in use, providing defense against agent hijacking attacks.

The issue specifically affects smartcard keys (such as those stored on hardware security devices like YubiKeys or PIV cards). When these keys are added to the agent with -h (destination constraint) options, the constraints are silently ignored, effectively granting the keys broader access than the user intended.

Root Cause

The root cause lies in the ssh-add implementation's handling of smartcard keys versus regular keys. When processing smartcard key additions, the code path fails to pass the destination constraint parameters to the agent. This results in smartcard keys being added with unrestricted permissions, bypassing the security boundaries that destination constraints are designed to enforce.

Attack Vector

The attack vector is network-based and exploits the missing destination constraints on smartcard keys. An attacker who has compromised a system where agent forwarding is in use could potentially leverage the forwarded smartcard key to authenticate to hosts that should have been excluded by destination constraints.

In a typical exploitation scenario:

  1. A user adds a smartcard key with destination constraints intending to limit which hosts can use the key
  2. Due to this vulnerability, the constraints are not applied
  3. If the user connects to an untrusted intermediate host with agent forwarding enabled, an attacker on that host could use the forwarded key to access additional systems
  4. The smartcard key can be used to authenticate to any accessible SSH server, not just the constrained destinations

The vulnerability requires agent forwarding to be enabled and an attacker to have access to a system in the SSH connection chain. While exploitation requires specific conditions, the potential for lateral movement in enterprise environments makes this a significant security concern.

Detection Methods for CVE-2023-28531

Indicators of Compromise

  • Unexpected SSH authentication events from hosts that should have been excluded by destination constraints
  • SSH agent forwarding logs showing smartcard key usage to non-permitted destinations
  • Authentication patterns that indicate lateral movement beyond intended access boundaries

Detection Strategies

  • Monitor SSH authentication logs for connections using smartcard keys to unexpected destinations
  • Audit ssh-agent configurations and review which keys have been added without proper constraints
  • Implement centralized logging for SSH sessions to identify potential unauthorized access patterns
  • Review SSH agent socket access logs for signs of agent hijacking attempts

Monitoring Recommendations

  • Enable verbose logging on SSH servers to capture key type and source information
  • Deploy network monitoring to detect SSH connections to unexpected internal hosts
  • Implement alerting for SSH connections that bypass expected network segmentation
  • Regularly audit systems running affected OpenSSH versions in critical infrastructure

How to Mitigate CVE-2023-28531

Immediate Actions Required

  • Upgrade OpenSSH to version 9.3 or later where the vulnerability has been patched
  • Disable SSH agent forwarding where not strictly required (ForwardAgent no in SSH config)
  • Review and minimize the use of agent forwarding on untrusted intermediate hosts
  • Consider using ProxyJump instead of agent forwarding for multi-hop SSH connections

Patch Information

OpenSSH version 9.3 addresses this vulnerability by properly applying destination constraints to smartcard keys when they are added via ssh-add. System administrators should update to OpenSSH 9.3 or later. Several Linux distributions have released security advisories with patched packages:

  • Fedora Package Announcement - Updated packages for Fedora
  • Gentoo GLSA 202307-01 - Gentoo Linux security advisory
  • Debian DSA-5586 - Debian security update
  • NetApp Security Advisory - NetApp product advisories

Workarounds

  • Avoid using ssh-add with smartcard keys until the system is patched; use direct smartcard authentication instead
  • Disable agent forwarding globally by setting AllowAgentForwarding no on SSH servers
  • Use SSH certificate authentication with principals to enforce destination restrictions at the server level
  • Consider using jump hosts with ProxyJump configuration rather than agent forwarding
bash
# SSH configuration to disable agent forwarding
# Add to /etc/ssh/sshd_config on servers
AllowAgentForwarding no

# Add to ~/.ssh/config on clients to prevent forwarding by default
Host *
    ForwardAgent no

# Use ProxyJump for multi-hop connections instead of agent forwarding
Host internal-server
    ProxyJump jump-host.example.com
    ForwardAgent no

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

  • Vulnerability Details
  • TypePrivilege Escalation

  • Vendor/TechOpenssh

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.33%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • Fedora Package Announcement

  • Gentoo GLSA 202307-01

  • NetApp Security Advisory

  • Debian DSA-5586

  • Openwall OSS Security Discussion

  • Fedora Package Announcement
  • Related CVEs
  • CVE-2026-35388: OpenSSH Privilege Escalation Vulnerability

  • CVE-2026-35385: OpenSSH Privilege Escalation Vulnerability

  • CVE-2023-51384: OpenSSH Privilege Escalation Vulnerability

  • CVE-2021-41617: OpenSSH Privilege Escalation Vulnerability
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