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

State
Published
Severity
8.8 High
Published
Nov 12, 2026
Updated
Nov 26, 2026
Reserved
Sep 7, 2026

Read the record on cve.org

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.

ProductVersions
Red Hat Satellite 6.16 for RHEL 8 Red Hat0:3.12.0.26-1.el8sat and later Not Affected
Red Hat Satellite 6.16 for RHEL 8 Red Hat0:3.12.0.26-1.el8sat and later Not Affected
Red Hat Satellite 6.16 for RHEL 8 Red Hat0:3.12.0.26-1.el8sat and later Not Affected
Red Hat Satellite 6.16 for RHEL 9 Red Hat0:3.12.0.26-1.el9sat and later Not Affected
Red Hat Satellite 6.16 for RHEL 9 Red Hat0:3.12.0.26-1.el9sat and later Not Affected
Red Hat Satellite 6.16 for RHEL 9 Red Hat0:3.12.0.26-1.el9sat and later Not Affected
Red Hat Satellite 6.17 for RHEL 9 Red Hat0:3.14.0.26-1.el9sat and later Not Affected
Red Hat Satellite 6.17 for RHEL 9 Red Hat0:3.14.0.26-1.el9sat and later Not Affected
Red Hat Satellite 6.17 for RHEL 9 Red Hat0:3.14.0.26-1.el9sat and later Not Affected
Red Hat Satellite 6.18 for RHEL 9 Red Hat0:3.16.0.29-1.el9sat and later Not Affected
Red Hat Satellite 6.18 for RHEL 9 Red Hat0:3.16.0.29-1.el9sat and later Not Affected
Red Hat Satellite 6.18 for RHEL 9 Red Hat0:3.16.0.29-1.el9sat and later Not Affected
Red Hat Satellite 6.19 for RHEL 9 Red Hat0:3.18.0.19-1.el9sat and later Not Affected
Red Hat Satellite 6.19 for RHEL 9 Red Hat0:3.18.0.19-1.el9sat and later Not Affected
Red Hat Satellite 6.19 for RHEL 9 Red Hat0:3.18.0.19-1.el9sat and later Not Affected

Weaknesses

  • CWE-639 Authorization Bypass Through User-Controlled Key

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.