<Vulnerability name="CVE-2026-81658">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Moderate</ThreatSeverity>
    <PublicDate>2026-08-27T00:00:00</PublicDate>
    <Bugzilla id="2524899" url="https://bugzilla.redhat.com/show_bug.cgi?id=2524899" xml:lang="en:us">
foreman: Cross-tenant disclosure of template revisions via unauthorized audit lookup
    </Bugzilla>
    <CVSS3 status="draft">
        <CVSS3BaseScore>6.5</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-639</CWE>
    <Details xml:lang="en:us" source="Mitre">
A flaw was found in Foreman. The template revision endpoint does not enforce object-level authorization when retrieving an audited template revision. An authenticated, low privileged user with a template-related permission, such as view_ptables, can obtain historical template contents belonging to another organization or location by supplying the corresponding audit ID. This can result in unauthorized disclosure of historical template contents, which may contain sensitive configuration information, credentials, or other secrets. The REST API revision endpoints correctly restrict this lookup.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in Foreman. The template revision endpoint does not enforce object-level authorization when retrieving an audited template revision. An authenticated, low privileged user with a template-related permission, such as view_ptables, can obtain historical template contents belonging to another organization or location by supplying the corresponding audit ID. This can result in unauthorized disclosure of historical template contents, which may contain sensitive configuration information, credentials, or other secrets. The REST API revision endpoints correctly restrict this lookup.
    </Details>
    <Statement xml:lang="en:us">
Red Hat Product Security has rated this flaw as having a Moderate impact. 

This vulnerability affects Foreman's template revision handling. The vulnerability permits an authenticated, low-privileged user with limited template permissions to bypass organization and location authorization boundaries and access historical template revisions outside their authorized scope. The exposed information consists of the contents of the audited template revision and may include sensitive configuration information, credentials, or other secrets stored in templates.

This issue requires network access to the Foreman web interface and a valid account with a template-related permission such as view_ptables. No special attack conditions and no user interaction are required. The confidentiality impact is High because a successful request returns the full historical template body, which can include credentials or other secrets.

```
This behavior has been present in the UI revision handling since the introduction of STI templates.

The REST API revision endpoints are not affected; they already resolve audit records through an authorization-aware scope. 

```
    </Statement>
    <Acknowledgement xml:lang="en:us">
Red Hat would like to thank Arpit Jain, Independent Security Researcher (Github: arpitjain099) for reporting this issue.
    </Acknowledgement>
    <Mitigation xml:lang="en:us">
Red Hat is not aware of a practical temporary workaround that fully mitigates this issue or meets Red Hat Product Security's standards for usability, deployment, applicability, or stability. Customers are advised to apply the relevant security updates when they become available.
    </Mitigation>
    <PackageState cpe="cpe:/a:redhat:satellite:6">
        <ProductName>Red Hat Satellite 6</ProductName>
        <FixState>Affected</FixState>
        <PackageName>foreman</PackageName>
    </PackageState>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-81658
https://nvd.nist.gov/vuln/detail/CVE-2026-81658
    </References>
</Vulnerability>