CVE-2026-86322
CVE-2026-86322
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.
Vulnerability class: IDOR (Insecure Direct Object Reference)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.004, 37.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Weakness classification (CWE)
References
- access.redhat.com/security/cve/CVE-2026-86322 (vdb-entry)
- bugzilla.redhat.com/show_bug.cgi (issue-tracking)
- access.redhat.com/errata/RHSA-2026:99949 (vendor-advisory)
- access.redhat.com/errata/RHSA-2026:99950 (vendor-advisory)
- access.redhat.com/errata/RHSA-2026:99952 (vendor-advisory)
- access.redhat.com/errata/RHSA-2026:100120 (vendor-advisory)