Skip to navigation

Threat reportVulnerabilityTL-2026-2874

Red Hat Satellite Foreman template preview authorization flaw (CVE-2026-96659) enables root password theft and code execution

criticalPATCHED

An authorization weakness (CWE-267) in Foreman template preview endpoints, used by Red Hat Satellite 6.16, 6.18 and 6.19, lets a low-privileged Viewer-role user with network access read admin-only data such as host root passwords, and potentially execute code as the foreman service account when Safemode protections are disabled.

Key facts

IdentifiersTL-2026-2874, CVE-2026-96659, CVE-2026-96658, CVE-2023-0118
SeverityCRITICAL
CVSS9.1 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L)
EPSSCVE-2023-0118: 1.3% (71.3th percentile); CVE-2026-96658: 0.7% (52.5th percentile); CVE-2026-96659: 0.3% (24.0th percentile)
Affected productsRed Hat Red Hat Satellite; Foreman Project Foreman
Weaknesses (CWE)CWE-267
ToolsForeman Safemode
MITRE ATT&CK techniquesT1005 Data from Local System, T1059.004 Unix Shell, T1078 Valid Accounts, T1190 Exploit Public-Facing Application, T1212 Exploitation for Credential Access, T1552 Unsecured Credentials
MotivationUNKNOWN
Target sectorstechnology, government administration, finance, telecoms, health
Target regionsGlobal
Detection rules9 (1 shown free)
Sources10 cited sources

Detection coverage

As of 2026-10-03, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-2874 across Splunk SPL, Microsoft KQL and Sigma, covering 7 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: Foreman Template Preview by Non-Admin User — CVE-2026-96659 Exploitation

Correlates each Foreman production.log request id to the acting user and flags template preview requests (provisioning/report template preview endpoints) issued by any account not in the admin allow-list. CVE-2026-96659 lets a Viewer-role user abuse these endpoints to read admin-only data such as host root passwords. No exploitation or public PoC is reported yet, so this is a hunt/alert lead based on the vendor description.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1190, T1078, T1212
  • Data sources: foreman:production (/var/log/foreman/production.log), splunk lookup satellite_admin_users.csv
  • Severity: high
  • Confidence: medium

Splunk SPL

index=linux sourcetype="foreman:production" source="*/foreman/production.log" earliest=-24h
```CVE-2026-96659: template preview requests from non-admin Foreman users```
| rex field=_raw "\[\w\|\w+\|(?<req_id>[0-9a-f]{8})\]"
| where isnotnull(req_id)
| rex field=_raw "Started (?<http_method>[A-Z]+) \x22(?<uri_path>[^\x22?]+)[^\x22]*\x22 for (?<src_ip>[0-9a-fA-F.:]+)"
| rex field=_raw "Current user set to (?<foreman_user>\S+)"
| stats values(uri_path) as uri_path values(http_method) as http_method values(src_ip) as src_ip values(foreman_user) as foreman_user min(_time) as first_seen by host req_id
| where match(mvjoin(uri_path, " "), "(?i)template[^ ]*preview")
| eval foreman_user=coalesce(mvindex(foreman_user, 0), "unknown")
| lookup satellite_admin_users.csv foreman_user OUTPUT is_admin
| where isnull(is_admin)
| convert ctime(first_seen)
| table first_seen host req_id foreman_user src_ip http_method uri_path

Microsoft KQL

let SatelliteAdminUsers = dynamic(["admin"]); // extend with every account holding an admin-equivalent role
ForemanProduction_CL
| where TimeGenerated > ago(24h)
| extend req_id = extract(@'\[\w\|\w+\|([0-9a-f]{8})\]', 1, RawData)
| where isnotempty(req_id)
| extend uri_path = extract(@'Started [A-Z]+ "([^"?]+)', 1, RawData),
         src_ip = extract(@'for ([0-9a-fA-F.:]+) at', 1, RawData),
         foreman_user = extract(@'Current user set to (\S+)', 1, RawData)
| summarize uri_path = take_anyif(uri_path, isnotempty(uri_path)),
            src_ip = take_anyif(src_ip, isnotempty(src_ip)),
            foreman_user = take_anyif(foreman_user, isnotempty(foreman_user)),
            FirstSeen = min(TimeGenerated) by req_id
