PT-2026-146048
CVE-2026-86322
·
Published
2026-11-12
·
Updated
2026-11-12
Description by
CVSS 3.1
8.8
HighMetricsAV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
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.
Found an issue in the description? Have something to add? Feel free to write us 👾