CVE-2026-4631Cockpit: cockpit: unauthenticated remote code execution due to ssh command-line argument…
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.
What to do
Likely to be exploited: EPSS gives a 14% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | cockpit | Fix pending | UBUNTU-CVE-2026-4631 | |
| Ubuntu 26.04 | cockpit | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | cockpit | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-4631 | |
| Ubuntu 24.04 | cockpit | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | cockpit | Not affected vulnerable_code_not_present | ||
| Debian 14 | cockpit | Fixed | 360-1 | DEBIAN-CVE-2026-4631 |
| Debian 13 | cockpit | Fixed | 337-1+deb13u1 | DEBIAN-CVE-2026-4631 |
| Red Hat Enterprise Linux 10 | cockpit | Fixed | 0:344-3.el10_1 | RHBA-2026:21388 |
| Red Hat Enterprise Linux 10 | cockpit-bridge | Fixed | 0:356.1-1.el10_2 | RHSA-2026:7383 |
| Red Hat Enterprise Linux 10 | cockpit-doc | Fixed | 0:344-3.el10_1 | RHBA-2026:21388 |
| Red Hat Enterprise Linux 10 | cockpit-packagekit | Fixed | 0:344-3.el10_1 | RHBA-2026:21388 |
| Red Hat Enterprise Linux 10 | cockpit-storaged | Fixed | 0:344-3.el10_1 | RHBA-2026:21388 |
| Red Hat Enterprise Linux 10 | cockpit-system | Fixed | 0:356.1-1.el10_2 | RHSA-2026:7383 |
| Red Hat Enterprise Linux 10 | cockpit-ws | Fixed | 0:356.1-1.el10_2 | RHSA-2026:7383 |
| Red Hat Enterprise Linux 10 | cockpit-ws-selinux | Fixed | 0:344-3.el10_1 | RHBA-2026:21388 |
| Red Hat Enterprise Linux 9 | cockpit | Fixed | 0:356.1-1.el9_8 | RHSA-2026:7384 |
| Red Hat Enterprise Linux 9 | cockpit-bridge | Fixed | 0:356.1-1.el9_8 | RHSA-2026:7384 |
| Red Hat Enterprise Linux 9 | cockpit-doc | Fixed | 0:356.1-1.el9_8 | RHSA-2026:7384 |
| Red Hat Enterprise Linux 9 | cockpit-packagekit | Fixed | 0:344-2.el9_7 | RHBA-2026:21387 |
| Red Hat Enterprise Linux 9 | cockpit-storaged | Fixed | 0:344-2.el9_7 | RHBA-2026:21387 |
| Red Hat Enterprise Linux 9 | cockpit-system | Fixed | 0:356.1-1.el9_8 | RHSA-2026:7384 |
| Red Hat Enterprise Linux 9 | cockpit-ws | Fixed | 0:344-2.el9_7 | RHBA-2026:21387 |
| Red Hat Enterprise Linux 9 | cockpit-ws-selinux | Fixed | 0:344-2.el9_7 | RHBA-2026:21387 |
| Red Hat Enterprise Linux 8 | cockpit | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-bridge | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-doc | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-system | Not affected | ||
| Red Hat Enterprise Linux 8 | cockpit-ws | Not affected | ||
| Red Hat Enterprise Linux 7 | cockpit | Not affected | ||
| Red Hat Enterprise Linux 7 | cockpit-bridge | Not affected | ||
| Red Hat Enterprise Linux 7 | cockpit-doc | Not affected | ||
| Red Hat Enterprise Linux 7 | cockpit-machines-ovirt | Not affected | ||
| Red Hat Enterprise Linux 7 | cockpit-system | Not affected | ||
| Red Hat Enterprise Linux 7 | cockpit-ws | Not affected | ||
| AlmaLinux 10 | cockpit-bridge | Fixed | 344-3.el10_1 | ALSA-2026:7383 |
| AlmaLinux 10 | cockpit-doc | Fixed | 344-3.el10_1 | ALSA-2026:7383 |
| AlmaLinux 10 | cockpit-packagekit | Fixed | 344-3.el10_1 | ALSA-2026:7383 |
| AlmaLinux 10 | cockpit-storaged | Fixed | 344-3.el10_1 | ALSA-2026:7383 |
| AlmaLinux 10 | cockpit-system | Fixed | 344-3.el10_1 | ALSA-2026:7383 |
| AlmaLinux 9 | cockpit | Fixed | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux 9 | cockpit-bridge | Fixed | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux 9 | cockpit-doc | Fixed | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux 9 | cockpit-packagekit | Fixed | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux 9 | cockpit-storaged | Fixed | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux 9 | cockpit-system | Fixed | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux 9 | cockpit-ws | Fixed | 344-2.el9_7 | ALSA-2026:7384 |
| AlmaLinux 9 | cockpit-ws-selinux | Fixed | 344-2.el9_7 | ALSA-2026:7384 |
| Rocky Linux 10 | cockpit | Fixed | 0:344-3.el10_1.rocky.0.1 | RLSA-2026:7383 |
| Rocky Linux 9 | cockpit | Fixed | 0:344-2.el9_7.rocky.0.1 | RLSA-2026:7384 |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- cockpit: affected: 327 to before 360; fixed in
360 - Red Hat Enterprise Linux 10
- Red Hat Enterprise Linux 10.0 Extended Update Support
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 9.6 Extended Update Support
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
Vendor advisories:
- https://access.redhat.com/errata/RHBA-2026:21387 (vendor-advisory)
- https://access.redhat.com/errata/RHBA-2026:21388 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:7381 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:7382 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:7383 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2026:7384 (vendor-advisory)
References
- https://access.redhat.com/errata/RHBA-2026:21387
- https://access.redhat.com/errata/RHBA-2026:21388
- https://access.redhat.com/errata/RHSA-2026:7381
- https://access.redhat.com/errata/RHSA-2026:7382
- https://access.redhat.com/errata/RHSA-2026:7383
- https://access.redhat.com/errata/RHSA-2026:7384
- https://access.redhat.com/security/cve/CVE-2026-4631
- https://bugzilla.redhat.com/show_bug.cgi?id=2450246
- https://github.com/cockpit-project/cockpit/security/advisories/GHSA-m4gv-x78h-3427
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.