Project

General

Profile

Actions

Bug #39121

closed

CVE-2026-1961: Remote Code Execution via command injection in WebSocket proxy

Added by Ondřej Gajdušek about 1 month ago. Updated 15 days ago.

Status:
Closed
Priority:
Immediate
Assignee:
-
Category:
Security
Target version:

Description

Summary: A critical command injection vulnerability exists in Foreman's WebSocket proxy implementation (lib/ws_proxy.rb). The vulnerability occurs when constructing shell commands using unsanitized hostname values from compute resource providers. An attacker operating a malicious compute resource server (VMware vSphere, Libvirt, etc.) can achieve remote code execution on the Foreman server when an administrator accesses VM console functionality.

Requirements to exploit: An attacker needs to operate a malicious compute resource server (such as a fake vSphere server) that returns poisoned hostname values. The Foreman administrator must then configure this malicious server as a compute resource and attempt to access the VM console through the normal workflow.

Actions #1

Updated by Ondřej Gajdušek about 1 month ago

  • Found in Releases 3.18.0 added
Actions #2

Updated by Ondřej Gajdušek about 1 month ago

  • Found in Releases 3.19.0 added
Actions #3

Updated by Ondřej Gajdušek about 1 month ago

  • Target version changed from 3.18.0 to 3.19.0
Actions #4

Updated by Ondřej Gajdušek about 1 month ago

  • Category set to Security
Actions #5

Updated by Ondřej Gajdušek 18 days ago

  • Subject changed from Remote Code Execution via command injection in WebSocket proxy to CVE-2026-1961: Remote Code Execution via command injection in WebSocket proxy
Actions #6

Updated by Ondřej Gajdušek 15 days ago

  • Private changed from Yes to No
Actions #7

Updated by The Foreman Bot 15 days ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/10921 added
Actions #8

Updated by The Foreman Bot 15 days ago

  • Fixed in Releases 3.19.0 added
Actions #9

Updated by The Foreman Bot 15 days ago

  • Pull request https://github.com/theforeman/foreman/pull/10922 added
Actions #10

Updated by The Foreman Bot 15 days ago

  • Pull request https://github.com/theforeman/foreman/pull/10923 added
Actions #11

Updated by The Foreman Bot 15 days ago

  • Pull request https://github.com/theforeman/foreman/pull/10924 added
Actions #12

Updated by Evgeni Golov 15 days ago

  • Status changed from Ready For Testing to Closed
Actions #13

Updated by The Foreman Bot 15 days ago

  • Fixed in Releases 3.18.1 added
Actions #14

Updated by The Foreman Bot 15 days ago

  • Fixed in Releases 3.17.2 added
Actions #15

Updated by The Foreman Bot 15 days ago

  • Fixed in Releases 3.16.3 added
Actions

Also available in: Atom PDF