# CVE-2026-96658: Foreman sandbox escape via delegated methods in templating engine

Source: https://junglewise.ai/threats/cve-2026-96658-a-flaw-was-found-in-foreman-an-authenticated-attacker-with-low  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-01. Updated: 2026-10-05  
License: CC BY 4.0 with a link back

CVE-2026-96658 · Severity: critical · CVSS 9.9 · Published 2026-10-01

Foreman is a system provisioning and configuration management platform used to automate deployment and maintenance of enterprise infrastructure. An authenticated attacker with low-level permissions can escape the templating engine's security sandbox by manipulating delegated method handling, allowing them to execute arbitrary commands directly on the Foreman server. This enables complete compromise of the infrastructure management system and potentially all systems it manages.

Technologies: [Red Hat Foreman](https://junglewise.ai/threats/technologies/red-hat-foreman). Vendors: [Red Hat](https://junglewise.ai/threats/vendors/red-hat).

## Quick answers

**Is CVE-2026-96658 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-96658 being exploited in the wild.

**How severe is CVE-2026-96658?** Critical severity, with a CVSS score of 9.9, published 1 October 2026.

**Which products and versions are affected?** Red Hat Foreman.

**Is there a fix for CVE-2026-96658?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-96658 attacked?** It is attacked over the network, in a hosted service.

**Am I affected by CVE-2026-96658?** Check whether you run Red Hat Foreman. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

The vulnerability exists in Foreman's templating engine, which uses a safemode sandbox to restrict code execution. Due to improper handling of delegated methods, an authenticated attacker can append unauthorized functions to the allowed execution list, bypassing sandbox restrictions. This allows arbitrary remote code execution on the hosting server with the privileges of the Foreman process.

## Affected products

- Red Hat Foreman

## Timeline

- 2026-10-01: disclosed

## References

- [https://access.redhat.com/downloads/content/package-browser/](https://access.redhat.com/downloads/content/package-browser/)
- [https://access.redhat.com/errata/RHSA-2026:74503](https://access.redhat.com/errata/RHSA-2026:74503)

## Related threats

- [Foreman authorization bypass in personal access token creation](https://junglewise.ai/threats/cve-2026-86322-a-flaw-was-found-in-foreman-s-api-v2)
- [Foreman incorrect authorization in network interface API](https://junglewise.ai/threats/cve-2026-107203-an-incorrect-authorization-flaw-has-been-found-in-network)
- [Foreman permission filter authorization bypass](https://junglewise.ai/threats/cve-2026-107193-a-flaw-has-been-found-in-permission-filters-in-the-foreman)
- [Foreman foreman-tail command injection via eval](https://junglewise.ai/threats/cve-2026-12542-a-flaw-was-found-in-foreman-the-foreman-tail-utility-is)
- [Foreman template preview SSTI and credential disclosure](https://junglewise.ai/threats/cve-2026-96659-a-flaw-was-found-in-foreman-this-vulnerability-allows-an)
