OS Command Injection in OpenSSH - CVE-2025-61984
Published: October 10, 2025
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.
The vulnerability exists due to improper validation of control characters in usernames obtained from an untrusted source (such as command line and %-sequence expansion of a configuration file). A remote attacker can trick the victim into initiating an ssh connection using a specially crafted configuration file and execute arbitrary shell commands on the system.
This vulnerability affects ssh client command and does not affect the sshd daemon.
Affected software
SUSE Manager Server 4.3
SUSE Linux Enterprise Server 12 SP5
SUSE Linux Enterprise Server 12 SP5 LTSS Extended
SUSE Linux Enterprise Server 15 SP3
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server 15 SP5
Debian Linux
SUSE Manager Proxy 4.3
SUSE Manager Retail Branch Server 4.3
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Server 12
SUSE Linux Enterprise Server for SAP Applications 12
SUSE Linux Enterprise High Performance Computing 12
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro for Rancher
SUSE Linux Enterprise Micro
SUSE Enterprise Storage
IBM i
Red Hat Enterprise Linux for Power, little endian
Anolis OS
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Basesystem Module
Desktop Applications Module
openSUSE Leap
openEuler
Ubuntu
Oracle Solaris
IBM Cloud Pak System
LANTIME Operating System Firmware (LTOS)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
pam_ssh_agent_auth
openssh-askpass-gnome
openssh-helpers
openssh-askpass-gnome-debuginfo
openssh-debuginfo
openssh-debugsource
openssh
openssh-fips
openssh-helpers-debuginfo
openssh-server
openssh-ldap
openssh-keycat
openssh-clients
openssh-cavs
openssh-askpass
openssh (Red Hat package)
openssh (Ubuntu package)
openssh-help
openssh8.4-server
openssh8.4-clients-debuginfo
openssh8.4-common-debuginfo
openssh8.4-debugsource
openssh8.4
openssh8.4-server-debuginfo
openssh8.4-clients
openssh8.4-helpers
openssh8.4-common
openssh8.4-fips
openssh8.4-helpers-debuginfo
openssh-askpass-gnome-debugsource
openssh-server-debuginfo
openssh-common
openssh-clients-debuginfo
openssh-common-debuginfo
openssh-cavs-debuginfo
openssh (Debian package)
openssh-sk-dummy
openssh-doc
openssh-server-config-disallow-rootlogin
Oracle Communications Policy Management
OpenShift Virtualization
Red Hat Update Infrastructure (RHUI)
IBM Power Hardware Management Console (HMC)
How to mitigate CVE-2025-61984
IBM Cloud Pak System - update to 2.3.5.1
LANTIME Operating System Firmware (LTOS) - update to 7.10.005
pam_ssh_agent_auth - update to 0.10.3-7.27.0.1
pam_ssh_agent_auth - addressed in versions 0.10.3-9.33, 0.10.4-4.9, 0.10.4-4.37, 0.10.4-5.9
OpenShift Virtualization - update to 4.19.17
Red Hat Update Infrastructure (RHUI) - update to 5.0.0
openssh-askpass-gnome - addressed in versions 7.2p2-81.34.1, 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-helpers - addressed in versions 7.2p2-81.34.1, 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-askpass-gnome-debuginfo - addressed in versions 7.2p2-81.34.1, 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-debuginfo - addressed in versions 7.2p2-81.34.1, 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-debugsource - addressed in versions 7.2p2-81.34.1, 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh - addressed in versions 7.2p2-81.34.1, 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-fips - addressed in versions 7.2p2-81.34.1, 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-helpers-debuginfo - addressed in versions 7.2p2-81.34.1, 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-server - addressed in versions 8.0p1-27.0.1, 9.6p1-4
openssh-ldap - update to 8.0p1-27.0.1
openssh-keycat - addressed in versions 8.0p1-27.0.1, 9.6p1-4
openssh-clients - addressed in versions 8.0p1-27.0.1, 9.6p1-4
openssh-cavs - update to 8.0p1-27.0.1
openssh-askpass - addressed in versions 8.0p1-27.0.1, 9.6p1-4
openssh - addressed in versions 8.0p1-27.0.1, 9.6p1-4
openssh (Red Hat package) - addressed in versions 8.0p1-27.el8_10, 8.7p1-13.el9_0.1, 8.7p1-30.el9_2.9, 8.7p1-38.el9_4.6, 8.7p1-45.el9_6.1, 9.9p1-7.el10_0.1
openssh (Ubuntu package) - addressed in versions 1:8.2p1-4ubuntu0.13+esm1, 1:8.9p1-3ubuntu0.14, 1:9.6p1-3ubuntu13.15, 1:10.0p1-5ubuntu5.1
openssh-help - addressed in versions 8.2p1-33, 8.8p1-37, 9.3p2-9, 9.6p1-9
openssh-server - addressed in versions 8.2p1-33, 8.8p1-37, 9.3p2-9, 9.6p1-9
openssh-ldap - update to 8.2p1-33
openssh-keycat - addressed in versions 8.2p1-33, 8.8p1-37, 9.3p2-9, 9.6p1-9
openssh-debugsource - addressed in versions 8.2p1-33, 8.8p1-37, 9.3p2-9, 9.6p1-9
openssh-debuginfo - addressed in versions 8.2p1-33, 8.8p1-37, 9.3p2-9, 9.6p1-9
openssh-clients - addressed in versions 8.2p1-33, 8.8p1-37, 9.3p2-9, 9.6p1-9
openssh - addressed in versions 8.2p1-33, 8.8p1-37, 9.3p2-9, 9.6p1-9
openssh-askpass - addressed in versions 8.2p1-33, 8.8p1-37, 9.3p2-9, 9.6p1-9
openssh-cavs - update to 8.2p1-33
openssh8.4-server - update to 8.4p1-8.19.1
openssh8.4-clients-debuginfo - update to 8.4p1-8.19.1
openssh8.4-common-debuginfo - update to 8.4p1-8.19.1
openssh8.4-debugsource - update to 8.4p1-8.19.1
openssh8.4 - update to 8.4p1-8.19.1
openssh8.4-server-debuginfo - update to 8.4p1-8.19.1
openssh8.4-clients - update to 8.4p1-8.19.1
openssh8.4-helpers - update to 8.4p1-8.19.1
openssh8.4-common - update to 8.4p1-8.19.1
openssh8.4-fips - update to 8.4p1-8.19.1
openssh8.4-helpers-debuginfo - update to 8.4p1-8.19.1
openssh-askpass-gnome-debugsource - addressed in versions 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-server-debuginfo - addressed in versions 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-common - addressed in versions 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-clients - addressed in versions 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-server - addressed in versions 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-clients-debuginfo - addressed in versions 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-common-debuginfo - addressed in versions 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-cavs - addressed in versions 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh-cavs-debuginfo - addressed in versions 8.4p1-150300.3.57.1, 9.6p1-150600.6.34.1
openssh (Debian package) - addressed in versions 1:9.2p1-2+deb12u9, 1:10.0p1-7+deb13u2
openssh-sk-dummy - update to 9.6p1-4
openssh-doc - update to 9.6p1-4
openssh-server-config-disallow-rootlogin - update to 9.6p1-150600.6.34.1
IBM Power Hardware Management Console (HMC) - addressed in versions 10.3.1063.2, 11.1.1111.5
Oracle Solaris - addressed in versions 11.3 ESU 36.35, 11.4 SRU 89
External References
Related Security Bulletins
- Two command injection vulnerabilities in OpenSSH client
- openEuler 24.03 LTS SP2 update for openssh
- openEuler 24.03 LTS SP1 update for openssh
- openEuler 22.03 LTS SP4 update for openssh
- openEuler 22.03 LTS SP3 update for openssh
- openEuler 20.03 LTS SP4 update for openssh
- openEuler 24.03 LTS update for openssh
- SUSE update for openssh
- Anolis OS update for openssh
- SUSE update for openssh
- SUSE update for openssh8.4
- SUSE update for openssh
- Meinberg LANTIME firmware update for third-party components
- Red Hat Enterprise Linux 8 update for openssh
- Anolis OS update for openssh
- Red Hat Enterprise Linux 9 update for openssh
- Multiple vulnerabilities in Red Hat Update Infrastructure (RHUI) 5 container images
- Multiple vulnerabilities in Oracle Solaris
- Multiple vulnerabilities in OpenShift Virtualization 4.19
- Red Hat Enterprise Linux 9 update for openssh
- Red Hat Enterprise Linux 10 update for openssh
- Red Hat Enterprise Linux 9 update for openssh
- Red Hat Enterprise Linux 9 update for openssh
- Ubuntu update for openssh
- Ubuntu update for openssh
- Multiple vulnerabilities in IBM Power Hardware Management Console (HMC)
- Debian update for openssh
- Multiple vulnerabilities in Oracle Communications Policy Management
- Multiple vulnerabilities in IBM i
- Multiple vulnerabilities in IBM Cloud Pak System