Vulnerability · Published Apr 7, 2026 · Assigned by redhat
CVE-2026-4631Cockpit: cockpit: unauthenticated remote code execution due to ssh command-line argument injection
Critical 9.8
In plain English
A critical-severity OS command injection in Red Hat Enterprise Linux 10 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 15.5% (higher than 97% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | cockpit | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux:10 | cockpit-bridge | 344-3.el10_1 | ALSA-2026:7383 |
| AlmaLinux:9 | cockpit-bridge | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux:10 | cockpit-doc | 344-3.el10_1 | ALSA-2026:7383 |
| AlmaLinux:9 | cockpit-doc | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux:10 | cockpit-packagekit | 344-3.el10_1 | ALSA-2026:7383 |
| AlmaLinux:9 | cockpit-packagekit | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux:10 | cockpit-storaged | 344-3.el10_1 | ALSA-2026:7383 |
| AlmaLinux:9 | cockpit-storaged | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux:10 | cockpit-system | 344-3.el10_1 | ALSA-2026:7383 |
| AlmaLinux:9 | cockpit-system | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux:9 | cockpit-ws | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux:9 | cockpit-ws-selinux | 344-2.el9_7 | ALSA-2026:7384 |
| Debian:13 | cockpit | 337-1+deb13u1 | DEBIAN-CVE-2026-4631 |
| Debian:14 | cockpit | 360-1 | DEBIAN-CVE-2026-4631 |
| Rocky Linux:10 | cockpit | 0:344-3.el10_1.rocky.0.1 | RLSA-2026:7383 |
| Rocky Linux:9 | cockpit | 0:344-2.el9_7.rocky.0.1 | RLSA-2026:7384 |
| Ubuntu:22.04:LTS | cockpit | no fix listed | UBUNTU-CVE-2026-4631 |
| Ubuntu:24.04:LTS | cockpit | no fix listed | UBUNTU-CVE-2026-4631 |
| Ubuntu:25.10 | cockpit | no fix listed | UBUNTU-CVE-2026-4631 |
| Ubuntu:26.04:LTS | cockpit | no fix listed | UBUNTU-CVE-2026-4631 |
| Ubuntu:26.10 | cockpit | no fix listed | UBUNTU-CVE-2026-4631 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 10 | see references |
| Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9 | see references |
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support | see references |
| Red Hat | Red Hat Enterprise Linux 7 | see references |
| Red Hat | Red Hat Enterprise Linux 8 | see references |
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- RHBA-2026:21387 vendor-advisory, x_refsource_REDHAT
- RHBA-2026:21388 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:7381 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:7382 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:7383 vendor-advisory, x_refsource_REDHAT
- RHSA-2026:7384 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-4631 vdb-entry, x_refsource_REDHAT
- RHBZ#2450246 issue-tracking, x_refsource_REDHAT
- https://github.com/cockpit-project/cockpit/security/advisories/GHSA-m4gv-x78h-3427
- http://www.openwall.com/lists/oss-security/2026/04/10/5
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4631.json x_sadp-csaf-vex