{"id":"CVE-2026-49976","aliases":["CVE-2026-49976","GHSA-p68w-rgmg-3c2v"],"related":[],"kind":"vulnerability","state":"published","title":"Snipe-IT: User Account Escalation via CSV Import","summary":"Snipe-IT is an IT asset/license management system. Prior to 8.6.1, a user with the import permission can use CSV update mode to overwrite the email address of a non-admin user and then request a password reset to take over that account. app/Importer/UserImporter.php applies the canEditAuthFields gate by unsetting username, email, password, and activated on the model, but app/Importer/ItemImporter.php sanitizeItemForUpdating() rebuilds the update array from the raw CSV row in $this->item, restoring the unauthorized values. The app/Http/Controllers/ImportController.php import path checks import permission but does not require users.edit. This issue is fixed in version 8.6.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Snipe-IT is an IT asset/license management system. Prior to 8.6.1, a user with the import permission can use CSV update mode to overwrite the email address of a non-admin user and then request a password reset to take over that account. app/Importer/UserImporter.php applies the canEditAuthFields gate by unsetting username, email, password, and activated on the model, but app/Importer/ItemImporter.php sanitizeItemForUpdating() rebuilds the update array from the raw CSV row in $this->item, restoring the unauthorized values. The app/Http/Controllers/ImportController.php import path checks import permission but does not require users.edit. This issue is fixed in version 8.6.1.","source":"cvelist"},{"lang":"en","text":"### 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","format":"markdown","source":"ghsa"}],"published":"2026-06-23T23:02:03.000Z","modified":"2026-09-30T12:59:56.690Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-862","CWE-863"],"affected":[{"ranges":[{"version":"< 8.6.1","status":"affected"}],"vendor":"grokability","product":"snipe-it","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"8.6.0"}],"ecosystem":"Packagist","package":"snipe/snipe-it","purl":"pkg:composer/snipe/snipe-it","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"8.6.1"}],"vendor":"snipeitapp","product":"snipe-it","cpe":"cpe:2.3:a:snipeitapp:snipe-it:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/grokability/snipe-it/security/advisories/GHSA-p68w-rgmg-3c2v","tags":["exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/grokability/snipe-it/pull/19072","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/grokability/snipe-it/commit/dd4117bd5be59766c22767717ec403dfdece1e19","tags":["patch","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/grokability/snipe-it/releases/tag/v8.6.1","tags":["patch","release-notes","x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/grokability/snipe-it","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-19T19:18:28.417Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-49976","url":"https://www.cve.org/CVERecord?id=CVE-2026-49976","licence":"CVE Terms of Use","modified":"2026-08-19T19:18:33.675Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p68w-rgmg-3c2v","url":"https://github.com/advisories/GHSA-p68w-rgmg-3c2v","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:09.230Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-49976","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49976","licence":"Public domain","modified":"2026-09-30T12:59:56.690Z"}],"updatedAt":"2026-11-25T22:59:34.024Z","epss":{"score":0.00348,"percentile":0.30426,"date":"2026-12-01T12:00:22.000Z"}}