---
id: CVE-2026-1961
title: A flaw was found in Foreman
summary: >-
  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 resou…
severity: high
cvss: 8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'
cwe:
  - CWE-78
published: '2026-03-26'
updated: '2026-06-30'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-1961'
references:
  - url: 'https://access.redhat.com/errata/RHSA-2026:5968'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:5970'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/errata/RHSA-2026:5971'
    label: secalert@redhat.com
  - url: 'https://access.redhat.com/security/cve/CVE-2026-1961'
    label: secalert@redhat.com
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2437036'
    label: secalert@redhat.com
  - url: 'http://www.openwall.com/lists/oss-security/2026/03/27/3'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://access.redhat.com/errata/RHSA-2026:5968'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:5970'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:5971'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/security/cve/CVE-2026-1961'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2437036'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1961.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
tags:
  - nvd
  - exploit-available
  - cve.org
epss: 0.01922
epssPercentile: 0.79813
ingestedAt: '2026-07-01T03:50:34.542Z'
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/kalnux/CVE-2026-1961-foreman-poc'
  checkedAt: '2026-10-27T17:01:20.602Z'
exploitAvailable: true
vendor: Red Hat
product: foreman
affected:
  - foreman (all versions)
  - foreman (all versions)
  - foreman (all versions)
  - libcomps (all versions)
  - python-brotli (all versions)
  - python-django (all versions)
  - python-pulp-container (all versions)
  - python-pulp-rpm (all versions)
  - rubygem-fog-kubevirt (all versions)
  - rubygem-foreman_kubevirt (all versions)
  - rubygem-katello (all versions)
  - rubygem-rubyipmi (all versions)
  - satellite (all versions)
  - yggdrasil-worker-forwarder (all versions)
  - foreman (all versions)
  - libcomps (all versions)
  - python-brotli (all versions)
  - python-django (all versions)
  - python-pulp-container (all versions)
  - python-pulp-rpm (all versions)
  - rubygem-fog-kubevirt (all versions)
  - rubygem-foreman_kubevirt (all versions)
  - rubygem-katello (all versions)
  - rubygem-rubyipmi (all versions)
  - satellite (all versions)
  - yggdrasil-worker-forwarder (all versions)
  - foreman (all versions)
  - 'satellite-utils:el8/foreman (all versions)'
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-03-26T13:11:15.689121Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
