Arbitrary Argument Injection Affecting org.apache.sshd:sshd-core package, versions [2.0.0,2.19.0)[3.0.0-M1,3.0.0-M5)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.29% (21st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGAPACHESSHD-19352706
  • published27 Aug 2026
  • disclosed20 Jul 2026
  • creditMitchell Benjamin

Introduced: 20 Jul 2026

CVE-2026-56624  (opens in a new tab)
CWE-88  (opens in a new tab)

How to fix?

Upgrade org.apache.sshd:sshd-core to version 2.19.0, 3.0.0-M5 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Argument Injection via the UserAuthPublicKey authentication path in sshd-core/src/main/java/org/apache/sshd/server/auth/pubkey/UserAuthPublicKey.java. An attacker can authenticate with a malicious OpenSSH user certificate by supplying unsupported critical options such as force-command or verify-required. The server-side certificate check accepted certificates that carried those options without rejecting them, so a user could log in and still execute commands other than the intended forced command. This breaks command restriction enforcement on SSH servers that rely on MINA SSHD user-certificate authentication, letting an authenticated user run unauthorized commands.

CVSS Base Scores

version 4.0
version 3.1