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 trend (30 days)EPSS over the last 30 days for CVE-2026-1961: rose from 0.014 to 0.020.

EPSS over last 30 days · oldest: 0.014 · newest: 0.020 · change: +0.006

Affected products

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