CVE-2026-4631Cockpit: cockpit: unauthenticated remote code execution due to ssh command-line argument injection
- 9.8CriticalCVSS base score
- 15.5%Exploitation in 30 daysEPSS · top 3.1% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 2Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Nuclei template and an Exploit-DB entry for it.
Show the exploits2
Nuclei templates1 template
- Cockpit Web Console < 360 - Remote Code Execution (Nuclei template) (opens in a new tab)
http/cves/2026/CVE-2026-4631.yamlSeverity critical
Exploit-DB1 entry
- Cockpit 359 - RCE (Exploit-DB entry) (opens in a new tab)
EDB-ID 52572webapps, multiplepublished 21 May 2026Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By redhat
- 15 days later
· 15 days later
Published
- 7 months later
· 7 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| redhat-SADPADP (enrichment) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Awaiting Analysis | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 15.5% · top 3.1% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
Red Hat · Red Hat Enterprise Linux 10
- unaffected 0:344-3.el10_1 – < *
Red Hat · Red Hat Enterprise Linux 10
- unaffected 0:356.1-1.el10_2 – < *
Red Hat · Red Hat Enterprise Linux 10.0 Extended Update Support
- unaffected 0:334.1-3.el10_0 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:356.1-1.el9_8 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:344-2.el9_7 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:356.1-1.el9_8 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:344-2.el9_7 – < *
Red Hat · Red Hat Enterprise Linux 9.6 Extended Update Support
- unaffected 0:334.2-2.el9_6 – < *
Red Hat · Red Hat Enterprise Linux 7
All versions: unaffected
Red Hat · Red Hat Enterprise Linux 8
All versions: unaffected
References
References11
- RHBA-2026:21387 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHBA-2026:21388 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:7381 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:7382 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:7383 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2026:7384 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-4631 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2450246 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://github.com/cockpit-project/cockpit/security/advisories/GHSA-m4gv-x78h-3427 (opens in a new tab)
- http://www.openwall.com/lists/oss-security/2026/04/10/5 (opens in a new tab)
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4631.json (opens in a new tab)x_sadp-csaf-vex
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-19814 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-4631)Record last updated .