{"id":"CVE-2026-49976","aliases":["GHSA-p68w-rgmg-3c2v"],"url":"https://o3.security/vulnerability/CVE-2026-49976","summary":"Snipe-IT: User Account Escalation via CSV Import","details":"### Impact\nThe CSV user import in update mode bypasses user-edit authorization. A user with only the `import` permission can overwrite any non-admin user's email by uploading a CSV, then trigger a password reset to take over the account.\n\n`UserImporter.php` checks the `canEditAuthFields` gate and tries to strip auth fields from the model:\n\n```php\n// app/Importer/UserImporter.php:107-114\nif (Auth::check() && (! Gate::allows('canEditAuthFields', $user))) {\n    unset($user->username);\n    unset($user->email);\n    unset($user->password);\n    unset($user->activated);\n}\n$user->update($this->sanitizeItemForUpdating($user));\n```\n\nThe `unset()`s operate on the model, but `sanitizeItemForUpdating()` rebuilds its array from `$this->item` (the raw CSV row), not from the model:\n\n```php\n// app/Importer/ItemImporter.php:135-149\nprotected function sanitizeItemForStoring($model, $updating = false)\n{\n    $item = collect($this->item);                  // CSV data, not model attributes\n    $item = $item->only($model->getFillable());\n    if ($updating) {\n        $item = $item->reject(fn($v) => empty($v));\n    }\n    return $item->toArray();\n}\n```\n\nThe attacker's CSV values pass through untouched.\n\nFor non-admin attacker vs. non-admin, non-superuser target, the gate returns `true` at `AuthServiceProvider.php:137`, so the `unset()` block never executes. The entire import path checks only `$this->authorize('import')` (`ImportController.php:196`); no `users.edit` check anywhere. The normal API route `PATCH /api/v1/users/{id}` correctly returns 403 for the same user. \n\nAttacker must have import privileges to exploit this, and that permission must be granted specifically and intentionally by a superadmin.\n\n\n### Patches\nPatched in v8.6.0","published":"2026-08-19T18:11:48.501Z","modified":"2026-10-28T02:31:08.211277940Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N"},"epss":{"score":0.00337,"percentile":0.26771,"asOf":"2026-09-13"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Packagist","name":"snipe/snipe-it","fixedVersion":"8.6.0"}],"fix":{"url":"https://github.com/grokability/snipe-it/commit/dd4117bd5be59766c22767717ec403dfdece1e19","label":"grokability/snipe-it@dd4117b"},"references":[{"type":"WEB","url":"https://github.com/grokability/snipe-it/releases/tag/v8.6.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49976.json"},{"type":"ADVISORY","url":"https://github.com/grokability/snipe-it/security/advisories/GHSA-p68w-rgmg-3c2v"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49976"},{"type":"FIX","url":"https://github.com/grokability/snipe-it/commit/dd4117bd5be59766c22767717ec403dfdece1e19"},{"type":"FIX","url":"https://github.com/grokability/snipe-it/pull/19072"},{"type":"PACKAGE","url":"https://github.com/grokability/snipe-it"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:31:08.211277940Z"}}