{"answers":{"affected":"","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-4631 exists.","fix":"Apply the vendor's patch.","what":"CVE-2026-4631 is a critical command injection vulnerability in Red Hat Enterprise Linux 10, published on 7 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-4631 and fix it if it is affected.\n\nWhat it is: CVE-2026-4631 is a critical command injection vulnerability in Red Hat Enterprise Linux 10, published on 7 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-4631 exists.\n\nAffected product: Red Hat Enterprise Linux 10. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-4631/ (Markdown: https://insights.sbomify.com/CVE-2026-4631/index.md)","id":"CVE-2026-4631","markdown":"https://insights.sbomify.com/CVE-2026-4631/index.md","name":"CVE-2026-4631","record":{"aliases":["ALSA-2026:7383","ALSA-2026:7384","CLSA-2026-1777452220","DEBIAN-CVE-2026-4631","GHSA-rq49-h582-83m7","MGASA-2026-0099","RHSA-2026:7381","RHSA-2026:7382","RHSA-2026:7383","RHSA-2026:7384","RLSA-2026:7383","RLSA-2026:7384","SUSE-SU-2026:21106-1","SUSE-SU-2026:21184-1","UBUNTU-CVE-2026-4631","openSUSE-SU-2026:10531-1","openSUSE-SU-2026:20523-1"],"analysis":{"component_type":"web_application","fix_type":"patch","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Cockpit web console","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary code on Cockpit hosts by injecting SSH commands via the login endpoint.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":["AlmaLinux:10","AlmaLinux:9","Red Hat:enterprise_linux:10.1","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:enterprise_linux_eus:10.0","Red Hat:rhel_eus:9.6::appstream","Red Hat:rhel_eus:9.6::baseos","Rocky Linux:10","Rocky Linux:9","SUSE:Linux Enterprise Server 16.0","SUSE:Linux Enterprise Server for SAP applications 16.0","SUSE:Linux Micro 6.2","openSUSE:Leap 16.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":1,"first_seen":"2026-04-18","github_poc":2,"max_poc_stars":15,"metasploit":0,"nuclei":1,"refs":[{"date":"2026-04-18T20:30:02Z","kind":"github_poc","ref":"https://github.com/cyberheartmi9/CVE-2026-4631-cockpit-RCE","stars":15,"title":"Cockpit: Unauthenticated Remote Code Execution via SSH Command-Line Argument Injection"},{"date":"2026-05-21","kind":"exploitdb","ref":"52572","stars":null,"title":"Cockpit 359 - RCE"},{"date":"2026-07-12T08:42:02Z","kind":"github_poc","ref":"https://github.com/ExDev994/CVE-2026-4631-cockpit-RCE","stars":0,"title":"Unauthenticated Remote Code Execution via SSH Command-Line Argument Injection Cockpit versions 327 – 359 | CVSS 9.8 Critical | CWE-78"},{"date":null,"kind":"nuclei","ref":"http/cves/2026/CVE-2026-4631.yaml","stars":null,"title":"Cockpit Web Console \u003c 360 - Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Cockpit: cockpit: unauthenticated remote code execution due to ssh command-line argument injection","id":"CVE-2026-4631","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":58,"n_references":9,"next":{"headline":"itsourcecode Online Enrollment System Parameter index.php sql injection","id":"CVE-2026-4632"},"packages":[{"ecosystem":"AlmaLinux:10","fixed":["344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-bridge","purl":"pkg:rpm/almalinux/cockpit-bridge","source":"ALSA-2026:7383"},{"ecosystem":"AlmaLinux:10","fixed":["344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-doc","purl":"pkg:rpm/almalinux/cockpit-doc","source":"ALSA-2026:7383"},{"ecosystem":"AlmaLinux:10","fixed":["344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-packagekit","purl":"pkg:rpm/almalinux/cockpit-packagekit","source":"ALSA-2026:7383"},{"ecosystem":"AlmaLinux:10","fixed":["344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-storaged","purl":"pkg:rpm/almalinux/cockpit-storaged","source":"ALSA-2026:7383"},{"ecosystem":"AlmaLinux:10","fixed":["344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-system","purl":"pkg:rpm/almalinux/cockpit-system","source":"ALSA-2026:7383"},{"ecosystem":"AlmaLinux:9","fixed":["344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit","purl":"pkg:rpm/almalinux/cockpit","source":"ALSA-2026:7384"},{"ecosystem":"AlmaLinux:9","fixed":["344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-bridge","purl":"pkg:rpm/almalinux/cockpit-bridge","source":"ALSA-2026:7384"},{"ecosystem":"AlmaLinux:9","fixed":["344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-doc","purl":"pkg:rpm/almalinux/cockpit-doc","source":"ALSA-2026:7384"},{"ecosystem":"AlmaLinux:9","fixed":["344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-packagekit","purl":"pkg:rpm/almalinux/cockpit-packagekit","source":"ALSA-2026:7384"},{"ecosystem":"AlmaLinux:9","fixed":["344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-storaged","purl":"pkg:rpm/almalinux/cockpit-storaged","source":"ALSA-2026:7384"},{"ecosystem":"AlmaLinux:9","fixed":["344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-system","purl":"pkg:rpm/almalinux/cockpit-system","source":"ALSA-2026:7384"},{"ecosystem":"AlmaLinux:9","fixed":["344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-ws","purl":"pkg:rpm/almalinux/cockpit-ws","source":"ALSA-2026:7384"},{"ecosystem":"AlmaLinux:9","fixed":["344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-ws-selinux","purl":"pkg:rpm/almalinux/cockpit-ws-selinux","source":"ALSA-2026:7384"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit","purl":"pkg:rpm/redhat/cockpit","source":"RHSA-2026:7383"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-bridge","purl":"pkg:rpm/redhat/cockpit-bridge","source":"RHSA-2026:7383"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-debuginfo","purl":"pkg:rpm/redhat/cockpit-debuginfo","source":"RHSA-2026:7383"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-debugsource","purl":"pkg:rpm/redhat/cockpit-debugsource","source":"RHSA-2026:7383"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-doc","purl":"pkg:rpm/redhat/cockpit-doc","source":"RHSA-2026:7383"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-packagekit","purl":"pkg:rpm/redhat/cockpit-packagekit","source":"RHSA-2026:7383"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-storaged","purl":"pkg:rpm/redhat/cockpit-storaged","source":"RHSA-2026:7383"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-system","purl":"pkg:rpm/redhat/cockpit-system","source":"RHSA-2026:7383"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-ws","purl":"pkg:rpm/redhat/cockpit-ws","source":"RHSA-2026:7383"},{"ecosystem":"Red Hat:enterprise_linux:10.1","fixed":["0:344-3.el10_1"],"introduced":["0"],"last_affected":[],"package":"cockpit-ws-selinux","purl":"pkg:rpm/redhat/cockpit-ws-selinux","source":"RHSA-2026:7383"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-packagekit","purl":"pkg:rpm/redhat/cockpit-packagekit","source":"RHSA-2026:7384"},{"ecosystem":"Red Hat:enterprise_linux:9::appstream","fixed":["0:344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-storaged","purl":"pkg:rpm/redhat/cockpit-storaged","source":"RHSA-2026:7384"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit","purl":"pkg:rpm/redhat/cockpit","source":"RHSA-2026:7384"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-bridge","purl":"pkg:rpm/redhat/cockpit-bridge","source":"RHSA-2026:7384"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-debuginfo","purl":"pkg:rpm/redhat/cockpit-debuginfo","source":"RHSA-2026:7384"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-debugsource","purl":"pkg:rpm/redhat/cockpit-debugsource","source":"RHSA-2026:7384"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-doc","purl":"pkg:rpm/redhat/cockpit-doc","source":"RHSA-2026:7384"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-system","purl":"pkg:rpm/redhat/cockpit-system","source":"RHSA-2026:7384"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-ws","purl":"pkg:rpm/redhat/cockpit-ws","source":"RHSA-2026:7384"},{"ecosystem":"Red Hat:enterprise_linux:9::baseos","fixed":["0:344-2.el9_7"],"introduced":["0"],"last_affected":[],"package":"cockpit-ws-selinux","purl":"pkg:rpm/redhat/cockpit-ws-selinux","source":"RHSA-2026:7384"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:334.1-3.el10_0"],"introduced":["0"],"last_affected":[],"package":"cockpit","purl":"pkg:rpm/redhat/cockpit","source":"RHSA-2026:7381"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:334.1-3.el10_0"],"introduced":["0"],"last_affected":[],"package":"cockpit-bridge","purl":"pkg:rpm/redhat/cockpit-bridge","source":"RHSA-2026:7381"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:334.1-3.el10_0"],"introduced":["0"],"last_affected":[],"package":"cockpit-debuginfo","purl":"pkg:rpm/redhat/cockpit-debuginfo","source":"RHSA-2026:7381"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:334.1-3.el10_0"],"introduced":["0"],"last_affected":[],"package":"cockpit-debugsource","purl":"pkg:rpm/redhat/cockpit-debugsource","source":"RHSA-2026:7381"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:334.1-3.el10_0"],"introduced":["0"],"last_affected":[],"package":"cockpit-doc","purl":"pkg:rpm/redhat/cockpit-doc","source":"RHSA-2026:7381"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:334.1-3.el10_0"],"introduced":["0"],"last_affected":[],"package":"cockpit-packagekit","purl":"pkg:rpm/redhat/cockpit-packagekit","source":"RHSA-2026:7381"},{"ecosystem":"Red Hat:enterprise_linux_eus:10.0","fixed":["0:334.1-3.el10_0"],"introduced":["0"],"last_affected":[],"package":"cockpit-storaged","purl":"pkg:rpm/redhat/cockpit-storaged","source":"RHSA-2026:7381"}],"prev":{"headline":"Keycloak: keycloak: unauthorized resource access and data modification via insecure direct object reference","id":"CVE-2026-4630"},"products":["Red Hat Enterprise Linux 10","Red Hat Enterprise Linux 10.0 Extended Update Support","Red Hat Enterprise Linux 7","Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 9","Red Hat Enterprise Linux 9.6 Extended Update Support"],"published":"2026-04-07","related":[],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-15","vendors":["Red Hat"]},"summary":"Unauthenticated attackers can execute arbitrary code on Cockpit hosts by injecting SSH commands via the login endpoint.","url":"https://insights.sbomify.com/CVE-2026-4631/"}