Vulnerability · Published Oct 6, 2025 · Assigned by mitre
CVE-2025-61984
Low 3.6
In plain English
A low-severity security flaw in OpenSSH from OpenBSD. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.)
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | openssh | 9.9p1-12.el10_1.alma.1 | ALSA-2025:23479 |
| AlmaLinux:8 | openssh | 8.0p1-27.el8_10 | ALSA-2025:23481 |
| AlmaLinux:9 | openssh | 8.7p1-47.el9_7.alma.1 | ALSA-2025:23480 |
| AlmaLinux:10 | openssh-askpass | 9.9p1-12.el10_1.alma.1 | ALSA-2025:23479 |
| AlmaLinux:8 | openssh-askpass | 8.0p1-27.el8_10 | ALSA-2025:23481 |
| AlmaLinux:9 | openssh-askpass | 8.7p1-47.el9_7.alma.1 | ALSA-2025:23480 |
| AlmaLinux:8 | openssh-cavs | 8.0p1-27.el8_10 | ALSA-2025:23481 |
| AlmaLinux:10 | openssh-clients | 9.9p1-12.el10_1.alma.1 | ALSA-2025:23479 |
| AlmaLinux:8 | openssh-clients | 8.0p1-27.el8_10 | ALSA-2025:23481 |
| AlmaLinux:9 | openssh-clients | 8.7p1-47.el9_7.alma.1 | ALSA-2025:23480 |
| AlmaLinux:10 | openssh-keycat | 9.9p1-12.el10_1.alma.1 | ALSA-2025:23479 |
| AlmaLinux:8 | openssh-keycat | 8.0p1-27.el8_10 | ALSA-2025:23481 |
| AlmaLinux:9 | openssh-keycat | 8.7p1-47.el9_7.alma.1 | ALSA-2025:23480 |
| AlmaLinux:10 | openssh-keysign | 9.9p1-12.el10_1.alma.1 | ALSA-2025:23479 |
| AlmaLinux:8 | openssh-ldap | 8.0p1-27.el8_10 | ALSA-2025:23481 |
| AlmaLinux:10 | openssh-server | 9.9p1-12.el10_1.alma.1 | ALSA-2025:23479 |
| AlmaLinux:8 | openssh-server | 8.0p1-27.el8_10 | ALSA-2025:23481 |
| AlmaLinux:9 | openssh-server | 8.7p1-47.el9_7.alma.1 | ALSA-2025:23480 |
| AlmaLinux:8 | pam_ssh_agent_auth | 0.10.3-7.27.el8_10 | ALSA-2025:23481 |
| AlmaLinux:9 | pam_ssh_agent_auth | 0.10.4-5.47.el9_7.alma.1 | ALSA-2025:23480 |
| Alpine:v3.22 | openssh | 10.0_p1-r10 | ALPINE-CVE-2025-61984 |
| Alpine:v3.23 | openssh | 10.1_p1-r0 | ALPINE-CVE-2025-61984 |
| Alpine:v3.24 | openssh | 10.1_p1-r0 | ALPINE-CVE-2025-61984 |
| Debian:12 | openssh | 1:9.2p1-2+deb12u8 | DEBIAN-CVE-2025-61984 |
| Debian:13 | openssh | 1:10.0p1-7+deb13u1 | DEBIAN-CVE-2025-61984 |
| Debian:14 | openssh | 1:10.1p1-1 | DEBIAN-CVE-2025-61984 |
| Rocky Linux:10 | openssh | 0:9.9p1-12.el10_1.rocky.0.1 | RLSA-2025:23479 |
| Rocky Linux:8 | openssh | 0:8.0p1-27.el8_10 | RLSA-2025:23481 |
| Rocky Linux:9 | openssh | 0:8.7p1-47.el9_7.rocky.0.1 | RLSA-2025:23480 |
| Ubuntu:22.04:LTS | openssh | 1:8.9p1-3ubuntu0.14 | UBUNTU-CVE-2025-61984 |
| Ubuntu:24.04:LTS | openssh | 1:9.6p1-3ubuntu13.15 | UBUNTU-CVE-2025-61984 |
| Ubuntu:25.10 | openssh | 1:10.0p1-5ubuntu5.1 | UBUNTU-CVE-2025-61984 |
| Ubuntu:26.04:LTS | openssh | 1:10.2p1-2ubuntu1 | UBUNTU-CVE-2025-61984 |
| Ubuntu:22.04:LTS | openssh-ssh1 | no fix listed | UBUNTU-CVE-2025-61984 |
| Ubuntu:24.04:LTS | openssh-ssh1 | no fix listed | UBUNTU-CVE-2025-61984 |
| Ubuntu:25.10 | openssh-ssh1 | no fix listed | UBUNTU-CVE-2025-61984 |
| Ubuntu:26.04:LTS | openssh-ssh1 | no fix listed | UBUNTU-CVE-2025-61984 |
| Ubuntu:26.10 | openssh-ssh1 | no fix listed | UBUNTU-CVE-2025-61984 |
Affected products (as reported)
Weakness: CWE-159 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
References
- https://www.openwall.com/lists/oss-security/2025/10/06/1
- https://marc.info/?l=openssh-unix-dev&m=175974522032149&w=2
- https://www.openssh.com/releasenotes.html#10.1p1
- https://dgl.cx/2025/10/bash-a-newline-ssh-proxycommand-cve-2025-61984 exploit
- http://www.openwall.com/lists/oss-security/2025/10/07/1
- http://www.openwall.com/lists/oss-security/2025/10/12/1
- https://www.vicarius.io/vsociety/posts/cve-2025-61984-detection-script-remote-code-execution-vulnerability-affecting-openssh
- https://www.vicarius.io/vsociety/posts/cve-2025-61984-mitigation-script-remote-code-execution-vulnerability-affecting-openssh
- https://cert-portal.siemens.com/productcert/html/ssa-019113.html
- https://cert-portal.siemens.com/productcert/html/ssa-457936.html