A flaw was found in Foreman. This vulnerability allows an authenticated remote attacker with low-level read permissions to achieve arbitrary code execution on the underlying server. By manipulating the permitted methods list within the template rendering engine, an attacker can bypass the safemode sandbox isolation and execute unauthorized commands directly on the host system.
Fix
Patch, vendor advisory and mitigation references on NVD 7
- https://access.redhat.com/errata/RHSA-2026:74503 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74504 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74505 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74506 Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-96658 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2534185 Issue Tracking, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2026/10/07/2 Mailing List, Patch, Third Party Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 4
- StatusAnalyzed → ModifiedNVD modified 2026-10-18 07:16
- DescriptionNVD modified 2026-10-18 07:16
A flaw was found in Foreman. An authenticated attacker with low-level permissions can achieve remote code execution (RCE) by bypassing the safemode sandbox within the templating engine. Due to improper handling of delegated methods, an attacker can append unauthorized functions to the allowed execution list, enabling them to run arbitrary commands on the hosting server.A flaw was found in Foreman. This vulnerability allows an authenticated remote attacker with low-level read permissions to achieve arbitrary code execution on the underlying server. By manipulating the permitted methods list within the template rendering engine, an attacker can bypass the safemode sandbox isolation and execute unauthorized commands directly on the host system. - CVSS9.9 (v3.1, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) → 8.8 (v3.1, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)NVD modified 2026-10-18 07:16
- First seenCVSS 9.9 · redhat, theforemanNVD modified 2026-10-16 13:41
Affected (CPE criteria) 5
cpe:2.3:a:redhat:satellite:*:*:*:*:*:*:*:*cpe:2.3:a:theforeman:foreman:*:*:*:*:*:*:*:*cpe:2.3:a:theforeman:foreman:3.19.0:*:*:*:*:*:*:*cpe:2.3:a:theforeman:foreman:3.19.1:*:*:*:*:*:*:*cpe:2.3:a:theforeman:foreman:5.0.0:*:*:*:*:*:*:*
References 7
- https://access.redhat.com/errata/RHSA-2026:74503 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74504 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74505 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2026:74506 Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-96658 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2534185 Issue Tracking, Vendor Advisory
- http://www.openwall.com/lists/oss-security/2026/10/07/2 Mailing List, Patch, Third Party Advisory