REDHAT-BUG-2547760: High severity Foreman Foreman vulnerability

Published Oct 8, 2026
·
Updated

A flaw was found in Foreman. The remediation for CVE-2026-96659 restricted only the web UI TemplatesController#preview action to edit/create privileges. The REST API endpoint GET /api/v2/hosts/:id/template/:kind remains authorized by the low-privilege viewhosts permission and still renders the host's provisioning template in host scope. An authenticated Viewer can therefore obtain sensitive values rendered by provisioning templates, including the host root password via the rootpass helper, in the HTTP 200 JSON response.

Reported via PSIRTSUPT-25114. Credit: Sun Kimsroul (@SunKimsroul). Related: CVE-2026-96659 (UI preview path fixed; this flaw covers the remaining API host-template sink).

Affected Software

1 affected component
Foreman Foreman

Event History

Oct 8, 2026
Data Sourced
via Red Hat·02:39 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who can exploit this issue?

An authenticated Foreman user with the low-privilege view_hosts permission can exploit it. The issue affects users who can request the REST API host-template endpoint, even if they do not have edit or create privileges.

2

What access and request are needed to retrieve sensitive template values?

The attacker needs an authenticated session and a target host ID and template kind. They can send a GET request to /api/v2/hosts/:id/template/:kind; the endpoint may return rendered provisioning-template content in an HTTP 200 JSON response.

3

What sensitive information may be exposed?

Provisioning templates are rendered in the target host's scope, so any sensitive values rendered by those templates can be disclosed. This includes the host root password when the template uses the root_pass helper.

4

Does the earlier fix for CVE-2026-96659 address this API exposure?

No. The remediation for CVE-2026-96659 restricted the web UI TemplatesController#preview action, but this issue concerns the remaining REST API host-template endpoint.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203