<Vulnerability name="CVE-2026-86322">
    <DocumentDistribution xml:lang="en">Copyright © 2012 Red Hat, Inc. All rights reserved.</DocumentDistribution>
    <ThreatSeverity>Important</ThreatSeverity>
    <PublicDate>2026-11-12T18:48:00</PublicDate>
    <Bugzilla id="2529289" url="https://bugzilla.redhat.com/show_bug.cgi?id=2529289" xml:lang="en:us">
foreman: authorization flaw in the Foreman::Controller::UserAware#find_user handling used by Api::V2::PersonalAccessTokensController
    </Bugzilla>
    <CVSS3 status="verified">
        <CVSS3BaseScore>8.8</CVSS3BaseScore>
        <CVSS3ScoringVector>CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H</CVSS3ScoringVector>
    </CVSS3>
    <CWE>CWE-639</CWE>
    <Details xml:lang="en:us" source="Mitre">
A flaw was found in Foreman’s Api::V2::PersonalAccessTokensController, where Foreman::Controller::UserAware#find_user resolves the target account using User.find(params[:user_id]) without applying the required parent-user authorization check. An attacker with the create_personal_access_tokens permission can therefore invoke POST /api/v2/users/:user_id/personal_access_tokens with another user’s ID and create a Personal Access Token on their behalf. The resulting plaintext token is returned in the API response, while PersonalAccessToken#check_permissions_after_save only validates create_personal_access_tokens on the token and does not enforce edit_users authorization on the target user. The attacker can then use the forged token to authenticate as the victim, potentially resulting in complete account takeover, including administrator accounts.
    </Details>
    <Details xml:lang="en:us" source="Red Hat">
A flaw was found in Foreman’s Api::V2::PersonalAccessTokensController, where Foreman::Controller::UserAware#find_user resolves the target account using User.find(params[:user_id]) without applying the required parent-user authorization check. An attacker with the create_personal_access_tokens permission can therefore invoke POST /api/v2/users/:user_id/personal_access_tokens with another user’s ID and create a Personal Access Token on their behalf. The resulting plaintext token is returned in the API response, while PersonalAccessToken#check_permissions_after_save only validates create_personal_access_tokens on the token and does not enforce edit_users authorization on the target user. The attacker can then use the forged token to authenticate as the victim, potentially resulting in complete account takeover, including administrator accounts.
    </Details>
    <Acknowledgement xml:lang="en:us">
This issue was discovered by Sandipan Roy (Red Hat).
    </Acknowledgement>
    <AffectedRelease cpe="cpe:/a:redhat:satellite_utils:6.16::el8">
        <ProductName>Red Hat Satellite 6.16 for RHEL 8</ProductName>
        <ReleaseDate>2026-11-12T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:99949">RHSA-2026:99949</Advisory>
        <Package name="foreman">foreman-0:3.12.0.26-1.el8sat</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:satellite_utils:6.16::el9">
        <ProductName>Red Hat Satellite 6.16 for RHEL 9</ProductName>
        <ReleaseDate>2026-11-12T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:99949">RHSA-2026:99949</Advisory>
        <Package name="foreman">foreman-0:3.12.0.26-1.el9sat</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:satellite_utils:6.17::el9">
        <ProductName>Red Hat Satellite 6.17 for RHEL 9</ProductName>
        <ReleaseDate>2026-11-12T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:99950">RHSA-2026:99950</Advisory>
        <Package name="foreman">foreman-0:3.14.0.26-1.el9sat</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:satellite_utils:6.18::el9">
        <ProductName>Red Hat Satellite 6.18 for RHEL 9</ProductName>
        <ReleaseDate>2026-11-12T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:99952">RHSA-2026:99952</Advisory>
        <Package name="foreman">foreman-0:3.16.0.29-1.el9sat</Package>
    </AffectedRelease>
    <AffectedRelease cpe="cpe:/a:redhat:satellite_utils:6.19::el9">
        <ProductName>Red Hat Satellite 6.19 for RHEL 9</ProductName>
        <ReleaseDate>2026-11-13T00:00:00Z</ReleaseDate>
        <Advisory type="RHSA" url="https://access.redhat.com/errata/RHSA-2026:100120">RHSA-2026:100120</Advisory>
        <Package name="foreman">foreman-0:3.18.0.19-1.el9sat</Package>
    </AffectedRelease>
    <References xml:lang="en:us">
https://www.cve.org/CVERecord?id=CVE-2026-86322
https://nvd.nist.gov/vuln/detail/CVE-2026-86322
    </References>
</Vulnerability>