Skip to main content

OpenSSH EUVDEUVD-2026-42139

| CVE-2026-59997 MEDIUM
Improper Validation of Specified Quantity in Input (CWE-1284)
2026-07-08 mitre GHSA-56r6-6mmg-25j5
5.4
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Admin configures >9 internal-sftp arguments
  2. Delivery
    Security flag silently dropped at position 10+
  3. Exploit
    Attacker authenticates as SFTP user
  4. Execution
    SFTP session starts without enforced restriction
  5. Impact
    Attacker reads or writes beyond intended scope

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V2 - Validation and Business Logic Input size validation
Exploitation Conditions

Exploitation requires that sshd is configured to use internal-sftp via the Subsystem directive AND that more than nine arguments are supplied to it in sshd_config, with a security-relevant flag such as -R (read-only), -d (directory restriction), -u (umask), or -P (permission control) placed at position 10 or later. The attacker must additionally authenticate to the server as an SFTP-capable user - unauthenticated exploitation is not possible because SFTP inherently requires a valid credential exchange. Environments using nine or fewer internal-sftp arguments, those using an external sftp-server binary rather than internal-sftp, or those that enforce access policy exclusively through other mechanisms (chroot, filesystem ACLs, PAM) are not affected. The non-default nature of a ten-plus argument configuration materially limits the exposed population.

Impact

The NVD-assigned CVSS 3.1 score is 4.2 Medium with vector AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N. The AC:H rating accurately reflects that exploitation is contingent on a specific non-default configuration in sshd_config - more than nine arguments must be supplied to internal-sftp with a security-critical flag at position 10 or later. The PR:N rating is debatable: SFTP inherently requires user authentication, which suggests PR:L is more appropriate; the official PR:N may reflect that the attacker holds no elevated privilege on the server beyond a standard user account. The UI:R designation in the official vector is not clearly justified by the available description or references and may represent scoring uncertainty. No EPSS data was provided. The vulnerability is not listed in the CISA KEV catalog and no proof-of-concept exploit code has been identified, making real-world exploitation probability low in the absence of targeted actor interest. Practical risk is meaningful only for organizations that specifically use 10-plus argument internal-sftp configurations for SFTP policy enforcement; the overwhelming majority of OpenSSH deployments using zero to nine arguments are unaffected.

Exploit ScenarioDerived

An attacker holding valid SFTP credentials on a server where sshd_config specifies the read-only flag (-R) or a directory restriction (-d) as the tenth or later argument to internal-sftp connects via any standard SFTP client. Because internal-sftp silently ignores that argument, the intended restriction is never applied, and the attacker gains write access or directory traversal capability the administrator believed was blocked. No proof-of-concept exploit code is publicly known at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 08, 2026

OpenSSH's internal-sftp subsystem silently discards all command-line arguments beyond position 9, allowing authenticated SFTP users to bypass security restrictions that administrators intended to enforce via those later-positioned arguments. All OpenSSH releases before 10.4 are affected when sshd_config supplies more than nine arguments to the internal-sftp subsystem, which is a non-default but legitimate administrative pattern used for directory restriction, read-only enforcement, and umask control. No public exploit has been identified and this vulnerability is not listed in the CISA KEV catalog; however, sites relying on complex internal-sftp argument chains for access policy enforcement face a direct, silent policy bypass.

RemediationAI

Upgrade to OpenSSH 10.4p1 or later, which corrects the argument-parsing limit in internal-sftp; the official release notes confirming this fix are available at https://www.openssh.org/releasenotes.html#10.4p1. Until a patch can be applied, administrators should audit every sshd_config Subsystem sftp directive and reorder arguments so that all security-critical flags fall within the first nine positions, verifying the effective configuration with sshd -T. If argument reordering is not feasible due to configuration management constraints, consider migrating the SFTP subsystem from internal-sftp to an external binary such as /usr/lib/openssh/sftp-server, which does not share this argument-count limitation; note that this introduces a separate process and potentially a larger attack surface. No compensating controls that fully replicate the missing argument enforcement without either patching or argument reordering have been identified from available references.

