Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 14.2%top 3.8%

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

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: 07/21/2026, 19:21:02 UTC

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.

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
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 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