CVE-2026-4631
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.
Fixes and workarounds
Fix
RHSA-2026:7381: Red Hat Enterprise Linux AppStream EUS (v. 10.0), Red Hat Enterprise Linux BaseOS EUS (v. 10.0) RHSA-2026:7383: Red Hat Enterprise Linux AppStream (v. 10), Red Hat Enterprise Linux BaseOS (v. 10) RHSA-2026:7382: Red Hat Enterprise Linux AppStream EUS (v.9.6), Red Hat Enterprise Linux BaseOS EUS (v.9.6) RHSA-2026:7384: Red Hat Enterprise Linux AppStream (v. 9), Red Hat Enterprise Linux BaseOS (v. 9)
Source: ADP: redhat-SADPAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| Red Hat Enterprise Linux 10 Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:344-3.el10_1; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 10 Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:356.1-1.el10_2; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 10.0 Extended Update Support Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:334.1-3.el10_0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9 Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:356.1-1.el9_8; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9 Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:344-2.el9_7; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9.6 Extended Update Support Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:334.2-2.el9_6; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 7 Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
CNA: redhat |
| Red Hat Enterprise Linux 10 Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:344-3.el10_1; < * (unaffected, rpm)
Other versions: affected |
ADP: redhat-SADP |
| Red Hat Enterprise Linux 10.0 Extended Update Support Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:334.1-3.el10_0; < * (unaffected, rpm)
Other versions: affected |
ADP: redhat-SADP |
| Red Hat Enterprise Linux 9 Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:344-2.el9_7; < * (unaffected, rpm)
Other versions: affected |
ADP: redhat-SADP |
| Red Hat Enterprise Linux 9.6 Extended Update Support Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:334.2-2.el9_6; < * (unaffected, rpm)
Other versions: affected |
ADP: redhat-SADP |
| Red Hat Enterprise Linux 7 Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
ADP: redhat-SADP |
| Red Hat Enterprise Linux 8 Red Hat cockpit
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unaffected |
ADP: redhat-SADP |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 9.8 critical |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CNA: redhat |
| 3.1 / 9.8 critical |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | ADP: redhat-SADP |
| 3.1 / 9.8 critical |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD: [email protected] |
| 3.1 / 9.8 critical |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://access.redhat.com/errata/RHBA-2026:21387CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHBA-2026:21388CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:7381CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:7382CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:7383CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:7384CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-4631CNA: redhat · vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2450246CNA: redhat · issue-tracking, x_refsource_REDHAT
- https://github.com/cockpit-project/cockpit/security/advisories/GHSA-m4gv-x78h-3427CNA: redhat
- http://www.openwall.com/lists/oss-security/2026/04/10/5ADP: CVE
- https://access.redhat.com/security/cve/CVE-2026-4631ADP: redhat-SADP · vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2450246ADP: redhat-SADP · issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4631.jsonADP: redhat-SADP · x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:7381ADP: redhat-SADP · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:7383ADP: redhat-SADP · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:7382ADP: redhat-SADP · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:7384ADP: redhat-SADP · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHBA-2026:21387[email protected]
- https://access.redhat.com/errata/RHBA-2026:21388[email protected]
- https://access.redhat.com/errata/RHSA-2026:7381[email protected]
- https://access.redhat.com/errata/RHSA-2026:7382[email protected]
- https://access.redhat.com/errata/RHSA-2026:7383[email protected]
- https://access.redhat.com/errata/RHSA-2026:7384[email protected]
- https://access.redhat.com/security/cve/CVE-2026-4631[email protected]
- https://bugzilla.redhat.com/show_bug.cgi?id=2450246[email protected]
- https://github.com/cockpit-project/cockpit/security/advisories/GHSA-m4gv-x78h-3427[email protected]
- http://www.openwall.com/lists/oss-security/2026/04/10/5af854a3a-2127-422b-91ae-364da2661108
- https://access.redhat.com/errata/RHSA-2026:73810b0ca135-0b70-47e7-9f44-1890c2a1c46c
- https://access.redhat.com/errata/RHSA-2026:73820b0ca135-0b70-47e7-9f44-1890c2a1c46c
- https://access.redhat.com/errata/RHSA-2026:73830b0ca135-0b70-47e7-9f44-1890c2a1c46c
- https://access.redhat.com/errata/RHSA-2026:73840b0ca135-0b70-47e7-9f44-1890c2a1c46c
- https://access.redhat.com/security/cve/CVE-2026-46310b0ca135-0b70-47e7-9f44-1890c2a1c46c
- https://bugzilla.redhat.com/show_bug.cgi?id=24502460b0ca135-0b70-47e7-9f44-1890c2a1c46c
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4631.json0b0ca135-0b70-47e7-9f44-1890c2a1c46c
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.