Skip to main content
EPSS 0.1%top 98%

CVE-2025-61985: CWE-158 Improper Neutralization of Null Byte or NUL Character in OpenBSD OpenSSH

0
Low
VulnerabilityCVE-2025-61985cvecve-2025-61985cwe-158gcve
Published: 10/06/2025 (10/06/2025, 00:00:00 UTC)
Source: CVE Database V5
Vendor/Project: OpenBSD
Product: 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

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N

Affected software

OpenBSD

OpenSSH

Affected versions
>=0 <10.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 11:19:31 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses