CVE-2026-4631

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

VendorProductVersion RangeStatus
Red HatRed Hat Enterprise Linux 100:344-3.el10_1 < *unaffected
Red HatRed Hat Enterprise Linux 10.0 Extended Update Support0:334.1-3.el10_0 < *unaffected
Red HatRed Hat Enterprise Linux 90:344-2.el9_7 < *unaffected
Red HatRed Hat Enterprise Linux 90:344-2.el9_7 < *unaffected
Red HatRed Hat Enterprise Linux 9.6 Extended Update Support0: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

References