---
id: CVE-2025-61984
title: >-
  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
summary: >-
  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 %…
severity: low
cvss: 3.6
cvssVector: 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N'
cvssSource: cna
cwe:
  - CWE-159
vendor: OpenBSD
product: OpenSSH
affected:
  - OpenSSH < 10.1
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2025-10-08T03:55:10.734755Z'
exploitAvailable: true
published: '2025-10-06'
updated: '2026-09-08'
sourceUpdated: '2026-09-08T08:43:01.210Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2025-61984'
references:
  - url: 'https://www.openwall.com/lists/oss-security/2025/10/06/1'
  - url: 'https://marc.info/?l=openssh-unix-dev&m=175974522032149&w=2'
  - url: 'https://www.openssh.com/releasenotes.html#10.1p1'
tags:
  - cve.org
  - exploit-available
epss: 0.00286
epssPercentile: 0.18801
exploits:
  github: 2
  githubRepos:
    - 'https://github.com/dgl/cve-2025-61984-poc'
    - 'https://github.com/flyskyfire/cve-2025-61984-poc'
  checkedAt: '2026-09-26T09:05:34.316Z'
ingestedAt: '2026-09-08T15:33:26.996Z'
---

## Overview

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

- `OpenSSH < 10.1`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
