OpenSSH 10.3 Fixes Shell Injection and Multiple SSH/sshd Security Flaws
Patch & Detection Intelligence · 10 sources · Updated 5mo ago · First seen Apr 2, 2026

OpenSSH 10.3 has been released with five security fixes affecting both the ssh client and sshd, led by a shell-injection risk in ssh(1) where attacker-controlled usernames could trigger arbitrary shell command execution in configurations that use %-token expansion such as %u inside Match exec blocks. The release also fixes improper certificate principal matching in authorized_keys, incorrect acceptance behavior around restricted ECDSA algorithms, and a legacy scp(1) issue that could preserve setuid/setgid bits on downloaded files when run as root under specific conditions.
The update changes certificate handling so empty principals sections no longer act as wildcard matches in risky scenarios, adds command-line validation for ProxyJump/-J to reduce shell-injection exposure, and includes a portability fix for a PAM-related username confusion issue introduced in the OpenSSH 10.2p1 stable branch. OpenSSH 10.3 also drops support for peers that do not implement rekeying and adds operational improvements including IANA-assigned SSH agent forwarding codepoints, per-source penalties for invalid usernames, better multiplexing diagnostics, and fixes for PKCS#11 PIN entry, FIDO/WebAuthn certificate signatures, and an sshd crash condition.
Why it matters
Impact assessment
OpenSSH deployments using the ssh client, sshd, or legacy scp are affected, with the highest risk concentrated in environments that programmatically construct ssh command lines, use ssh_config Match exec or LocalCommand directives with %-token expansion, rely on authorized_keys CA trust patterns, or still use scp legacy mode as root. The most serious outcome is arbitrary shell command execution on the client side when attacker-controlled usernames or ProxyJump values are passed into unsafe ssh invocations; additional issues can weaken authentication policy enforcement or preserve dangerous file permission bits.
The exposure is broad because OpenSSH is widely deployed, but practical exploitation is configuration-dependent for most issues. The story does not provide confirmed in-the-wild exploitation, but the release addresses multiple security flaws with direct security impact and assigned CVEs.
Affected populations
- Enterprises, cloud operators, managed service providers, and developers using OpenSSH 10.2/10.2p1-era and earlier client/server deployments prior to 10.3/10.3p1
- Administrators exposing ssh command-line parameters to user-controlled or application-controlled input
- Environments using ssh_config directives such as Match exec and LocalCommand
- Environments using authorized_keys with principals="" and user-trusted CA keys
- Systems using legacy scp mode with
scp -Oas root - Deployments restricting ECDSA algorithms via
PubkeyAcceptedAlgorithmsorHostbasedAcceptedAlgorithms
Severity and business effect
- Client-side command execution can lead to workstation compromise, credential theft, lateral movement, and automation pipeline abuse
- Authentication-policy flaws in sshd can permit broader-than-intended certificate acceptance under narrow but high-impact trust configurations
- Legacy scp permission handling can preserve setuid/setgid bits on downloaded files, increasing local privilege abuse risk
- Rekeying compatibility removal may cause operational disruption with legacy SSH implementations after upgrade
Known exploitation status
- No confirmed exploitation in the wild is cited in the references
- Multiple issues were serious enough to receive CVE assignments and vendor fixes in OpenSSH 10.3