| where uri_path matches regex @'(?i)template[^ ]*preview'
| where isempty(foreman_user) or foreman_user !in~ (SatelliteAdminUsers)
| project FirstSeen, req_id, foreman_user, src_ip, uri_path

Sigma

title: Foreman Template Preview Requested (CVE-2026-96659)
id: 7c1e5a42-93b8-4f0d-b6a1-2d8e4c9f1a37
status: experimental
description: Detects requests to Foreman / Red Hat Satellite template preview endpoints in the Foreman production log. CVE-2026-96659 lets a Viewer-role user abuse these endpoints to read admin-only data such as host root passwords. Triage by checking whether the acting user holds only the Viewer role.
references:
    - https://access.redhat.com/security/cve/CVE-2026-96659
    - https://nvd.nist.gov/vuln/detail/CVE-2026-96659
author: Threadlinqs Team
date: 2026-10-03
tags:
    - attack.initial-access
    - attack.t1190
    - attack.t1078
    - attack.credential-access
    - attack.t1212
    - cve.2026-96659
logsource:
    product: foreman
    service: production
detection:
    kw_request:
        - 'Started POST'
        - 'Started GET'
    kw_endpoint:
        - '/provisioning_templates/preview'
        - '/report_templates/preview'
        - '/template/preview'
        - '/templates/preview'
    condition: kw_request and kw_endpoint
falsepositives:
    - Administrators and template authors previewing templates
level: medium

Known false positives:

  • Legitimate template authors and provisioning operators previewing templates under non-admin custom roles
  • Automation service accounts that render templates through the API

Tuning notes: Populate satellite_admin_users.csv (columns foreman_user,is_admin) with accounts allowed to preview templates; the exact preview URL differs by Satellite version, so confirm the regex against your own production.log. The 'Current user set to' line may only appear at debug log level — raise the log level if foreman_user is empty. In KQL the table name ForemanProduction_CL assumes an AMA custom text log with a RawData column; rename to match your ingestion.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple)
  • Burst of Successful Template Preview Requests from One Client — Root Password Harvesting · unlock with TL Creds
  • foreman Account Reading Satellite Secrets or Dumping the Foreman Database · unlock with TL Creds
  • Foreman-Account Shell or Transfer Tool Connecting to Public Internet · unlock with TL Creds
  • Foreman Template Parameters with Safemode Sandbox-Escape Primitives — CVE-2026-96658 · unlock with TL Creds
  • foreman Account Running Download Tools or Reverse-Shell Constructs · unlock with TL Creds
  • foreman Account Launching SSH Client as root — Lateral Movement to Managed Hosts · unlock with TL Creds
  • Foreman Web Process Spawning a Shell — Post-Exploitation Code Execution as foreman · unlock with TL Creds
  • Root Password SSH Logon from Satellite Server to Managed Host — Stolen Root Credential Use · unlock with TL Creds

Indicators of compromise

As of 2026-10-03, Threadlinqs Intelligence tracks 7 indicators of compromise for TL-2026-2874.

7 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

A related Safemode sandbox bypass leading to RCE is tracked as CVE-2026-96658 (CVSS 9.9). Patches were released and the flaw disclosed on 2026-10-01; no active exploitation or public PoC is reported.

CVE-2026-96659 is a flaw in Foreman, the provisioning and lifecycle component embedded in Red Hat Satellite. Red Hat describes it as excessive permissions granted to Viewer-role users on certain API endpoints, notably the template preview endpoint (/template/preview). An authenticated user holding only the low-privileged Viewer role can submit crafted requests to the template preview functionality and retrieve data that should be admin-only, including host root passwords. The weakness is classified as CWE-267 (Privilege Defined With Unsafe Actions; NVD labels it Improper Privilege Management). Red Hat scores it CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:L = 9.1 (Red Hat product security rating: Important; NVD: Critical). Exploitation needs network access to the Satellite web/API interface and a valid Viewer account; no user interaction is required.

