MODERATE 6.5

CVE-2026-93996

Apache MINA SSHD: Memory exhaustion DoS via unbounded SCP command line read

Preliminary: affected artifacts were declared by the CNA in the CVE record and have not been reviewed yet. They will be replaced by the reviewed advisory when it is published.

Description

Uncontrolled resource consumption in component ssd-scp in Apache MINA SSHD versions up to 2.19.0 or 3.0.0-M1 to 3.0.0-M5. Apache MINA SSHD is a Java library for client-side and server-side SSH.

Component sshd-scp of Apache MINA SSHD provides a Java implementation of SCP. The SCP command protocol is line-oriented with LF-terminated lines. The protocol handler in sshd-scp did not impose any limit on the length of such protocol lines. A malicious peer just sending a junk command containing a never-ending sequence of characters but never a LF would cause the receiver to allocate memory to store this whole junk command, exhausting memory and crashing the application with an OutOfMemoryError.

Users are recommended to upgrade to version 2.20.0 or 3.0.0-M6, which fix this issue by enforcing an upper limit on the length of SCP protocol lines.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.sshd » sshd-scppreliminary
< 2.20.0>= 3.0.0-M1, < 3.0.0-M6
2.20.0, 3.0.0-M6

Blast radius

1affected artifacts
39affected versions
187dependent artifacts (est.)
4,573dependent versions

56% of the dependent artifacts (105) still pull an affected version in their latest release.

DepthDependent versions
Direct
2,423
2 hops
2,005
3 hops
127
4 hops
12
5 hops
6

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.