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

- Severity: High 8.8 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2026-11-12T20:19:29.433Z
- Modified: 2026-11-26T15:17:42.067Z
- Weaknesses: CWE-639
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- foreman: no versions given (not affected: from 0:3.12.0.26-1.el8sat before *; from 0:3.12.0.26-1.el9sat before *; from 0:3.14.0.26-1.el9sat before *; from 0:3.16.0.29-1.el9sat before *; from 0:3.18.0.19-1.el9sat before *)

## References

- <https://access.redhat.com/errata/RHSA-2026:100120> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:99949> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:99950> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:99952> (vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-86322> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2529289> (issue-tracking)

## Sources

- CVE List: [CVE-2026-86322](https://www.cve.org/CVERecord?id=CVE-2026-86322), CVE Terms of Use, modified 2026-11-26
- NVD: [CVE-2026-86322](https://nvd.nist.gov/vuln/detail/CVE-2026-86322), Public domain, modified 2026-11-26

---

Page: https://cve.day/CVE-2026-86322 · Whole record: https://cve.day/CVE-2026-86322.json · Rebuilt by cve.day 2026-11-26T15:32:15.717Z
