CVE-2026-4631
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | 0:344-3.el10_1 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support | 0:334.1-3.el10_0 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 9 | 0:344-2.el9_7 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 9 | 0:344-2.el9_7 < * | unaffected |
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support | 0:334.2-2.el9_6 < * | unaffected |
Weaknesses
- CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: total
CVE Program Container
Additional References
cockpit: Cockpit: Unauthenticated remote code execution due to SSH command-line argument injection
Additional References
- https://access.redhat.com/security/cve/CVE-2026-4631
- https://bugzilla.redhat.com/show_bug.cgi?id=2450246
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4631.json
- https://access.redhat.com/errata/RHSA-2026:7381
- https://access.redhat.com/errata/RHSA-2026:7383
- https://access.redhat.com/errata/RHSA-2026:7382
- https://access.redhat.com/errata/RHSA-2026:7384
References
- https://access.redhat.com/errata/RHSA-2026:7381
- https://access.redhat.com/errata/RHSA-2026:7382
- https://access.redhat.com/errata/RHSA-2026:7383
- https://access.redhat.com/errata/RHSA-2026:7384
- https://access.redhat.com/security/cve/CVE-2026-4631
- https://bugzilla.redhat.com/show_bug.cgi?id=2450246
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.