{"schemaVersion":4,"id":"CVE-2026-86322","aliases":[],"status":"published","duplicateOf":null,"title":"Foreman: authorization flaw in the foreman::controller::useraware#find_user handling used by api::v2::personalaccesstokenscontroller","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.","dates":{"published":"2026-11-12T20:19:29.433Z","modified":"2026-11-26T15:08:36.878Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00452,"percentile":0.40964,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-13T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00564,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00564,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00564,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00564,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00564,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00564,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00452,"percentile":0.40964}],"last30":[{"date":"2026-11-13T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00427,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00564,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00564,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00564,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00564,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00564,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00564,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00452,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00452,"percentile":0.40964}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key","description":"The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/639.html"}],"affected":[],"affectedCount":0,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-86322","label":"access.redhat.com/security/cve/CVE-2026-86322","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2529289","label":"bugzilla.redhat.com/show_bug.cgi?id=2529289","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:99949","label":"access.redhat.com/errata/RHSA-2026:99949","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:99950","label":"access.redhat.com/errata/RHSA-2026:99950","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:99952","label":"access.redhat.com/errata/RHSA-2026:99952","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:100120","label":"access.redhat.com/errata/RHSA-2026:100120","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT"]}],"lineage":{"upstream":[],"downstream":["RHSA-2026:100120","RHSA-2026:99949","RHSA-2026:99950","RHSA-2026:99952"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-12T20:19:29.433Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-26T15:08:36.878Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence; check the vendor advisory for affected versions","rank":[0,0,0,0,0,88],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00452,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-26T15:08:36.878Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-26T15:08:36.878Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-13T19:24:04.760Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00452,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T04:02:19.840Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T04:02:20.356Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T04:02:20.556Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T04:00:57.992Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T04:02:18.199Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T04:02:17.270Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T04:41:28.697Z","stale":false,"partial":false}}