OpenBSD OpenSSH SSH Server Implementation
Don't miss out!
Thousands of developers use stack.watch to stay informed.Get an email whenever new security vulnerabilities are reported in OpenBSD OpenSSH.
Known Exploited OpenBSD OpenSSH Vulnerabilities
The following OpenBSD OpenSSH vulnerabilities have been marked by CISA as Known to be Exploited by threat actors.
| Title | Description | Added |
|---|---|---|
| OpenBSD OpenSSH Unexpected Status Code or Return Value Vulnerability |
OpenBSD OpenSSH on Linux contains an unexpected status code or return value vulnerability that could allow for authentication bypass. CVE-2026-123158 Exploit Probability: 18.9% |
November 9, 2026 |
The vulnerability CVE-2026-123158: OpenBSD OpenSSH Unexpected Status Code or Return Value Vulnerability is in the top 5% of the currently known exploitable vulnerabilities.
By the Year
In 2026 there have been 28 vulnerabilities in OpenBSD OpenSSH with an average score of 4.2 out of ten. Last year, in 2025 OpenSSH had 11 security vulnerabilities published. That is, 17 more vulnerabilities have already been reported in 2026 as compared to last year. Last year, the average CVE base score was greater by 1.45
| Year | Vulnerabilities | Average Score |
|---|---|---|
| 2026 | 28 | 4.18 |
| 2025 | 11 | 5.62 |
| 2024 | 5 | 8.10 |
| 2023 | 9 | 6.50 |
| 2022 | 1 | 3.70 |
| 2021 | 3 | 5.30 |
| 2020 | 3 | 6.85 |
| 2019 | 5 | 6.20 |
| 2018 | 3 | 6.23 |
It may take a day or so for new OpenSSH vulnerabilities to show up in the stats or in the list of recent security vulnerabilities. Additionally vulnerabilities may be tagged under a different product or component name.
Recent OpenBSD OpenSSH Security Vulnerabilities
OpenSSH sshd before 10.6p2 password auth bypass (musl libc) aka sshole
CVE-2026-123158
8.1 - High
- November 05, 2026
sshd in OpenSSH before 10.6p2 on Linux, when musl libc is used without PAM, lacks a workaround for a password authentication bypass (related to misinterpretation of whether a string is intended to be a password hash). For some configurations of accounts, any password between 256 and 1024 characters succeeds. An example of a platform using musl libc without PAM is Alpine Linux.
Unexpected Status Code or Return Value
OpenSSH <10.6 Command-Line Username Injection via $ or \ (CVE-2026-106583)
CVE-2026-106583
2.5 - Low
- October 06, 2026
In ssh in OpenSSH before 10.6, a $ or \ character can occur in a command-line username, leading to injection.
Insecure Direct Object Reference
OpenSSH <=10.6 sshd root escalation via GatewayPorts/StreamLocalForwarding
CVE-2026-106589
2.9 - Low
- October 06, 2026
In sshd in OpenSSH through 10.6, in certain environments such as QNX 6 and SCO OpenServer 5, sshd-session can unexpectedly have root privileges. This is related to the GatewayPorts and StreamLocalForwarding configuration options, and lack of support for file-descriptor passing and unprivileged allocation of PTY devices.
Least Privilege Violation
CVE-2026-106588: OpenSSH sshd <=10.6 Sandbox Bypass via macOS 27 SDK
CVE-2026-106588
3.1 - Low
- October 06, 2026
In sshd in OpenSSH through 10.6, use of the macOS 27 (or later) SDK has the side effect of loss of sandboxing, which is potentially unexpected.
Separation of Privilege
OpenSSH sshd before 10.6 misinterprets "none" config as filename
CVE-2026-106587
3.6 - Low
- October 06, 2026
In sshd in OpenSSH before 10.6, the value "none" for a configuration option is sometimes interpreted as a filename but was intended to mean that a feature is disabled.
Object Type Confusion
OpenSSH sshd restrict keyword tunnel bypass before 10.6
CVE-2026-106586
2.5 - Low
- October 06, 2026
In sshd in OpenSSH before 10.6, the restrict keyword (in authorized_keys) was supposed to be applicable to tunnel forwarding but was not, a different vulnerability than CVE-2026-73283.
Always-Incorrect Control Flow Implementation
OpenSSH <10.6 Decompression DoS in sshd/ssh (max packet length unchecked)
CVE-2026-106585
6.5 - Medium
- October 06, 2026
In sshd and ssh in OpenSSH before 10.6, there is no check for whether the maximum packet length is exceeded during decompression of highly compressed data.
Data Amplification
OpenSSH ssh-keygen <10.6 DST certificate expiry mishandling
CVE-2026-106584
2.5 - Low
- October 06, 2026
In ssh-keygen in OpenSSH before 10.6, certificates could have incorrect expiration times because of Daylight Saving mishandling. There can be a slightly more severe effect on users in certain Antarctic locations.
off-by-five
OpenSSH <10.6 LZ77 coder misuse vulnerability
CVE-2026-106582
3.7 - Low
- October 06, 2026
In sshd and ssh in OpenSSH before 10.6, an LZ77 dictionary coder can be used even though this is contraindicated by the arXiv 2609.07709 "Crossing the Streams" findings.
Covert Channel
CVE-2026-106555: OpenSSH sshd <10.6 GSSAPIAuthentication state persistence
CVE-2026-106555
2.2 - Low
- October 06, 2026
In sshd in OpenSSH before 10.6, GSSAPIAuthentication authentication state can incorrectly be persisted across authentication attempts.
Incorrect Resource Transfer Between Spheres
OpenSSH <10.6 sshd GSSAPIAuthentication credential persistence bug
CVE-2026-106553
2.2 - Low
- October 06, 2026
In sshd in OpenSSH before 10.6, credentials can incorrectly persist after failure of a GSSAPIAuthentication authentication attempt.
Incorrect Resource Transfer Between Spheres
OpenSSH <10.6 SFTP directory traversal via recursive copy
CVE-2026-106552
4.2 - Medium
- October 06, 2026
In sftp in OpenSSH before 10.6, a server can trigger directory traversal (causing files to be written to unintended locations) during a recursive copy operation.
Relative Path Traversal
OpenSSH <10.5: restrict keyword fails to block tunnel forwarding in sshd
CVE-2026-73283
2.5 - Low
- August 11, 2026
In sshd in OpenSSH before 10.5, the restrict keyword (in authorized_keys) was supposed to be applicable to tunnel forwarding but was not.
Always-Incorrect Control Flow Implementation
OpenSSH <10.5 UAF via Concurrent Remote-Forwarding (CVE-2026-73282)
CVE-2026-73282
4.8 - Medium
- August 11, 2026
In ssh in OpenSSH before 10.5, a use-after-free for realloc data can occur if a certain pair of remote-forwarding operations are concurrent.
Dangling pointer
SSH-AGENT Performs Remote Ops in OpenSSH <10.5 (session-bind)
CVE-2026-73281
3.5 - Low
- August 11, 2026
In ssh-agent in OpenSSH before 10.5, some operations can occur remotely but were intended to occur only locally, including operations that add tokens or use keys. This is caused by misinteraction between agent locking and the session-bind@openssh.com extension.
Incorrect Resource Transfer Between Spheres
OpenSSH <=10.3 Use-After-Free via Host Key Change (ssh)
CVE-2026-60002
7.7 - High
- July 08, 2026
ssh in OpenSSH before 10.4 can have a use-after-free when a server changes its host key during a key re-exchange. (This outcome occurs only on the client side.)
Dangling pointer
OpenSSH sshd min auth delay bypass before 10.4
CVE-2026-60001
6.5 - Medium
- July 08, 2026
sshd in OpenSSH before 10.4 does not always honor the minimum authentication delay.
Allocation of Resources Without Limits or Throttling
OpenSSH <10.4 GSSAPI MaxAuthTries DoS
CVE-2026-60000
3.7 - Low
- July 08, 2026
sshd in OpenSSH before 10.4 allows remote attackers to cause a denial of service (resource consumption from excessive authentication attempts) because MaxAuthTries was mishandled for GSSAPIAuthentication.
Allocation of Resources Without Limits or Throttling
OpenSSH<10.4 DisableForwarding fails to block PermitTunnel
CVE-2026-59999
5.9 - Medium
- July 08, 2026
In sshd in OpenSSH before 10.4, DisableForwarding=yes was supposed to take precedence over PermitTunnel=yes, but did not.
Use of Less Trusted Source
OpenSSH sshd GSSAPIStrictAcceptorCheck Misconfig Pre-10.4 on AD
CVE-2026-59998
4.8 - Medium
- July 08, 2026
sshd in OpenSSH before 10.4 has an undocumented security-relevant behavior: GSSAPIStrictAcceptorCheck has no value if the server is in Windows Active Directory.
Improper Following of Specification by Caller
OpenSSH <=10.3 internal-sftp accepts only first 9 args
CVE-2026-59997
4.2 - Medium
- July 08, 2026
internal-sftp in sshd in OpenSSH before 10.4 recognizes only the first 9 command-line arguments, which can be important if a later command-line argument would have helped to ensure the intended security properties of an SFTP connection.
Improper Validation of Specified Quantity in Input
OpenSSH <10.4 SCP Path Traversal Remote Files Pushed to Parent Directory
CVE-2026-59996
4.2 - Medium
- July 08, 2026
scp in OpenSSH before 10.4 may place a file in the parent directory of an intended directory when the copy occurs between two remote destinations.
Relative Path Traversal
OpenSSH SFTP Server Path Constraint Flaw <10.4
CVE-2026-59995
4.2 - Medium
- July 08, 2026
sftp in OpenSSH before 10.4 does not properly constrain the location of downloaded files when "sftp server:/path ." is used with an attacker-controlled server.
Relative Path Traversal
OpenSSH 10.2 Principals Option Misparse via Commas in CA
CVE-2026-35414
4.2 - Medium
- April 02, 2026
OpenSSH before 10.3 mishandles the authorized_keys principals option in uncommon scenarios involving a principals list in conjunction with a Certificate Authority that makes certain use of comma characters.
Always-Incorrect Control Flow Implementation
OpenSSH <10.3: Missing confirmation in proxymode multiplexing
CVE-2026-35388
2.5 - Low
- April 02, 2026
OpenSSH before 10.3 omits connection multiplexing confirmation for proxy-mode multiplexing sessions.
Unprotected Alternate Channel
OpenSSH <10.3 Unintended ECDSA via PubkeyAcceptedAlgorithms
CVE-2026-35387
3.1 - Low
- April 02, 2026
OpenSSH before 10.3 can use unintended ECDSA algorithms. Listing of any ECDSA algorithm in PubkeyAcceptedAlgorithms or HostbasedAcceptedAlgorithms is misinterpreted to mean all ECDSA algorithms.
Always-Incorrect Control Flow Implementation
OpenSSH <=10.2: Cmd Exec via Metachar Username on CLI
CVE-2026-35386
3.6 - Low
- April 02, 2026
In OpenSSH before 10.3, command execution can occur via shell metacharacters in a username within a command line. This requires a scenario where the username on the command line is untrusted, and also requires a non-default configurations of % in ssh_config.
Incorrect Behavior Order
OpenSSH <10.3 Setuid/Gid Escalation via SCP -O (no -p)
CVE-2026-35385
7.5 - High
- April 02, 2026
In OpenSSH before 10.3, a file downloaded by scp may be installed setuid or setgid, an outcome contrary to some users' expectations, if the download is performed as root with -O (legacy scp protocol) and without -p (preserve mode).
Improper Preservation of Permissions
OpenSSH GSSAPI Mechanism Count DoS Leading to DoS via Unbounded Mem
CVE-2025-58181
5.3 - Medium
- November 19, 2025
SSH servers parsing GSSAPI authentication requests do not validate the number of mechanisms specified in the request, allowing an attacker to cause unbounded memory consumption.
Allocation of Resources Without Limits or Throttling
OpenSSH Client: SSH Multiplexing Timeout Bypass Allows Post-Timeout File Ops
CVE-2025-54547
5.3 - Medium
- October 29, 2025
On affected platforms, if SSH session multiplexing was configured on the client side, SSH sessions (e.g, scp, sftp) multiplexed onto the same channel could perform file-system operations after a configured session timeout expired
Insufficient Session Expiration
OpenSSH unprivileged account allows persistent SSH/Service DoS
CVE-2025-59459
5.5 - Medium
- October 27, 2025
An attacker that gains SSH access to an unprivileged account may be able to disrupt services (including SSH), causing persistent loss of availability.
Allocation of Resources Without Limits or Throttling
OpenSSH before 10.1 Null Byte in ssh:// URI ProxyCommand Code Execution
CVE-2025-61985
3.6 - Low
- October 06, 2025
ssh in OpenSSH before 10.1 allows the '\0' character in an ssh:// URI, potentially leading to code execution when a ProxyCommand is used.
Improper Neutralization of Null Byte or NUL Character
OpenSSH 10.1-Prev: Username Ctrl Char Enables Code Exec via ProxyCommand
CVE-2025-61984
3.6 - Low
- October 06, 2025
ssh in OpenSSH before 10.1 allows control characters in usernames that originate from certain possibly untrusted sources, potentially leading to code execution when a ProxyCommand is used. The untrusted sources are the command line and %-sequence expansion of a configuration file. (A configuration file that provides a complete literal username is not categorized as an untrusted source.)
Improper Handling of Invalid Use of Special Elements
Local PrivEsc via SSH Script Input Validation Flaw in OpenSSH
CVE-2025-24005
7.8 - High
- July 08, 2025
A local attacker with a local user account can leverage a vulnerable script via SSH to escalate privileges to root due to improper input validation.
Improper Input Validation
OpenSSH Hard-Coded Root /etc/shadow Entry (CVE-2025-48416)
CVE-2025-48416
8.1 - High
- May 21, 2025
An OpenSSH daemon listens on TCP port 22. There is a hard-coded entry in the "/etc/shadow" file in the firmware image for the "root" user. However, in the default SSH configuration the "PermitRootLogin" is disabled, preventing the root user from logging in via SSH. This configuration can be bypassed/changed by an attacker through multiple paths though.
Hidden Functionality
OpenSSH <10.0: DisableForwarding fails to disable X11/agent forwarding
CVE-2025-32728
4.3 - Medium
- April 10, 2025
In sshd in OpenSSH before 10.0, the DisableForwarding directive does not adhere to the documentation stating that it disables X11 and agent forwarding.
Expected Behavior Violation
OpenSSH DoS via Ping-Pong Packet Queue Overflow
CVE-2025-26466
5.9 - Medium
- February 28, 2025
A flaw was found in the OpenSSH package. For each ping packet the SSH server receives, a pong packet is allocated in a memory buffer and stored in a queue of packages. It is only freed when the server/client key exchange has finished. A malicious client may keep sending such packages, leading to an uncontrolled increase in memory consumption on the server side. Consequently, the server may become unavailable, resulting in a denial of service attack.
Allocation of Resources Without Limits or Throttling
OpenSSH File Transfer DoS via Slow Key Exchange
CVE-2025-22869
- February 26, 2025
SSH servers which implement file transfer protocols are vulnerable to a denial of service attack from clients which complete the key exchange slowly, or not at all, causing pending content to be read into memory, but never transmitted.
OpenSSH VerifyHostKeyDNS DoS via Host Key Verification Error
CVE-2025-26465
6.8 - Medium
- February 18, 2025
A vulnerability was found in OpenSSH when the VerifyHostKeyDNS option is enabled. A machine-in-the-middle attack can be performed by a malicious machine impersonating a legit server. This issue occurs due to how OpenSSH mishandles error codes in specific conditions when verifying the host key. For an attack to be considered successful, the attacker needs to manage to exhaust the client's memory resource first, turning the attack complexity high.
Detection of Error Condition Without Action
OpenSSH SSHd SIGALRM Race Enables Remote RCE
CVE-2024-6409
7 - High
- July 08, 2024
A race condition vulnerability was discovered in how signals are handled by OpenSSH's server (sshd). If a remote attacker does not authenticate within a set time period, then sshd's SIGALRM handler is called asynchronously. However, this signal handler calls various functions that are not async-signal-safe, for example, syslog(). As a consequence of a successful attack, in the worst case scenario, an attacker may be able to perform a remote code execution (RCE) as an unprivileged user running the sshd server.
Signal Handler Race Condition
OpenSSH 9.59.7 Timing Attack on echooff keystrokes
CVE-2024-39894
7.5 - High
- July 02, 2024
OpenSSH 9.5 through 9.7 before 9.8 sometimes allows timing attacks against echo-off password entry (e.g., for su and Sudo) because of an ObscureKeystrokeTiming logic error. Similarly, other timing attacks against keystroke entry could occur.
TOCTTOU
OpenSSH Race Condition leading to RCE, known as regreSSHion
CVE-2024-6387
8.1 - High
- July 01, 2024
A security regression (CVE-2006-5051) was discovered in OpenSSH's server (sshd). There is a race condition which can lead sshd to handle some signals in an unsafe manner. An unauthenticated, remote attacker may be able to trigger it by failing to authenticate within a set time period.
Signal Handler Race Condition
DoS via repeated SSH packets in OpenSSH
CVE-2024-32943
- June 20, 2024
An attacker may be able to cause a denial-of-service condition by sending many SSH packets repeatedly.
Insufficient anti-automation
OpenSSH Hard-Coded Root Account Remote Auth (CVE-2023-48251)
CVE-2023-48251
9.8 - Critical
- January 10, 2024
The vulnerability allows a remote attacker to authenticate to the SSH service with root privileges through a hidden hard-coded account.
Use of Hard-coded Credentials
OpenSSH <10.0 RowHammer Auth Bypass via mm_answer_authpassword
CVE-2023-51767
7 - High
- December 24, 2023
OpenSSH through 10.0, when common types of DRAM are used, might allow row hammer attacks (for authentication bypass) because the integer value of authenticated in mm_answer_authpassword does not resist flips of a single bit. NOTE: this is applicable to a certain threat model of attacker-victim co-location in which the attacker has user privileges. NOTE: this is disputed by the Supplier, who states "we do not consider it to be the application's responsibility to defend against platform architectural weaknesses."
OpenSSH <9.6 OS Command Injection via Username/Host Metacharacters
CVE-2023-51385
6.5 - Medium
- December 18, 2023
In ssh in OpenSSH before 9.6, OS command injection might occur if a user name or host name has shell metacharacters, and this name is referenced by an expansion token in certain situations. For example, an untrusted Git repository can have a submodule with shell metacharacters in a user name or host name.
Shell injection
OpenSSH <9.6 ssh-agent PKCS#11 Dest. Cons. Flaw
CVE-2023-51384
5.5 - Medium
- December 18, 2023
In ssh-agent in OpenSSH before 9.6, certain destination constraints can be incompletely applied. When destination constraints are specified during addition of PKCS#11-hosted private keys, these constraints are only applied to the first key, even if a PKCS#11 token returns multiple keys.
Authorization
OpenSSH <9.6 BPP handshake flaw allows integrity bypass (Terrapin attack)
CVE-2023-48795
5.9 - Medium
- December 18, 2023
The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remote attackers to bypass integrity checks such that some packets are omitted (from the extension negotiation message), and a client and server may consequently end up with a connection for which some security features have been downgraded or disabled, aka a Terrapin attack. This occurs because the SSH Binary Packet Protocol (BPP), implemented by these extensions, mishandles the handshake phase and mishandles use of sequence numbers. For example, there is an effective attack against SSH's use of ChaCha20-Poly1305 (and CBC with Encrypt-then-MAC). The bypass occurs in chacha20-poly1305@openssh.com and (if CBC is used) the -etm@openssh.com MAC algorithms. This also affects Maverick Synergy Java SSH API before 3.1.0-SNAPSHOT, Dropbear through 2022.83, Ssh before 5.1.1 in Erlang/OTP, PuTTY before 0.80, AsyncSSH before 2.14.2, golang.org/x/crypto before 0.17.0, libssh before 0.10.6, libssh2 through 1.11.0, Thorn Tech SFTP Gateway before 3.4.6, Tera Term before 5.1, Paramiko before 3.4.0, jsch before 0.2.15, SFTPGo before 2.5.6, Netgate pfSense Plus through 23.09.1, Netgate pfSense CE through 2.7.2, HPN-SSH through 18.2.0, ProFTPD before 1.3.8b (and before 1.3.9rc2), ORYX CycloneSSH before 2.3.4, NetSarang XShell 7 before Build 0144, CrushFTP before 10.6.0, ConnectBot SSH library before 2.2.22, Apache MINA sshd through 2.11.0, sshj through 0.37.0, TinySSH through 20230101, trilead-ssh2 6401, LANCOM LCOS and LANconfig, FileZilla before 3.66.4, Nova before 11.8, PKIX-SSH before 14.4, SecureCRT before 9.4.3, Transmit5 before 5.10.4, Win32-OpenSSH before 9.5.0.0p1-Beta, WinSCP before 6.2.2, Bitvise SSH Server before 9.32, Bitvise SSH Client before 9.33, KiTTY through 0.76.1.13, the net-ssh gem 7.2.0 for Ruby, the mscdex ssh2 module before 1.15.0 for Node.js, the thrussh library before 0.35.1 for Rust, and the Russh crate before 0.40.2 for Rust.
Improper Validation of Integrity Check Value
OpenSSH sftp-server NULL Deref via Missing Alloc Check DoS
CVE-2023-3603
6.5 - Medium
- July 21, 2023
A missing allocation check in sftp server processing read requests may cause a NULL dereference on low-memory conditions. The malicious client can request up to 4GB SFTP reads, causing allocation of up to 4GB buffers, which was not being checked for failure. This will likely crash the authenticated user's sftp server connection (if implemented as forking as recommended). For thread-based servers, this might also cause DoS for legitimate users. Given this code is not in any released versions, no security releases have been issued.
NULL Pointer Dereference
OpenSSH SSH-Agent PKCS#11 RCE via untrusted path (pre-9.3p2)
CVE-2023-38408
9.8 - Critical
- July 20, 2023
The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if an agent is forwarded to an attacker-controlled system. (Code in /usr/lib is not necessarily safe for loading into ssh-agent.) NOTE: this issue exists because of an incomplete fix for CVE-2016-10009.
Unquoted Search Path or Element
Stay on top of Security Vulnerabilities
Want an email whenever new vulnerabilities are published for OpenBSD OpenSSH or by OpenBSD? Click the Watch button to subscribe.