CVE-2026-4631: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Red Hat Red Hat Enterprise Linux 10
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.
AI Analysis
Technical Summary
The vulnerability CVE-2026-4631 affects the Cockpit web-based server administration tool in Red Hat Enterprise Linux 9.6 and 10. Cockpit's remote login feature improperly handles user-supplied hostnames and usernames by passing them directly to the SSH client without validation or sanitization. An attacker with network access can exploit this by sending a crafted HTTP request to the login endpoint, injecting malicious SSH command-line arguments or shell commands. This leads to unauthenticated remote code execution on the host running Cockpit, as the injection happens before any authentication checks. The issue is classified under CWE-78 (OS Command Injection) and has a CVSS 3.1 base score of 9.8 (critical). Red Hat has issued security advisories RHSA-2026:7381 and RHSA-2026:7382 with updated cockpit packages that fix this vulnerability.
Potential Impact
Successful exploitation allows an unauthenticated attacker with network access to the Cockpit web service to execute arbitrary code on the Cockpit host. This can lead to full system compromise, including confidentiality, integrity, and availability impacts. The vulnerability is critical due to the lack of authentication requirement and the ability to execute commands remotely via the web interface.
Mitigation Recommendations
Red Hat has released official security updates for Cockpit that fix this vulnerability by improving the handling of hostnames on the command line. Users should apply the updated cockpit packages provided in Red Hat Enterprise Linux 9.6 (cockpit-334.2-2.el9_6) and 10.0 (cockpit-334.1-3.el10_0) as detailed in advisories RHSA-2026:7381 and RHSA-2026:7382. Before applying these updates, ensure all previously released errata relevant to your system are installed. No other mitigations or workarounds are indicated by the vendor.
CVE-2026-4631: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Red Hat Red Hat Enterprise Linux 10
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.
CVSS v3.1
Score 9.8critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-4631 affects the Cockpit web-based server administration tool in Red Hat Enterprise Linux 9.6 and 10. Cockpit's remote login feature improperly handles user-supplied hostnames and usernames by passing them directly to the SSH client without validation or sanitization. An attacker with network access can exploit this by sending a crafted HTTP request to the login endpoint, injecting malicious SSH command-line arguments or shell commands. This leads to unauthenticated remote code execution on the host running Cockpit, as the injection happens before any authentication checks. The issue is classified under CWE-78 (OS Command Injection) and has a CVSS 3.1 base score of 9.8 (critical). Red Hat has issued security advisories RHSA-2026:7381 and RHSA-2026:7382 with updated cockpit packages that fix this vulnerability.
Potential Impact
Successful exploitation allows an unauthenticated attacker with network access to the Cockpit web service to execute arbitrary code on the Cockpit host. This can lead to full system compromise, including confidentiality, integrity, and availability impacts. The vulnerability is critical due to the lack of authentication requirement and the ability to execute commands remotely via the web interface.
Mitigation Recommendations
Red Hat has released official security updates for Cockpit that fix this vulnerability by improving the handling of hostnames on the command line. Users should apply the updated cockpit packages provided in Red Hat Enterprise Linux 9.6 (cockpit-334.2-2.el9_6) and 10.0 (cockpit-334.1-3.el10_0) as detailed in advisories RHSA-2026:7381 and RHSA-2026:7382. Before applying these updates, ensure all previously released errata relevant to your system are installed. No other mitigations or workarounds are indicated by the vendor.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-03-23T08:25:21.305Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-4631","vendor":"Red Hat"}]
Threat ID: 69d534e5aaed68159a357dd4
Added to database: 04/07/2026, 16:46:29 UTC
Last enriched: 07/21/2026, 19:21:02 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 495
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.