CVE-2025-61985: CWE-158 Improper Neutralization of Null Byte or NUL Character in OpenBSD OpenSSH
ssh in OpenSSH before 10.1 allows the '\0' character in an ssh:// URI, potentially leading to code execution when a ProxyCommand is used.
AI Analysis
Technical Summary
CVE-2025-61985 is a vulnerability in OpenSSH versions prior to 10.1 where the ssh client improperly handles the '\0' (null byte) character in ssh:// URIs. This improper neutralization can lead to potential code execution when a ProxyCommand is configured. The vulnerability is categorized under CWE-158. The CVSS 3.1 base score is 3.6, reflecting low severity with local attack vector, high attack complexity, low privileges required, no user interaction, and limited confidentiality and integrity impact.
Potential Impact
The vulnerability may allow an attacker with local access and the ability to influence ssh:// URIs to execute arbitrary code via a crafted URI when a ProxyCommand is used. The impact is limited to confidentiality and integrity with no availability impact. Given the low CVSS score and lack of known exploits, the risk is considered low.
Mitigation Recommendations
No official patch or remediation information is provided in the available data. Users should upgrade to OpenSSH version 10.1 or later once a fix is released. Until then, avoid using untrusted ssh:// URIs with ProxyCommand configurations. Monitor the OpenBSD vendor advisories for updates and apply official fixes when available. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
CVE-2025-61985: CWE-158 Improper Neutralization of Null Byte or NUL Character in OpenBSD OpenSSH
Description
ssh in OpenSSH before 10.1 allows the '\0' character in an ssh:// URI, potentially leading to code execution when a ProxyCommand is used.
CVSS v3.1
Score 3.6low
Affected software
OpenBSD
OpenSSH
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2025-61985 is a vulnerability in OpenSSH versions prior to 10.1 where the ssh client improperly handles the '\0' (null byte) character in ssh:// URIs. This improper neutralization can lead to potential code execution when a ProxyCommand is configured. The vulnerability is categorized under CWE-158. The CVSS 3.1 base score is 3.6, reflecting low severity with local attack vector, high attack complexity, low privileges required, no user interaction, and limited confidentiality and integrity impact.
Potential Impact
The vulnerability may allow an attacker with local access and the ability to influence ssh:// URIs to execute arbitrary code via a crafted URI when a ProxyCommand is used. The impact is limited to confidentiality and integrity with no availability impact. Given the low CVSS score and lack of known exploits, the risk is considered low.
Mitigation Recommendations
No official patch or remediation information is provided in the available data. Users should upgrade to OpenSSH version 10.1 or later once a fix is released. Until then, avoid using untrusted ssh:// URIs with ProxyCommand configurations. Monitor the OpenBSD vendor advisories for updates and apply official fixes when available. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance.
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- mitre
- Date Reserved
- 2025-10-06T00:00:00.000Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 68e40c3dcf87aa9c343ce4e1
Added to database: 10/06/2025, 18:36:45 UTC
Last enriched: 07/15/2026, 11:19:31 UTC
Last updated: 09/10/2026, 19:46:22 UTC
Views: 1490
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.