CVE-2026-4631: Cockpit's remote login feature passes user-supplied hostnames and usernames from the web interface to the SSH
CVE-2026-4631 is a critical-severity flaw (CVSS 9.8) affecting affected software. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- Critical severity
- EPSS top 3%: very likely to be exploited
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Risk facts
| CVSS score | 9.8 (Critical) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 15.5% (top 3%) |
| CISA exploited list | No |
| Weakness | CWE-78 |
| Published | 2026-04-07 |
| Last modified | 2026-10-26 |
Last updated 2026-10-26 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Timeline
- Published CVE record published
- Updated Record last modified
Exact fixes by distribution
Public exploits and detection
Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.
- GitHub PoC: cyberheartmi9/CVE-2026-4631-cockpit-RCE (15 stars)
- GitHub PoC: ExDev994/CVE-2026-4631-cockpit-RCE (0 stars)
- Exploit-DB: Cockpit 359 - RCE
- Nuclei scan template: Cockpit Web Console < 360 - Remote Code Execution
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-4631?
No fixed release is listed yet. Watch the vendor advisory and apply any mitigation shown on this page.
Is CVE-2026-4631 being exploited?
CVE-2026-4631 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-4631 affect?
CVE-2026-4631 affects affected software. Severity is critical (CVSS 9.8). 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 requ
How urgent is CVE-2026-4631?
Priority 68/100. Critical severity; EPSS top 3%: very likely to be exploited; Public exploit reference; Remotely exploitable, no login, no user action