CVE-2026-1961

Forman: foreman: remote code execution via command injection in websocket proxy

Published Mar 26, 2026 CVSS 3.1 · 8 High EPSS 2.0% KEV · Not listed
Description
A flaw was found in Foreman. A remote attacker could exploit a command injection vulnerability in Foreman's WebSocket proxy implementation. This vulnerability arises from the system's use of unsanitized hostname values from compute resource providers when constructing shell commands. By operating a malicious compute resource server, an attacker could achieve remote code execution on the Foreman server when a user accesses VM VNC console functionality. This could lead to the compromise of sensitive credentials and the entire managed infrastructure.

Analysis

AI-generated

Technical impact

A command‑injection flaw in Foreman’s WebSocket proxy allows a remote attacker to execute arbitrary shell commands on the Foreman server. The vulnerability originates from unsanitized hostname values supplied by compute resource providers that are incorporated into shell commands. If an attacker controls the hostname returned by a compute resource, accessing the VNC console can cause the injection of malicious code, potentially compromising credentials and the entire managed infrastructure.

Affected Systems

Red Hat Satellite 6 and its subsequent releases—6.16 through 6.18—running on RHEL 8 or RHEL 9, including the Satellite Capsule, Satellite Maintenance, and Satellite Utils components, are affected as listed by the CNA.

Risk and Exploitability

The CVSS score of 8 indicates high severity, while the EPSS score of 1% shows that exploitation activity is currently low. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires the attacker to control a compute resource that returns a crafted hostname; when an authenticated user activates the VNC console, the unsanitized hostname is injected into a shell command, allowing arbitrary code execution. Although initial access is limited to the compute resource, the impact of a successful compromise is severe, potentially giving control over the entire managed environment.

Remediation

Vendor Workaround

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.


OpenCVE Recommended Actions

  • Apply the Red Hat errata RHSA-2026:5968, RHSA-2026:5970, and RHSA-2026:5971 to all affected Satellite products.
  • Limit external access to the VNC console functionality for administrators until a patch is applied.
  • Restrict the list of compute resource providers or enforce validation and sanitization of hostnames before they are used by the WebSocket proxy.

Generated by OpenCVE AI on June 18, 2026 at 04:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat enterprise Linux
Theforeman
Theforeman foreman
CPEs cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*
cpe:2.3:a:redhat:satellite:6.0:*:*:*:*:*:*:*
cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
Vendors & Products Redhat enterprise Linux
Theforeman
Theforeman foreman
Type Values Removed Values Added
Weaknesses CWE-78
Type Values Removed Values Added
Weaknesses CWE-78
CWE-94
Type Values Removed Values Added
Weaknesses CWE-78
CWE-94
Type Values Removed Values Added
First Time appeared Red Hat
Red Hat red Hat Satellite 6
Vendors & Products Red Hat
Red Hat red Hat Satellite 6
Type Values Removed Values Added
CPEs cpe:/a:redhat:satellite:6.18::el9
cpe:/a:redhat:satellite_capsule:6.18::el9
cpe:/a:redhat:satellite_utils:6.18::el9
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
First Time appeared Redhat satellite Capsule
Redhat satellite Maintenance
Redhat satellite Utils
CPEs cpe:/a:redhat:satellite:6.16::el8
cpe:/a:redhat:satellite:6.16::el9
cpe:/a:redhat:satellite:6.17::el9
cpe:/a:redhat:satellite_capsule:6.16::el8
cpe:/a:redhat:satellite_capsule:6.16::el9
cpe:/a:redhat:satellite_capsule:6.17::el9
cpe:/a:redhat:satellite_maintenance:6.16::el9
cpe:/a:redhat:satellite_maintenance:6.17::el9
cpe:/a:redhat:satellite_utils:6.16::el8
cpe:/a:redhat:satellite_utils:6.16::el9
cpe:/a:redhat:satellite_utils:6.17::el9
Vendors & Products Redhat satellite Capsule
Redhat satellite Maintenance
Redhat satellite Utils
References
Type Values Removed Values Added
Description A flaw was found in Foreman. A remote attacker could exploit a command injection vulnerability in Foreman's WebSocket proxy implementation. This vulnerability arises from the system's use of unsanitized hostname values from compute resource providers when constructing shell commands. By operating a malicious compute resource server, an attacker could achieve remote code execution on the Foreman server when a user accesses VM VNC console functionality. This could lead to the compromise of sensitive credentials and the entire managed infrastructure.
Title Forman: foreman: remote code execution via command injection in websocket proxy
First Time appeared Redhat
Redhat satellite
CPEs cpe:/a:redhat:satellite:6
Vendors & Products Redhat
Redhat satellite
References
Metrics cvssV3_1

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

ssvc

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

Weaknesses
  • CWE-78

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

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 3, 2026, 1:54 PM
Reserved
Feb 5, 2026, 10:43 AM
Status
Analyzed
Published
Mar 26, 2026, 1:16 PM
Modified
Oct 20, 2026, 4:03 PM
Severity
Important
Public date
Mar 26, 2026, 12:30 PM