RCE in Theforeman Foreman
CVE-2026-1961
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.0 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.020, 80.7th percentile (scored ); up from 0.014 30 days earlier. About EPSS.
EPSS over last 30 days · oldest: 0.014 · newest: 0.020 · change: +0.006
Affected products
- Theforeman Foreman
- Red Hat Satellite 6
- Red Hat Satellite — versions 6.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- kalnux/CVE-2026-1961-foreman-poc (last pushed 2026-09-18): 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…
References
- RHSA-2026:5968 (vendor-advisory, Vendor Advisory)
- RHSA-2026:5970 (vendor-advisory, Vendor Advisory)
- RHSA-2026:5971 (vendor-advisory, Vendor Advisory)
- access.redhat.com/security/cve/CVE-2026-1961 (vdb-entry, Vendor Advisory)
- RHBZ#2437036 (issue-tracking, Exploit, Issue Tracking, Vendor Advisory)
- www.openwall.com/lists/oss-security/2026/03/27/3 (Mailing List, Third Party Advisory)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1961.json (Vendor Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.