# CVE-2026-1961: Forman: foreman: remote code execution via command injection in websocket proxy

- Severity: High 8.0 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.15%, higher than 82% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-26T12:53:09.566Z
- Modified: 2026-11-26T15:17:30.000Z
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- foreman: from 1.2.0 before 3.16.3; from 3.17.0 before 3.17.2; from 3.18.0 before 3.18.1 (not affected: from 0:3.12.0.14-1.el8sat before *; from 0:3.12.0.14-1.el9sat before *; from 0:3.14.0.14-1.el9sat before *; from 0:3.16.0.12-1.el9sat before *)
- libcomps: no versions given (not affected: from 0:0.1.23-0.3.el9pc before *)
- python-brotli: no versions given (not affected: from 0:1.2.0-0.1.el9pc before *)
- python-django: no versions given (not affected: from 0:4.2.28-0.1.el9pc before *)
- python-pulp-container: no versions given (not affected: from 0:2.22.3-1.el9pc before *)
- python-pulp-rpm: no versions given (not affected: from 0:3.27.10-2.el9pc before *)
- rubygem-fog-kubevirt: no versions given (not affected: from 0:1.5.1-1.el9sat before *)
- rubygem-foreman_kubevirt: no versions given (not affected: from 0:0.4.3-1.el9sat before *)
- rubygem-katello: no versions given (not affected: from 0:4.16.0.14-1.el9sat before *)
- rubygem-rubyipmi: no versions given (not affected: from 0:0.13.0-1.el9sat before *)
- satellite: no versions given (not affected: from 0:6.17.7-1.el9sat before *)
- yggdrasil-worker-forwarder: no versions given (not affected: from 0:0.0.3-4.el9sat before *)
- satellite-utils:el8/foreman: no versions given
- redhat satellite: from 6.16 before 6.16.7; from 6.17 before 6.17.7; from 6.18 before 6.18.4; 6.0
- theforeman foreman: before 3.16.3; from 3.17.0 before 3.17.2; from 3.18.0 before 3.18.1

## Every score

- redhat: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 8.0 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2437036> (exploit, issue-tracking, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:5968> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:5970> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:5971> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-1961> (vdb-entry, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2026/03/27/3> (mailing-list, third-party-advisory)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1961.json> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-1961](https://www.cve.org/CVERecord?id=CVE-2026-1961), CVE Terms of Use, modified 2026-11-26
- NVD: [CVE-2026-1961](https://nvd.nist.gov/vuln/detail/CVE-2026-1961), Public domain, modified 2026-11-26

---

Page: https://cve.day/CVE-2026-1961 · Whole record: https://cve.day/CVE-2026-1961.json · Rebuilt by cve.day 2026-11-26T15:32:13.797Z
