CVE-2026-4631
CVE-2026-4631
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 class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.155, 96.9th percentile (last changed ); up from 0.092 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.092 · newest: 0.155 · change: +0.063
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- cyberheartmi9/CVE-2026-4631-cockpit-RCE (15 stars, last pushed 2026-04-18): Cockpit: Unauthenticated Remote Code Execution via SSH Command-Line Argument Injection
- ExDev994/CVE-2026-4631-cockpit-RCE (last pushed 2026-07-12): Unauthenticated Remote Code Execution via SSH Command-Line Argument Injection Cockpit versions 327 – 359 | CVSS 9.8 Critical | CWE-78
References
- access.redhat.com/errata/RHSA-2026:7381 (vendor-advisory)
- access.redhat.com/errata/RHSA-2026:7382 (vendor-advisory)
- access.redhat.com/errata/RHSA-2026:7383 (vendor-advisory)
- access.redhat.com/errata/RHSA-2026:7384 (vendor-advisory)
- access.redhat.com/security/cve/CVE-2026-4631 (vdb-entry)
- bugzilla.redhat.com/show_bug.cgi (issue-tracking)
- www.openwall.com/lists/oss-security/2026/04/10/5
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4631.json
- github.com/cockpit-project/cockpit/security/advisories/GHSA-m4gv-x78h-3427
- access.redhat.com/errata/RHBA-2026:21387 (vendor-advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.