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

DevFeed: [CVE-2026-86322 - Foreman: authorization flaw in the foreman::controller::useraware#find\_user handling used by api::v2::personalaccesstokenscontroller](<https://devfeed.tech/articles/cve-2026-86322-foreman-authorization-flaw-in-the-foreman-controller-useraware-find-user-handling-used-by-api-v2-personalaccesstokenscontroller-130960.md>)

Original publisher: [Read original article](<https://cvefeed.io/vuln/detail/CVE-2026-86322>)

Author: CVEFEED.io; redhat.com

Published: 2026-11-12T21:17:33Z

Content type: news

Language: en

Sources: [Latest High/Critical Vulnerabilitiy Feed](<https://devfeed.tech/sources/latest-high-critical-vulnerabilitiy-feed.md>)

Topics: [Authorization](<https://devfeed.tech/topics/authorization.md>), [personal access token](<https://devfeed.tech/topics/personal-access-token.md>), [account takeover](<https://devfeed.tech/topics/account-takeover.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [access-tokens](<https://devfeed.tech/tags/access-tokens.md>), [account](<https://devfeed.tech/tags/account.md>), [account-takeover](<https://devfeed.tech/tags/account-takeover.md>), [administrator](<https://devfeed.tech/tags/administrator.md>), [api](<https://devfeed.tech/tags/api.md>), [authorization](<https://devfeed.tech/tags/authorization.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-86322](<https://devfeed.tech/tags/cve-2026-86322.md>), [foreman](<https://devfeed.tech/tags/foreman.md>), [personal-access-token](<https://devfeed.tech/tags/personal-access-token.md>), [personal-access-tokens](<https://devfeed.tech/tags/personal-access-tokens.md>), [post](<https://devfeed.tech/tags/post.md>), [redhat](<https://devfeed.tech/tags/redhat.md>), [satellite](<https://devfeed.tech/tags/satellite.md>), [target](<https://devfeed.tech/tags/target.md>), [token](<https://devfeed.tech/tags/token.md>), [tokens](<https://devfeed.tech/tags/tokens.md>), [user](<https://devfeed.tech/tags/user.md>), [v2](<https://devfeed.tech/tags/v2.md>)

## AI overview

Foreman's personal access token API can let a user with the create_personal_access_tokens permission mint a token for another account. In POST /api/v2/users/:user_id/personal_access_tokens, find_user loads the requested user without checking the required parent-user authorization; the post-save check verifies token creation permission but not edit_users permission on that account. The plaintext token is returned in the response and can be used to authenticate as the victim, potentially taking over accounts, including administrator accounts. The supplied excerpt rates the flaw 8.8 (HIGH) but does not specify affected versions or a fix.

## Source excerpt

CVE ID :CVE-2026-86322 Published : Nov. 12, 2026, 9:17 p.m. | 52 minutes ago 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. Severity: 8.8 | HIGH Visit the link for more details, such as CVSS details, affected products, timeline, and more...