CVE-2026-96658: Foreman: Safemode bypass leading to RCE (fixed in 3.19.2, 5.0.1)
Foreman Safemode bypass lets a low-privilege template user execute Ruby as the Foreman service.
Foreman patched CVE-2026-96658, a Safemode bypass that can lead to remote code execution. A low-privilege user who is permitted to render supplied template content can evade Safemode restrictions and execute Ruby with Foreman service privileges. The issue affects Foreman releases that bundle Safemode before 2.0.1. Fixes are in Foreman 3.19.2 and 5.0.1; the advisory does not report observed exploitation.
- Users allowed to render templates can bypass Safemode.
- Bypass reaches Ruby code execution as the Foreman service.
- Affects Foreman builds bundling Safemode before 2.0.1.
- Fixed in Foreman 3.19.2 and 5.0.1; no in-the-wild exploitation reported.
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-96658 | Authenticated safemode bypass RCE in Foreman | 8.8 | — |
From the original article
Posted by Ondrej Gajdusek on Oct 06 Hi, A security fix has been released in Foreman, an open-source lifecycle management tool for physical and virtual servers. CVE-2026-96658: Foreman: Safemode bypass leading to RCE A low-privilege user permitted to render supplied template content can bypass Foreman's Safemode restrictions and reach Ruby code execution with Foreman service privileges.
seclists.org
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.