CVE-2026-4631

Cockpit: cockpit: unauthenticated remote code execution due to ssh command-line argument injection

Published Apr 7, 2026 CVSS 3.1 · 9.8 Critical EPSS 15.5% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Cockpit’s remote login feature directly passes user‑supplied hostnames and usernames to the underlying SSH client without any validation or sanitization. An attacker who can reach the Cockpit web service can send a single HTTP request to the login endpoint that injects malicious SSH options or shell commands. This injection occurs during the authentication flow before any credential verification, allowing the attacker to execute arbitrary code on the Cockpit host without valid credentials, effectively providing full system compromise. The weakness is an OS command‑injection flaw classified as CWE‑78.

Affected Systems

The vulnerability affects Red Hat Enterprise Linux systems that run the Cockpit service, including RHEL 7, RHEL 8, RHEL 9, RHEL 9.6 EUS, RHEL 10, and RHEL 10.0 EUS.

Risk and Exploitability

With a CVSS score of 9.8 the vulnerability is high severity. The EPSS score of 15 % indicates a lower predicted exploitation probability, but the absence of a credential requirement and the simplicity of the attack vector—crafting an HTTP request to the web service—make it a straightforward threat for attackers who can reach the Cockpit instance. The issue is not listed in the CISA KEV catalog, so no public exploit is currently documented; however, the attack could be performed by any network attacker with access to the Cockpit service, making risk very high for exposed systems.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply Red Hat updates RHSA‑2026:7381 through RHSA‑2026:7384 to patch Cockpit.
  • If the update cannot be applied immediately, restrict access to the Cockpit web service by blocking outbound/inbound traffic to its port (default 9090) or disabling the service until a patch is installed.
  • Monitor Cockpit logs and network traffic for unusual SSH attempts and enforce least‑privilege access controls to limit exposure.

Generated by OpenCVE AI on October 25, 2026 at 21:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat rhel Els
CPEs cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:8
cpe:/o:redhat:rhel_els:7
Vendors & Products Redhat rhel Els
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10 cpe:/o:redhat:enterprise_linux:10.1
References
Type Values Removed Values Added
First Time appeared Redhat rhel Eus
CPEs cpe:/o:redhat:enterprise_linux:9 cpe:/a:redhat:enterprise_linux:9::appstream
cpe:/a:redhat:rhel_eus:9.6::appstream
cpe:/o:redhat:enterprise_linux:9::baseos
cpe:/o:redhat:rhel_eus:9.6::baseos
Vendors & Products Redhat rhel Eus
References
Type Values Removed Values Added
First Time appeared Redhat enterprise Linux Eus
CPEs cpe:/o:redhat:enterprise_linux_eus:10.0
Vendors & Products Redhat enterprise Linux Eus
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Cockpit: cockpit: unauthenticated remote code execution due to ssh command-line argument injection
First Time appeared Redhat
Redhat enterprise Linux
Weaknesses CWE-78
CPEs cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:7
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 4, 2026, 10:37 PM
Reserved
Mar 23, 2026, 8:25 AM
Status
Awaiting Analysis
Published
Apr 7, 2026, 5:16 PM
Modified
Nov 4, 2026, 11:17 PM
Severity
Critical
Public date
Apr 7, 2026, 3:52 PM