8.0high
Forman: foreman: remote code execution via command injection in websocket proxy
- Severity
- 8.0high CVSS:3.1 by redhat
- Exploit likelihood
- 2.15% (higher than 82% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- redhat
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| foreman | from 1.2.0 before 3.16.3, from 3.17.0 before 3.17.2, from 3.18.0 before 3.18.1 Not affected: from 0:3.12.0.14-1.el8sat before *, from 0:3.12.0.14-1.el9sat before *, from 0:3.14.0.14-1.el9sat before *, from 0:3.16.0.12-1.el9sat before * | CVE List |
| libcomps | Not specified Not affected: from 0:0.1.23-0.3.el9pc before * | CVE List |
| python-brotli | Not specified Not affected: from 0:1.2.0-0.1.el9pc before * | CVE List |
| python-django | Not specified Not affected: from 0:4.2.28-0.1.el9pc before * | CVE List |
| python-pulp-container | Not specified Not affected: from 0:2.22.3-1.el9pc before * | CVE List |
| python-pulp-rpm | Not specified Not affected: from 0:3.27.10-2.el9pc before * | CVE List |
| rubygem-fog-kubevirt | Not specified Not affected: from 0:1.5.1-1.el9sat before * | CVE List |
| rubygem-foreman_kubevirt | Not specified Not affected: from 0:0.4.3-1.el9sat before * | CVE List |
| rubygem-katello | Not specified Not affected: from 0:4.16.0.14-1.el9sat before * | CVE List |
| rubygem-rubyipmi | Not specified Not affected: from 0:0.13.0-1.el9sat before * | CVE List |
| satellite | Not specified Not affected: from 0:6.17.7-1.el9sat before * | CVE List |
| yggdrasil-worker-forwarder | Not specified Not affected: from 0:0.0.3-4.el9sat before * | CVE List |
| satellite-utils:el8/foreman | Not specified | CVE List |
| redhat satellite | from 6.16 before 6.16.7, from 6.17 before 6.17.7, from 6.18 before 6.18.4, 6.0 | NVD |
| theforeman foreman | before 3.16.3, from 3.17.0 before 3.17.2, from 3.18.0 before 3.18.1 | NVD |
All scores
| redhat | 8.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| redhat-SADP | 8.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| NVD | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
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.
NVD (es)
Se encontró un fallo en Foreman. Un atacante remoto podría explotar una vulnerabilidad de inyección de comandos en la implementación del proxy WebSocket de Foreman. Esta vulnerabilidad surge del uso por parte del sistema de valores de nombre de host no saneados de proveedores de recursos de cómputo al construir comandos de shell. Al operar un servidor de recursos de cómputo malicioso, un atacante podría lograr la ejecución remota de código en el servidor de Foreman cuando un usuario accede a la funcionalidad de la consola VNC de una VM. Esto podría llevar al compromiso de credenciales sensibles y de toda la infraestructura gestionada.
References
| https://access.redhat.com/errata/RHSA-2026:5968 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:5970 | vendor-advisory | |
| https://access.redhat.com/errata/RHSA-2026:5971 | vendor-advisory | |
| https://access.redhat.com/security/cve/CVE-2026-1961 | vdb-entry, vendor-advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2437036 | exploit, issue-tracking, vendor-advisory | |
| http://www.openwall.com/lists/oss-security/2026/03/27/3 | mailing-list, third-party-advisory | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-1961.json | vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-1961 changed 2026-11-26 | CVE Terms of Use |
| NVD | CVE-2026-1961 changed 2026-11-26 | Public domain |