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

High 8.0 Published Updated

Remote attackers can execute arbitrary code on Foreman servers via command injection in the WebSocket proxy when accessing VNC consoles.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-1961?

CVE-2026-1961 is a high-severity command injection vulnerability in Redhat Satellite, published on 26 Mar 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

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

Weakness: CWE-78

Which versions are affected by CVE-2026-1961?

It affects 2 products.

Products include Redhat Satellite, Theforeman Foreman.

How do I fix CVE-2026-1961?

Apply the vendor's patch.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2026-1961 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-1961 exists.

Public exploit code: 1 proofs of concept on GitHub.

All Redhat Satellite vulnerabilities

Sources

Also known as GHSA-fh2w-2c26-vpg5.

Is CVE-2026-1961 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free