Skip to content
OpenAdvisories
High · 8.0 Public exploit CVE-2026-1961 EUVD-2026-16167GHSA-fh2w-2c26-vpg5

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

Published Mar 26, 2026 · Updated Nov 3, 2026 · Assigned by redhat

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.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Satellite 6.16 for RHEL 8 — —
Red Hat Red Hat Satellite 6.16 for RHEL 9 — —
Red Hat Red Hat Satellite 6.17 for RHEL 9 — —
Red Hat Red Hat Satellite 6.18 for RHEL 9 — —
Red Hat Red Hat Satellite 6 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Satellite Utils 6 foreman +1 3.12.0.14-1.el8sat RHSA-2026:5971, RHSA-2026:5970, RHSA-2026:5968
Red Hat Satellite Utils 6 satellite +1 6.17.7-1.el9sat RHSA-2026:5970
Red Hat Satellite Maintenance 6 libcomps +1 0.1.23-0.3.el9pc RHSA-2026:5970
Red Hat Satellite Capsule 6 foreman +2 3.12.0.14-1.el8sat RHSA-2026:5971, RHSA-2026:5970, RHSA-2026:5968
Red Hat Satellite Capsule 6 libcomps +2 0.1.23-0.3.el9pc RHSA-2026:5970
Red Hat Satellite Capsule 6 python-brotli +1 1.2.0-0.1.el8pc RHSA-2026:5971, RHSA-2026:5970
Red Hat Satellite Capsule 6 python-django +1 4.2.28-0.1.el8pc RHSA-2026:5971, RHSA-2026:5970
Red Hat Satellite Capsule 6 python-pulp-container +1 2.22.3-1.el9pc RHSA-2026:5970
Red Hat Satellite Capsule 6 python-pulp-rpm +1 3.27.10-2.el9pc RHSA-2026:5970
Red Hat Satellite Capsule 6 rubygem-rubyipmi 0.13.0-0.1.el8sat RHSA-2026:5971, RHSA-2026:5970, RHSA-2026:5968
Red Hat Satellite Capsule 6 satellite +3 6.17.7-1.el9sat RHSA-2026:5970
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Satellite 6 foreman +14 3.12.0.14-1.el8sat RHSA-2026:5971, RHSA-2026:5970, RHSA-2026:5968
Red Hat Satellite 6 libcomps +2 0.1.23-0.3.el9pc RHSA-2026:5970
Red Hat Satellite 6 python-brotli +1 1.2.0-0.1.el8pc RHSA-2026:5971, RHSA-2026:5970
Red Hat Satellite 6 python-django +1 4.2.28-0.1.el8pc RHSA-2026:5971, RHSA-2026:5970
Red Hat Satellite 6 python-pulp-container +1 2.22.3-1.el9pc RHSA-2026:5970
Red Hat Satellite 6 python-pulp-rpm +1 3.27.10-2.el9pc RHSA-2026:5970
Red Hat Satellite 6 rubygem-fog-kubevirt 1.5.1-1.el8sat RHSA-2026:5971, RHSA-2026:5970
Red Hat Satellite 6 rubygem-foreman_kubevirt 0.2.0-2.el8sat RHSA-2026:5971, RHSA-2026:5970, RHSA-2026:5968
Red Hat Satellite 6 rubygem-katello 4.16.0.14-1.el9sat RHSA-2026:5970, RHSA-2026:5968
Red Hat Satellite 6 rubygem-rubyipmi 0.13.0-0.1.el8sat RHSA-2026:5971, RHSA-2026:5970, RHSA-2026:5968
Red Hat Satellite 6 satellite +3 6.17.7-1.el9sat RHSA-2026:5970
Red Hat Satellite 6 yggdrasil-worker-forwarder 0.0.3-4.el8sat RHSA-2026:5971, RHSA-2026:5970, RHSA-2026:5968

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

  • kalnux/CVE-2026-1961-foreman-poc ★ 0 · Sep 17, 2026

    PoC for CVE-2026-1961 — command injection in Foreman's WebSocket proxy (lib/ws_proxy.rb) via unsanitized compute resource hostname, leading to RCE as the foreman user. Responsibly disclosed and patch…

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 5

References