Skip to content

CVE-2026-4631 Cockpit: cockpit: unauthenticated remote code execution due to ssh command-line argument injection

CriticalCVSS 9.8 EPSS 15.5% Public exploit Scanner template
Published
Updated
Exploit status
Public exploit available
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

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.

Upgrade path

12 packages: 10 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/cockpit(Ubuntu 26.10) All versions No fix listed No fix yet
debian/cockpit(Debian 13) < 337-1+deb13u1; = 337-1 337-1+deb13u1 Fixed
debian/cockpit(Debian 14) < 360-1; = 337-1; = 338-1; = 339-1 +25 more 360-1 Fixed
redhat enterprise linux < 0:344-2.el9_7; < 0:344-3.el10_1; < 0:356.1-1.el9_8; < 0:356.1-1.el10_2 +2 more 0:344-2.el9_7, 0:344-3.el10_1, 0:356.1-1.el9_8, 0:356.1-1.el10_2 Fixed
redhat enterprise linux eus < 0:334.1-3.el10_0 0:334.1-3.el10_0 Fixed
redhat rhel eus < 0:334.2-2.el9_6 0:334.2-2.el9_6 Fixed
redhat/cockpit(Red Hat enterprise_linux 10.1) < 344-3.el10_1 344-3.el10_1 Fixed
redhat/cockpit(Red Hat enterprise_linux 10.2) < 356.1-1.el10_2 356.1-1.el10_2 Fixed
redhat/cockpit(Red Hat enterprise_linux 9) < 344-2.el9_7; < 356.1-1.el9_8 344-2.el9_7, 356.1-1.el9_8 Fixed
redhat/cockpit(Red Hat enterprise_linux_eus 10.0) < 334.1-3.el10_0 334.1-3.el10_0 Fixed
redhat/cockpit(Red Hat rhel_eus 9.6) < 334.2-2.el9_6 334.2-2.el9_6 Fixed
redhat rhel els = 7 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
redhat enterprise linux < 0:344-3.el10_1 0:344-3.el10_1
redhat enterprise linux < 0:356.1-1.el10_2 0:356.1-1.el10_2
redhat enterprise linux eus < 0:334.1-3.el10_0 0:334.1-3.el10_0
redhat enterprise linux < 0:356.1-1.el9_8 0:356.1-1.el9_8
redhat enterprise linux < 0:344-2.el9_7 0:344-2.el9_7
redhat rhel eus < 0:334.2-2.el9_6 0:334.2-2.el9_6
redhat rhel els = 7 No fix listed
redhat enterprise linux = 8 No fix listed
redhat enterprise linux = 7 No fix listed
debian/cockpit(Debian:13) < 337-1+deb13u1 337-1+deb13u1
debian/cockpit(Debian:13) = 337-1 No fix listed
debian/cockpit(Debian:14) < 360-1 360-1
debian/cockpit(Debian:14) = 337-1 No fix listed
debian/cockpit(Debian:14) = 338-1 No fix listed
debian/cockpit(Debian:14) = 339-1 No fix listed
debian/cockpit(Debian:14) = 340-1 No fix listed
debian/cockpit(Debian:14) = 341.1-1 No fix listed
debian/cockpit(Debian:14) = 342-1 No fix listed
debian/cockpit(Debian:14) = 343-1 No fix listed
debian/cockpit(Debian:14) = 345-1 No fix listed
debian/cockpit(Debian:14) = 345-1~bpo13+1 No fix listed
debian/cockpit(Debian:14) = 346-1 No fix listed
debian/cockpit(Debian:14) = 346-1~bpo13+1 No fix listed
debian/cockpit(Debian:14) = 348-1 No fix listed
debian/cockpit(Debian:14) = 348-1~bpo13+1 No fix listed
Show 22 more
ProductAffected versionsFixed in
debian/cockpit(Debian:14) = 350-1 No fix listed
debian/cockpit(Debian:14) = 350-1~bpo13+1 No fix listed
debian/cockpit(Debian:14) = 352-1 No fix listed
debian/cockpit(Debian:14) = 352-1~bpo13+1 No fix listed
debian/cockpit(Debian:14) = 353.1-1 No fix listed
debian/cockpit(Debian:14) = 353.1-1~bpo13+1 No fix listed
debian/cockpit(Debian:14) = 354-1 No fix listed
debian/cockpit(Debian:14) = 354-1~bpo13+1 No fix listed
debian/cockpit(Debian:14) = 355-1 No fix listed
debian/cockpit(Debian:14) = 355-1~bpo13+1 No fix listed
debian/cockpit(Debian:14) = 356-1 No fix listed
debian/cockpit(Debian:14) = 356-1~bpo13+1 No fix listed
debian/cockpit(Debian:14) = 358-1 No fix listed
debian/cockpit(Debian:14) = 358-1~bpo13+1 No fix listed
debian/cockpit(Debian:14) = 360-1~bpo13+1 No fix listed
redhat/cockpit(Red Hat:enterprise_linux:10.1) < 344-3.el10_1 344-3.el10_1
redhat/cockpit(Red Hat:enterprise_linux:10.2) < 356.1-1.el10_2 356.1-1.el10_2
redhat/cockpit(Red Hat:enterprise_linux_eus:10.0) < 334.1-3.el10_0 334.1-3.el10_0
redhat/cockpit(Red Hat:enterprise_linux:9) < 356.1-1.el9_8 356.1-1.el9_8
redhat/cockpit(Red Hat:enterprise_linux:9) < 344-2.el9_7 344-2.el9_7
redhat/cockpit(Red Hat:rhel_eus:9.6) < 334.2-2.el9_6 334.2-2.el9_6
ubuntu/cockpit(Ubuntu:26.10) All versions No fix listed

References