8.8High

CVE-2026-86322Foreman: authorization flaw in the foreman::controller::useraware#find_user handling used by api::v2::personalaccesstokenscontroller

Red Hat Red Hat Satellite 6.16 for RHEL 8; Red Hat Red Hat Satellite 6.16 for RHEL 9; Red Hat Red Hat Satellite 6.17 for RHEL 9; Red Hat Red Hat Satellite 6.18… Published: (yesterday)

Description

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.

Weakness (CWE): CWE-639

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Red Hat Red Hat Satellite 6.16 for RHEL 8 all versions
Red Hat Red Hat Satellite 6.16 for RHEL 9 all versions
Red Hat Red Hat Satellite 6.17 for RHEL 9 all versions
Red Hat Red Hat Satellite 6.18 for RHEL 9 all versions
Red Hat Red Hat Satellite 6.19 for RHEL 9 all versions
satellite 6.16 —
satellite 6.17 —
satellite 6.18 —
satellite 6.19 —
satellite capsule 6.16 —
satellite capsule 6.17 —
satellite capsule 6.18 —
satellite capsule 6.19 —
satellite maintenance 6.17 —
satellite maintenance 6.18 —
satellite utils 6.16 —
satellite utils 6.17 —
satellite utils 6.18 —
satellite utils 6.19 —

References and patches