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 exists in Cockpit's remote login feature, which passes user-supplied hostnames and usernames from the web interface to the SSH client without proper validation or sanitization. An attacker can exploit this by sending a specially crafted HTTP request to the login endpoint, injecting malicious SSH command-line arguments or shell commands. This injection occurs during the authentication flow before any credential checks, enabling code execution on the Cockpit host without valid credentials. The issue is tracked as CWE-78 (OS Command Injection) and has a CVSS 3.1 score of 9.8 (critical). Red Hat has issued security advisories RHSA-2026:7381 and RHSA-2026:7382 providing updated cockpit packages that fix this vulnerability.
Potential Impact
Successful exploitation results in unauthenticated remote code execution on the Cockpit host, compromising confidentiality, integrity, and availability of the affected system. Since the injection occurs before authentication, no valid credentials are required, making the attack highly severe. This can lead to full system compromise of Red Hat Enterprise Linux 9.6 and 10.0 systems running vulnerable Cockpit versions.
Mitigation Recommendations
Red Hat has released official security updates for Cockpit that address this vulnerability. Users should apply the updates provided in advisories RHSA-2026:7381 and RHSA-2026:7382 as soon as possible. Before applying these updates, ensure all previously released errata relevant to the system have been applied. Refer to Red Hat's guidance at https://access.redhat.com/articles/11258 for update instructions. No other mitigation or workaround is indicated by the vendor advisory.
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
Red Hat
Red Hat Enterprise Linux 10
Red Hat
Red Hat Enterprise Linux 10.0 Extended Update Support
Red Hat
Red Hat Enterprise Linux 9
Red Hat
Red Hat Enterprise Linux 9.6 Extended Update Support
Red Hat
Red Hat Enterprise Linux 7
Red Hat
Red Hat Enterprise Linux 8
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 exists in Cockpit's remote login feature, which passes user-supplied hostnames and usernames from the web interface to the SSH client without proper validation or sanitization. An attacker can exploit this by sending a specially crafted HTTP request to the login endpoint, injecting malicious SSH command-line arguments or shell commands. This injection occurs during the authentication flow before any credential checks, enabling code execution on the Cockpit host without valid credentials. The issue is tracked as CWE-78 (OS Command Injection) and has a CVSS 3.1 score of 9.8 (critical). Red Hat has issued security advisories RHSA-2026:7381 and RHSA-2026:7382 providing updated cockpit packages that fix this vulnerability.
Potential Impact
Successful exploitation results in unauthenticated remote code execution on the Cockpit host, compromising confidentiality, integrity, and availability of the affected system. Since the injection occurs before authentication, no valid credentials are required, making the attack highly severe. This can lead to full system compromise of Red Hat Enterprise Linux 9.6 and 10.0 systems running vulnerable Cockpit versions.
Mitigation Recommendations
Red Hat has released official security updates for Cockpit that address this vulnerability. Users should apply the updates provided in advisories RHSA-2026:7381 and RHSA-2026:7382 as soon as possible. Before applying these updates, ensure all previously released errata relevant to the system have been applied. Refer to Red Hat's guidance at https://access.redhat.com/articles/11258 for update instructions. No other mitigation or workaround is indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-03-23T08:25:21.305Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- 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: 08/04/2026, 13:07:46 UTC
Last updated: 09/15/2026, 03:05:58 UTC
Views: 551
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.