CVE-2025-61985
OpenSSH vulnerability analysis and mitigation

Overview

CVE-2025-61985 is a security vulnerability discovered in OpenSSH versions before 10.1, disclosed on October 6, 2025. The vulnerability allows the '\0' (null) character in ssh:// URIs, which could potentially lead to code execution when a ProxyCommand is used (NVD, OpenSSH Release).

Technical details

The vulnerability has been assigned a CVSS v3.1 Base Score of 3.6 (LOW) with the vector string CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N. The issue is related to improper neutralization of null byte characters (CWE-158) in URI handling. The vulnerability specifically affects the SSH client's handling of ProxyCommand configurations when processing ssh:// URIs containing null bytes (NVD, Red Hat).

Impact

The impact is considered LOW to MODERATE as exploitation could lead to code execution in specific configurations. The vulnerability requires a specific configuration where ProxyCommand is enabled and the SSH client processes an untrusted ssh:// URI containing null bytes. Under these conditions, the command parser may misinterpret the URI and execute unintended shell commands (Red Hat).

Mitigation and workarounds

The vulnerability has been fixed in OpenSSH 10.1. The fix includes disallowing control characters in usernames passed via the commandline or expanded using %-sequences from the configuration file, and disallowing \0 characters in ssh:// URIs. For systems that cannot immediately upgrade, it is recommended to avoid using untrusted inputs to construct SSH command lines (OpenSSH Release).

Community reactions

The issue is considered "minor" by OpenSSH developers, as noted in Ubuntu's security assessment. The vulnerability was reported by David Leadbeater and was addressed as part of the OpenSSH 10.1 release (Ubuntu).

Additional resources


SourceThis report was generated using AI

Related OpenSSH vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-26465MEDIUM6.8
  • Rocky LinuxRocky Linux
  • openssh-askpass-gnome
NoYesFeb 18, 2025
CVE-2025-26466MEDIUM5.9
  • OpenSSHOpenSSH
  • openssh-askpass
NoYesFeb 28, 2025
CVE-2025-32728LOW3.8
  • Alma LinuxAlma Linux
  • openssh
NoYesApr 10, 2025
CVE-2025-61985LOW3.6
  • OpenSSHOpenSSH
  • openssh8.4-common
NoYesOct 06, 2025
CVE-2025-61984LOW3.6
  • OpenSSHOpenSSH
  • openssh-clients
NoYesOct 06, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management