CVE-2025-61984 Command injection in OpenSSH
OpenSSH allows control characters in untrusted usernames, enabling code execution when ProxyCommand is used.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-61984?
CVE-2025-61984 is a low-severity command injection vulnerability in OpenBSD OpenSSH, published on 6 Oct 2025. It can only be exploited from the same machine or local network, with no action from the victim.
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.)
Weakness: CWE-159
Which versions are affected by CVE-2025-61984?
Linux distribution packages (4)
openssh SUSE:Linux Enterprise Server 12 SP5-LTSS | All versions | 7.2p2-81.34.1 |
openssh-askpass-gnome SUSE:Linux Enterprise Server 12 SP5-LTSS | All versions | 7.2p2-81.34.1 |
openssh SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 7.2p2-81.34.1 |
openssh-askpass-gnome SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 7.2p2-81.34.1 |
How do I fix CVE-2025-61984?
Upgrade to a fixed version.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2025-61984 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-61984 exists.
Public exploit code: 2 proofs of concept on GitHub.
Sources
Also known as ALPINE-CVE-2025-61984, AZL-68231, BELL-CVE-2025-61984, DEBIAN-CVE-2025-61984, ECHO-8420-5303-4f71, GHSA-hh67-847q-q3h9 and 3 more.