CVE-2026-4631
CriticalCVSS 9.8Exploitation Probability (EPSS)
Very high risk96th percentile - higher than 96% of all known CVEs
Summary
Cockpit's remote login feature passes user-supplied hostnames and usernames from the web interface to the SSH client without validation. 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.
Risk Assessment
The risk for the organization includes unauthorized code execution on the Cockpit server, potentially leading to system compromise, data theft, or further attacks on the IT infrastructure.
Recommendation
Immediately update Cockpit to a version that includes input validation fixes for the remote login feature. Until the update is applied, restrict network access to the Cockpit service to trusted IP addresses only.
Other vulnerabilities in Cockpit
See all- CVE-2026-91149High
A vulnerability in Cockpit allows an unauthenticated remote attacker to initiate and sustain numerous simultaneous connections to the cockpit-tls service, forcing it to create an unbounded number of threads and consume system resources such as memory and file descriptors. The result is a denial of service (DoS).
- CVE-2026-91142Low
A vulnerability in Cockpit on ILP32 builds involves an integer overflow in the `do_lastlog()` function, specifically in offset calculation for lastlog entries. A low-privileged user with a specially provisioned large UID can cause the offset to wrap, allowing unauthorized reads and writes to other users' lastlog records, potentially disclosing or altering login information.
- CVE-2026-4802High
A flaw was found in Cockpit that allows a remote attacker to execute arbitrary commands on the host by exploiting unsanitized user-controlled parameters in the system logs UI. An attacker can inject shell metacharacters and command substitutions, leading to arbitrary shell command execution on the affected system.
- CVE-2026-38993Medium
Directory traversal vulnerability in the Buckets component of Cockpit 2.13.5 and earlier. Allows authenticated attackers to write files to arbitrary locations within the uploads directory or overwrite assets with malicious versions.
Original NVD description (English source)
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.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

