CVE-2026-4631
Cockpit: cockpit: unauthenticated remote code execution due to ssh command-line argument injection
Check your servers for CVE-2026-4631
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-4631 affects cockpit, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 13.6%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 97.1% of all scored CVEs. Scores of 30 Nov 2026.
The assessment of CISA (SSVC, 8 Apr 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
cockpit
package
cockpit |
affected from 327, before 360
Other versions: unaffected
|
|
Red Hat Enterprise Linux 10
package
cockpit |
unaffected 0:344-3.el10_1 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 10
package
cockpit |
unaffected 0:356.1-1.el10_2 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 10.0 Extended Update Support
package
cockpit |
unaffected 0:334.1-3.el10_0 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
cockpit |
unaffected 0:356.1-1.el9_8 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
cockpit |
unaffected 0:344-2.el9_7 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
cockpit |
unaffected 0:356.1-1.el9_8 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9
package
cockpit |
unaffected 0:344-2.el9_7 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 9.6 Extended Update Support
package
cockpit |
unaffected 0:334.2-2.el9_6 and later
Other versions: affected
|
|
Red Hat Enterprise Linux 7
package
cockpit |
unaffected the record does not list versions
|
|
Red Hat Enterprise Linux 8
package
cockpit |
unaffected the record does not list versions
|
Is my server affected?
Find the installed version of cockpit and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i cockpit
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-4631 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-4631RHEL, Rocky, Alma, Fedora
rpm -q cockpit
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-4631Alpine
apk list --installed | grep -i cockpitWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-4631
trivy image --scanners vuln IMAGE | grep CVE-2026-4631
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHBA-2026:21387 access.redhat.com · vendor advisory
- RHBA-2026:21388 access.redhat.com · vendor advisory
- RHSA-2026:7381 access.redhat.com · vendor advisory
- RHSA-2026:7382 access.redhat.com · vendor advisory
- RHSA-2026:7383 access.redhat.com · vendor advisory
- RHSA-2026:7384 access.redhat.com · vendor advisory
- https://access.redhat.com/security/cve/CVE-2026-4631 access.redhat.com · vdb entry
- RHBZ#2450246 bugzilla.redhat.com · issue tracking
Other references
- https://github.com/cockpit-project/cockpit/security/advisories/GHSA-m4gv-x78h-3427 github.com
- http://www.openwall.com/lists/oss-security/2026/04/10/5 openwall.com
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4631.json security.access.redhat.com
Source: the record CVE-2026-4631 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse