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

- Severity: Critical 9.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 21.5%, higher than 97% of CVEs (2026-12-01)
- Published: 2026-04-07T16:30:28.069Z
- Modified: 2026-11-25T16:17:52.607Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- cockpit: from 327 before 360 (not affected: from 0:344-3.el10_1 before *; from 0:356.1-1.el10_2 before *; from 0:334.1-3.el10_0 before *; from 0:356.1-1.el9_8 before *; from 0:344-2.el9_7 before *; from 0:334.2-2.el9_6 before *)

## Every score

- redhat: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <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)
- <https://access.redhat.com/security/cve/CVE-2026-4631> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2450246> (issue-tracking)
- <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>

## Sources

- CVE List: [CVE-2026-4631](https://www.cve.org/CVERecord?id=CVE-2026-4631), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-4631](https://nvd.nist.gov/vuln/detail/CVE-2026-4631), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-4631 · Whole record: https://cve.day/CVE-2026-4631.json · Rebuilt by cve.day 2026-11-25T23:18:05.440Z