Affected VersionsENISA

OpenSSH 0 <10.4

Affected Packages

euvd openssh fix: 10.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

internal-sftp is the built-in SFTP subsystem embedded in OpenSSH's sshd daemon, typically invoked via the sshd_config Subsystem directive (e.g., Subsystem sftp internal-sftp -l INFO -d /upload -R -u 0022). Its argument parser processes only the first nine positional arguments; any argument at position 10 or beyond is silently ignored without error or warning. Security-sensitive flags that could appear in later positions include -R (enforce read-only mode), -d (force a start directory), -u (set umask), -P (restrict permission bits), and -l (set audit log verbosity). This is classified as CWE-1284 (Improper Validation of Specified Quantity in Input), reflecting the failure to validate and consume all elements of the provided argument list. The affected CPE string cpe:2.3:a:openbsd:openssh:*:*:*:*:*:*:*:* covers the entire OpenSSH product line across all platforms until the 10.4 release boundary.

Know when Openssh gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY MEDIUM
NVD 5.4 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
vuln.today AI 4.2 MEDIUM

SFTP always requires authentication so PR:L is accurate; specific >9-argument config is required (AC:H); no user interaction beyond normal SFTP connection.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE 4.2 MEDIUM
AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
Red Hat 5.4 MEDIUM

Primary rating from Vendor (mitre).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
Jul 09, 2026 - 17:22 NVD
4.2 (MEDIUM) 5.4 (MEDIUM)
Patch available
Jul 08, 2026 - 02:01 EUVD

DescriptionNVD

internal-sftp in sshd in OpenSSH before 10.4 recognizes only the first 9 command-line arguments, which can be important if a later command-line argument would have helped to ensure the intended security properties of an SFTP connection.

Threat Intelligence Overview

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Ubiquitous
de facto SSH implementation across Linux, BSD, and macOS
Social Media
1
Sightings
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2023-38408 CRITICAL POC
9.8 Jul 20

The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remot

CVE-2023-25136 MEDIUM POC
6.5 Feb 03

OpenSSH server (sshd) 9.1 introduced a double-free vulnerability during options.kex_algorithms handling. Rated medium se

CVE-2016-6210 MEDIUM POC
5.9 Feb 13

sshd in OpenSSH before 7.3, when SHA256 or SHA512 are used for user password hashing, uses BLOWFISH hashing on a static

CVE-2015-5600 HIGH POC
8.1 Aug 03

The kbdint_next_device function in auth2-chall.c in sshd in OpenSSH through 6.9 does not properly restrict the processin

CVE-2016-6515 HIGH POC
7.5 Aug 07

The auth_password function in auth-passwd.c in sshd in OpenSSH before 7.3 does not limit password lengths for password a

CVE-2026-123158 HIGH POC
8.1 Nov 05

Password authentication bypass in OpenSSH sshd before 10.6p2 built against musl libc without PAM lets a remote, unauthen

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

CVE-2019-6111 MEDIUM POC
5.9 Jan 31

An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no

CVE-2025-26465 MEDIUM
6.8 Feb 18

A vulnerability was found in OpenSSH when the VerifyHostKeyDNS option is enabled. Rated medium severity (CVSS 6.8), this

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2016-0777 MEDIUM
6.5 Jan 14

The resend_bytes function in roaming_common.c in the client in OpenSSH 5.x, 6.x, and 7.x before 7.1p2 allows remote serv

CVE-2016-3115 MEDIUM POC
6.4 Mar 22

Multiple CRLF injection vulnerabilities in session.c in sshd in OpenSSH before 7.2p2 allow remote authenticated users to

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SLES15-SP5-CHOST-BYOS-SAP-CCloud Affected
SLES15-SP6-CHOST-BYOS Affected
SLES15-SP6-CHOST-BYOS-Aliyun Affected
SLES15-SP6-CHOST-BYOS-Azure Affected
SLES15-SP6-CHOST-BYOS-EC2 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy