Skip to main content
EPSS 15.5%top 3.4%

CVE-2026-4631: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in Red Hat Red Hat Enterprise Linux 10

0
Critical
VulnerabilityCVE-2026-4631cvecve-2026-4631
Published: 04/07/2026 (04/07/2026, 16:30:28 UTC)
Source: CVE Database V5
Vendor/Project: Red Hat
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

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

redhat/cockpit
pkg:rpm/redhat/cockpit
Affected versions
=9.6<9.6.1=10.0<10.0.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/04/2026, 13:07:46 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses