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

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence; check the vendor advisory for affected versions
- Status: published
- Published: 2026-11-12 · Modified: 2026-11-26
- Record: https://cvemate.com/vulnerability/CVE-2026-86322 · JSON: https://cvemate.com/vulnerability/CVE-2026-86322/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.452%, percentile 40.964%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## References

- <https://access.redhat.com/security/cve/CVE-2026-86322>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2529289>
- <https://access.redhat.com/errata/RHSA-2026:99949>
- <https://access.redhat.com/errata/RHSA-2026:99950>
- <https://access.redhat.com/errata/RHSA-2026:99952>
- <https://access.redhat.com/errata/RHSA-2026:100120>

---

Data as of 2026-12-05T04:41:28.697Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
