CVE-2026-1961 Forman: foreman: remote code execution via command injection in websocket proxy
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.
Other vulnerabilities in Redhat Satellite
- CVE-2024-7012 Puppet-foreman: an authentication bypass vulnerability exists in foreman
- CVE-2024-7923 Puppet-pulpcore: an authentication bypass vulnerability exists in pulpcore
- CVE-2026-96659 Foreman: excessive permissions for viewer role on preview
- CVE-2023-0118 Foreman: arbitrary code execution through templates
- CVE-2008-2369 Hardcoded credentials in n/a
Sources
Also known as GHSA-fh2w-2c26-vpg5.