Command Injection Affecting cockpit-project/cockpit package, versions [327,356.1)[357,360)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
15.48% (97th 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-UNMANAGED-COCKPITPROJECTCOCKPIT-16078393
  • published16 Apr 2026
  • disclosed7 Apr 2026
  • creditFlorian Kohnhäuser

Introduced: 7 Apr 2026

CVE-2026-4631  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade cockpit-project/cockpit to version 356.1, 360 or higher.

Overview

Affected versions of this package are vulnerable to Command Injection via improper validation of user-supplied hostnames and usernames in the authentication process. An attacker can execute arbitrary commands on the host system by injecting malicious SSH options or shell commands through crafted HTTP requests to the login endpoint, without requiring valid credentials. This is only exploitable if the system is running with OpenSSH versions older than 9.6 or if the SSH configuration uses the %r token within a Match exec directive.

CVSS Base Scores

version 4.0
version 3.1