OS Command Injection Affecting cockpit-ws package, versions <0:344-3.el10_1


Severity

Recommended
0.0
critical
0
10

Based on CentOS security rating.

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
1.82% (83rd 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 Learn

Learn about OS Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CENTOS10-COCKPITWS-15968517
  • published10 Apr 2026
  • disclosed7 Apr 2026

Introduced: 7 Apr 2026

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

How to fix?

Upgrade Centos:10 cockpit-ws to version 0:344-3.el10_1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cockpit-ws package and not the cockpit-ws package as distributed by Centos. See How to fix? for Centos:10 relevant fixed versions and status.

Cockpit's remote login feature passes user-supplied hostnames and usernames from the web interface to the SSH client without validation or sanitization. An attacker with network access to the Cockpit web service can craft a single HTTP request to the login endpoint that injects malicious SSH options or shell commands, achieving code execution on the Cockpit host without valid credentials. The injection occurs during the authentication flow before any credential verification takes place, meaning no login is required to exploit the vulnerability.

CVSS Base Scores

version 3.1