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
A network attacker can abuse Cockpit’s remote-login interface to run code on a vulnerable server without credentials. Exploitation occurs before authentication, so passwords and normal login controls do not prevent it. Successful compromise could expose data, alter systems, and disrupt services.
Executive priority
Prioritize remediation immediately, starting with internet-facing or broadly reachable Cockpit systems. The combination of unauthenticated remote execution, low reported complexity, and complete confidentiality, integrity, and availability impact supports emergency handling. Maintain compensating network restrictions until vendor remediation is verified.
Technical view
Cockpit passes attacker-controlled hostnames and usernames to the SSH client without adequate validation. This CWE-78 command-line argument injection occurs before credential verification and can inject SSH options or shell commands, producing unauthenticated remote code execution. The supplied CVSS v3.1 score is 9.8.
Likely exposure
The bundle identifies Cockpit packages on RHEL 9, 9.6 EUS, 10, and 10.0 EUS as affected; RHEL 7 and 8 are listed unaffected. Exposure requires network reachability to Cockpit’s web service. Other distributions and versions are not established by this bundle.
Exploitation context
No cited source states that active exploitation has occurred, and the bundle marks the CVE as absent from KEV. That does not prove exploitation is absent. The reported low-complexity, single-request, pre-authentication path makes reachable systems especially concerning.
Researcher notes
The supplied evidence supports pre-authentication SSH argument or command injection through remote-login inputs. It does not provide detection signatures, observed exploitation evidence, or confirmed exposure beyond the listed Red Hat products. Testing should remain non-destructive and focus on version mapping, configuration, reachability, logging, and vendor-confirmed remediation.
Mitigation direction
Consult the applicable Red Hat or Cockpit advisory for current remediation requirements.
Apply the vendor-prescribed Cockpit security update as an emergency change.
Until updated, restrict Cockpit web access to trusted management networks using network controls.
Consider disabling remote-login functionality only when operationally acceptable and supported by vendor guidance.
Validation and detection
Inventory Cockpit installations, operating-system releases, and installed cockpit package versions.
Compare results with the affected RHEL products and versions in Red Hat’s CVE and CSAF records.
Determine whether each Cockpit web service is reachable from untrusted or broadly accessible networks.
After remediation, confirm the installed package matches the applicable vendor advisory.
Review Cockpit and host logs for suspicious pre-authentication activity or unexpected process execution.
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
9Source 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.