Home

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.

PUBLISHED Reserved 2026-03-23 | Published 2026-04-07 | Updated 2026-05-14 | Assigner redhat




CRITICAL: 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Problem types

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Product status

Default status
affected

0:344-3.el10_1 (rpm) before *
unaffected

Default status
affected

0:334.1-3.el10_0 (rpm) before *
unaffected

Default status
affected

0:344-2.el9_7 (rpm) before *
unaffected

Default status
affected

0:344-2.el9_7 (rpm) before *
unaffected

Default status
affected

0:334.2-2.el9_6 (rpm) before *
unaffected

Default status
unaffected

Default status
unaffected

Timeline

2026-03-23:Reported to Red Hat.
2026-04-07:Made public.

Credits

Red Hat would like to thank Florian Kohnhäuser for reporting this issue.

References

www.openwall.com/lists/oss-security/2026/04/10/5

access.redhat.com/errata/RHSA-2026:7381 (RHSA-2026:7381) vendor-advisory

access.redhat.com/errata/RHSA-2026:7382 (RHSA-2026:7382) vendor-advisory

access.redhat.com/errata/RHSA-2026:7383 (RHSA-2026:7383) vendor-advisory

access.redhat.com/errata/RHSA-2026:7384 (RHSA-2026:7384) vendor-advisory

access.redhat.com/security/cve/CVE-2026-4631 vdb-entry

bugzilla.redhat.com/show_bug.cgi?id=2450246 (RHBZ#2450246) issue-tracking

cve.org (CVE-2026-4631)

nvd.nist.gov (CVE-2026-4631)

Download JSON