CVE-2026-4631
criticalCockpit's remote login feature passes user-supplied hostnames and usernames from the web interface to the SSH client without validation or sanitization.
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Affected products
Not reported by the source (unknown — not "none").
Weakness classification (CWE)
Source: NVD / CISA. “NVD-CWE-Other” and “NVD-CWE-noinfo” mean NVD could not assign a specific weakness.
Mitigation & advisories
No vendor advisory or patch reference tagged by NVD. Check the references below.
References
- https://access.redhat.com/errata/RHBA-2026:21387 secalert@redhat.com
- https://access.redhat.com/errata/RHBA-2026:21388 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:7381 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:7382 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:7383 secalert@redhat.com
- https://access.redhat.com/errata/RHSA-2026:7384 secalert@redhat.com
- https://access.redhat.com/security/cve/CVE-2026-4631 secalert@redhat.com
- https://bugzilla.redhat.com/show_bug.cgi?id=2450246 secalert@redhat.com
- https://github.com/cockpit-project/cockpit/security/advisories/GHSA-m4gv-x78h-3427 secalert@redhat.com
- http://www.openwall.com/lists/oss-security/2026/04/10/5 af854a3a-2127-422b-91ae-364da2661108
- https://access.redhat.com/errata/RHSA-2026:7381 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- https://access.redhat.com/errata/RHSA-2026:7382 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- https://access.redhat.com/errata/RHSA-2026:7383 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- https://access.redhat.com/errata/RHSA-2026:7384 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- https://access.redhat.com/security/cve/CVE-2026-4631 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- https://bugzilla.redhat.com/show_bug.cgi?id=2450246 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4631.json 0b0ca135-0b70-47e7-9f44-1890c2a1c46c

