GitHub Advisory Database
GHSA-52fw-7fw2-fmv5
Snipe-IT Vulnerable to Privilege Escalation for self via API Permissions Assignment
Details
Impact
A user with only users.edit AND api permissions can send a PATCH to /api/v1/users/{their_own_id} and grant themselves any permission except admin and superuser — for example assets.view, assets.create, reports.view, import, etc.
Patches
Patched in https://github.com/grokability/snipe-it/pull/19024
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | snipe/snipe-it | All versions before 8.6.0 (fixed in 8.6.0) |