If Safemode protections for Foreman templates are disabled or bypassed, the same exposure can escalate to arbitrary command execution as the foreman system account. The Safemode bypass is tracked separately as CVE-2026-96658: an authenticated low-privileged attacker can achieve remote code execution by bypassing the safemode sandbox in the Foreman templating engine through improper handling of delegated methods (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H = 9.9, Red Hat Bugzilla 2534185). The Foreman templating sandbox has a history of such bypasses (for example CVE-2023-0118, an admin-user safe-mode bypass to OS code execution), so the two CVEs should be treated as a chained risk: credential disclosure plus a code-execution path on the provisioning server.

Impact is high because Satellite manages patching, provisioning and configuration for large RHEL fleets; exposed root passwords of managed hosts and code execution as the foreman account on the Satellite server can support lateral movement across the managed estate. Red Hat reported the issue on 2026-09-17 and shipped fixes on 2026-10-01. Fixed Foreman 3.12.0.23-1 is delivered via Satellite 6.16.14 (RHSA-2026:74506, RHEL 8 and 9); Satellite 6.18 is covered by RHSA-2026:74504 and 6.19 by RHSA-2026:74503 (RHEL 9). Red Hat's Bugzilla entry also lists Satellite 6.17 with RHSA-2026:74505, and NVD references all four advisories. The sources do not report in-the-wild exploitation, a public proof of concept, CISA KEV listing, attribution, or network IOCs. Recommended mitigations: apply the errata immediately, remove unnecessary Viewer-role accounts, verify Safemode remains enabled, and monitor template preview requests for abuse.

MITRE ATT&CK techniques by tactic:

Collection

T1005 Data from Local System

Execution

T1059.004 Unix Shell

Initial Access

T1078 Valid Accounts; T1190 Exploit Public-Facing Application

Credential Access

T1212 Exploitation for Credential Access; T1552 Unsecured Credentials

Remediation

Patches

  • Foreman 3.12.0.23-1 via Satellite 6.16.14 (RHEL 8 and RHEL 9)
  • Satellite 6.18 on RHEL 9: RHSA-2026:74504
  • Satellite 6.19 on RHEL 9: RHSA-2026:74503

Immediate actions

  • Apply Red Hat Satellite security errata RHSA-2026:74506 (6.16.14), RHSA-2026:74504 (6.18) and RHSA-2026:74503 (6.19) / RHSA-2026:74505 (6.17)
  • Review and remove unnecessary Viewer-role account access on Satellite
  • Verify Foreman Safemode protection remains enabled
  • Rotate host root passwords that may have been exposed through template preview

Workarounds

  • No dedicated workaround published; Red Hat advises upgrading to a fixed version or contacting Red Hat support

Longer-term hardening

  • Restrict network access to the Satellite web UI and API to management networks
  • Monitor and alert on template preview requests by low-privileged users
  • Apply least-privilege role design for Foreman/Satellite users

Affected and fixed versions

  • Red Hat — Red Hat Satellite
    Vulnerable versions: 6.16 (RHEL 8, RHEL 9); 6.17 (RHEL 9, per Red Hat Bugzilla); 6.18 (RHEL 9); 6.19 (RHEL 9)
    Fixed in: 6.16.14 (Foreman 3.12.0.23-1); RHSA-2026:74504 (6.18); RHSA-2026:74503 (6.19); RHSA-2026:74505 (6.17)
  • Foreman Project — Foreman
    Vulnerable versions: Foreman builds shipped before 3.12.0.23 in Satellite 6.16
    Fixed in: 3.12.0.23-1

Timeline

  • Earlier Foreman template safe-mode bypass CVE-2023-0118 (admin-level arbitrary code execution through templates) establishes the sandbox as a recurring weak point
  • Excessive Viewer-role permissions on Foreman template preview endpoints reported to Red Hat (Bugzilla 2536844)
  • CVE-2026-96659 (CVSS 9.1) and related Safemode bypass CVE-2026-96658 (CVSS 9.9) publicly disclosed and published to NVD
  • Red Hat releases Satellite errata RHSA-2026:74503, 74504, 74505 and 74506, including Satellite 6.16.14 with Foreman 3.12.0.23-1
  • Cyber Security News reports the flaw enabling root password theft and code execution on Red Hat Satellite
  • No in-the-wild exploitation, public PoC or CISA KEV listing reported in the reviewed sources

Sources cited

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 10 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats