# CVE-2026-4631: Cockpit: cockpit: unauthenticated remote code execution due to ssh command-line argument injection

Status: published. Published: 2026-04-07. Updated: 2026-11-04.

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.

## Remediation

- 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-SADP)

## Affected products and versions

- Red Hat / Red Hat Enterprise Linux 10 (cockpit): ≥ 0:344-3.el10_1; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 10 (cockpit): ≥ 0:356.1-1.el10_2; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 10.0 Extended Update Support (cockpit): ≥ 0:334.1-3.el10_0; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9 (cockpit): ≥ 0:356.1-1.el9_8; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9 (cockpit): ≥ 0:344-2.el9_7; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 9.6 Extended Update Support (cockpit): ≥ 0:334.2-2.el9_6; < * (unaffected, rpm). Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 7 (cockpit): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 8 (cockpit): Version range not reported. Source: CNA: redhat
- Red Hat / Red Hat Enterprise Linux 10 (cockpit): ≥ 0:344-3.el10_1; < * (unaffected, rpm). Source: ADP: redhat-SADP
- Red Hat / Red Hat Enterprise Linux 10.0 Extended Update Support (cockpit): ≥ 0:334.1-3.el10_0; < * (unaffected, rpm). Source: ADP: redhat-SADP
- Red Hat / Red Hat Enterprise Linux 9 (cockpit): ≥ 0:344-2.el9_7; < * (unaffected, rpm). Source: ADP: redhat-SADP
- Red Hat / Red Hat Enterprise Linux 9.6 Extended Update Support (cockpit): ≥ 0:334.2-2.el9_6; < * (unaffected, rpm). Source: ADP: redhat-SADP
- Red Hat / Red Hat Enterprise Linux 7 (cockpit): Version range not reported. Source: ADP: redhat-SADP
- Red Hat / Red Hat Enterprise Linux 8 (cockpit): Version range not reported. Source: ADP: redhat-SADP

## Severity and prioritization

- CVSS 3.1: 9.8 (critical); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; source: CNA: redhat

- CVSS 3.1: 9.8 (critical); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; source: ADP: redhat-SADP

- CVSS 3.1: 9.8 (critical); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; source: NVD: secalert@redhat.com

- CVSS 3.1: 9.8 (critical); CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; source: NVD: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c

- CISA KEV: No listing in collected sources

- EPSS: 15.48% as of 2026-11-04; percentile 96.82%

- SSVC: exploitation none; automatable no; technical impact total; source ADP: CISA-ADP

- Weaknesses: CWE-78

## Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

## References

- https://access.redhat.com/errata/RHBA-2026:21387 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHBA-2026:21388 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:7381 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:7382 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:7383 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:7384 (CNA: redhat; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/security/cve/CVE-2026-4631 (CNA: redhat; vdb-entry, x_refsource_REDHAT)

- https://bugzilla.redhat.com/show_bug.cgi?id=2450246 (CNA: redhat; issue-tracking, x_refsource_REDHAT)

- https://github.com/cockpit-project/cockpit/security/advisories/GHSA-m4gv-x78h-3427 (CNA: redhat)

- http://www.openwall.com/lists/oss-security/2026/04/10/5 (ADP: CVE)

- https://access.redhat.com/security/cve/CVE-2026-4631 (ADP: redhat-SADP; vdb-entry, x_refsource_REDHAT)

- https://bugzilla.redhat.com/show_bug.cgi?id=2450246 (ADP: redhat-SADP; issue-tracking, x_refsource_REDHAT)

- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4631.json (ADP: redhat-SADP; x_sadp-csaf-vex)

- https://access.redhat.com/errata/RHSA-2026:7381 (ADP: redhat-SADP; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:7383 (ADP: redhat-SADP; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:7382 (ADP: redhat-SADP; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHSA-2026:7384 (ADP: redhat-SADP; vendor-advisory, x_refsource_REDHAT)

- https://access.redhat.com/errata/RHBA-2026:21387 (secalert@redhat.com)

- https://access.redhat.com/errata/RHBA-2026:21388 (secalert@redhat.com)

- https://access.redhat.com/errata/RHSA-2026:7381 (secalert@redhat.com)

- https://access.redhat.com/errata/RHSA-2026:7382 (secalert@redhat.com)

- https://access.redhat.com/errata/RHSA-2026:7383 (secalert@redhat.com)

- https://access.redhat.com/errata/RHSA-2026:7384 (secalert@redhat.com)

- https://access.redhat.com/security/cve/CVE-2026-4631 (secalert@redhat.com)

- https://bugzilla.redhat.com/show_bug.cgi?id=2450246 (secalert@redhat.com)

- https://github.com/cockpit-project/cockpit/security/advisories/GHSA-m4gv-x78h-3427 (secalert@redhat.com)

- http://www.openwall.com/lists/oss-security/2026/04/10/5 (af854a3a-2127-422b-91ae-364da2661108)

- https://access.redhat.com/errata/RHSA-2026:7381 (0b0ca135-0b70-47e7-9f44-1890c2a1c46c)

- https://access.redhat.com/errata/RHSA-2026:7382 (0b0ca135-0b70-47e7-9f44-1890c2a1c46c)

- https://access.redhat.com/errata/RHSA-2026:7383 (0b0ca135-0b70-47e7-9f44-1890c2a1c46c)

- https://access.redhat.com/errata/RHSA-2026:7384 (0b0ca135-0b70-47e7-9f44-1890c2a1c46c)

- https://access.redhat.com/security/cve/CVE-2026-4631 (0b0ca135-0b70-47e7-9f44-1890c2a1c46c)

- https://bugzilla.redhat.com/show_bug.cgi?id=2450246 (0b0ca135-0b70-47e7-9f44-1890c2a1c46c)

- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4631.json (0b0ca135-0b70-47e7-9f44-1890c2a1c46c)

## Provenance

- CNA: redhat: https://www.cve.org/CVERecord?id=CVE-2026-4631; retrieved 2026-11-04; source updated 2026-11-04

- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-4631; retrieved 2026-11-05; source updated 2026-11-04

- FIRST EPSS: https://api.first.org/data/v1/epss?cve=CVE-2026-4631; retrieved 2026-11-04; source updated Not reported

Revision: 11ea51143431ed59c4519b165830cb30c9fa959551b4b3b70a3a240d5e9c590b

Canonical: https://y2.dev/cve/CVE-2026-4631

## Agent and API access

Public CVE pages, Markdown, and JSON are free to read without an account or API key.

- Public catalog: https://y2.dev/cve/index.json. Follow nextCursor with the same search, filters, sort, and limit (1–100). A null cursor marks the end.

- WebMCP: search_cve_disclosures, get_cve_disclosure, get_cve_page_markdown, get_y2_cve_access. Available in compatible browsers.

- Cyber API: https://api.y2.dev/api/v2/cyber/cves and https://api.y2.dev/api/v2/cyber/cves/{cveId}.

- Y2 Pro or Elite: create a workspace API key with the intel:cyber scope and send Authorization: Bearer <Y2_API_KEY>. Setup: https://y2.dev/docs/api/create-key.

- x402: Pay per request without an account or API key. Omit Authorization, read the HTTP 402 PAYMENT-REQUIRED challenge, validate its current requirements, and retry with PAYMENT-SIGNATURE through an authorized payment client. These browser tools never make payments. Guide: https://y2.dev/docs/api/x402.

- OpenAPI: https://y2.dev/api/openapi.yaml. Agent access metadata: https://y2.dev/cve/agent.json.

Collected public records only. Check source status for coverage and freshness.