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.
Security readout for executives and security teams
Plain-English summary
CVE-2026-4631 is a critical Cockpit flaw where the web login path can pass untrusted host or user input into SSH. A network attacker may achieve code execution on the Cockpit host before authentication. Treat exposed Cockpit management interfaces as urgent.
Executive priority
Prioritize same-day assessment and remediation for exposed Cockpit hosts. This is unauthenticated remote code execution against an administrative service, so compromise could lead directly to server control.
Technical view
The issue is CWE-78 command injection in Cockpit remote login. Unsanitized hostname and username values from the web interface are passed to the SSH client, allowing SSH option or command-line argument injection during authentication flow. Sources rate it CVSS 9.8 with network, low-complexity, no-credential exploitation.
Likely exposure
Exposure is most likely where Cockpit web service is reachable on affected Red Hat Enterprise Linux 9, 9.6 EUS, 10, or 10.0 EUS systems. The bundle marks RHEL 7 and 8 as unaffected.
Exploitation context
The bundle says exploitation requires only network access to Cockpit and no valid credentials. KEV is false, and the provided sources do not establish active exploitation in the wild.
Researcher notes
Evidence supports unauthenticated command injection before credential verification. The source bundle does not include exploit samples, fixed package versions, or proof of active exploitation, so validation should focus on affected product inventory and vendor advisory status.
Mitigation direction
Apply Red Hat updates from RHSA-2026:7381 through RHSA-2026:7384 where applicable.
Check Red Hat CVE guidance for corrected cockpit package details before rollout.
Restrict Cockpit web access to trusted administrative networks only.
Disable or isolate Cockpit where it is not operationally required.
Validation and detection
Inventory systems running the cockpit package on RHEL 9, 9.6 EUS, 10, or 10.0 EUS.
Confirm installed cockpit versions against Red Hat advisory guidance.
Verify Cockpit web endpoints are not broadly internet-accessible.
Review authentication and web service logs for suspicious pre-login requests.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-78: Command execution behavior lookup
Command injection weaknesses can lead defenders to review execution techniques and command interpreter telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
The CVE wording references authentication or credential exposure, so valid-account and credential-access review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
7Timeline events
3ADP providers
8Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-78 · source CWE mapping
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.