{"id":"CVE-2026-48010","aliases":["CVE-2026-48010","GHSA-v39m-97p8-gqg7"],"related":[],"kind":"vulnerability","state":"published","title":"Shopware: Privilege escalation: non-admin user with user:create ACL can create admin accounts","summary":"Shopware is an open commerce platform. Prior to 6.6.10.18 and 6.7.10.1, UserController::upsertUser() in src/Core/Framework/Api/Controller/UserController.php writes raw user data in SYSTEM_SCOPE without filtering the admin field, so a non-admin API user with user:create or user:update ACL permission can set admin: true on new or existing users; IntegrationController::upsertIntegration() contains an isAdmin() check for the same field, but UserController was missing this check. This issue is fixed in versions 6.6.10.18 and 6.7.10.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Shopware is an open commerce platform. Prior to 6.6.10.18 and 6.7.10.1, UserController::upsertUser() in src/Core/Framework/Api/Controller/UserController.php writes raw user data in SYSTEM_SCOPE without filtering the admin field, so a non-admin API user with user:create or user:update ACL permission can set admin: true on new or existing users; IntegrationController::upsertIntegration() contains an isAdmin() check for the same field, but UserController was missing this check. This issue is fixed in versions 6.6.10.18 and 6.7.10.1.","source":"cvelist"},{"lang":"en","text":"`UserController::upsertUser()` writes user data in `SYSTEM_SCOPE` and does not filter the `admin` field. A non-admin API user with `user:create` or `user:update` ACL permission can set `admin: true` on new or existing users, escalating to full admin access.\n\n## The Problem\n\nIn `src/Core/Framework/Api/Controller/UserController.php`, line 210-234:\n\n```php\npublic function upsertUser(?string $userId, Request $request, Context $context, ResponseFactoryInterface $factory): Response\n{\n    $data = $request->request->all(); // raw request data, no field filtering\n    // ...\n    $events = $context->scope(Context::SYSTEM_SCOPE, fn (Context $context) =>\n        $this->userRepository->upsert([$data], $context)\n    );\n}\n```\n\n`SYSTEM_SCOPE` bypasses `AclWriteValidator` entirely (line 52 of `AclWriteValidator::preValidate()` returns early for `SYSTEM_SCOPE`). The `admin` boolean field is accepted without restriction.\n\nCompare with `IntegrationController::upsertIntegration()` in the same codebase, which correctly checks:\n\n```php\nif ((!$source instanceof AdminApiSource)\n    || (!$source->isAdmin()\n    && isset($data['admin']))\n) {\n    throw new PermissionDeniedException();\n}\n```\n\n`UserController` is missing this exact check.\n\n## Impact\n\nAny API user with the low-privilege `user:create` permission can create accounts with full admin access, or with `user:update` can promote any existing user to admin. This is a direct privilege escalation.\n\n## Suggested Fix\n\nAdd the same `isAdmin()` check from `IntegrationController`:\n\n```php\n$source = $context->getSource();\nif ((!$source instanceof AdminApiSource) || (!$source->isAdmin() && isset($data['admin']))) {\n    throw new PermissionDeniedException();\n}\n```\n\nBest regards,\nKeyvan Hardani","format":"markdown","source":"ghsa"}],"published":"2026-06-04T19:28:29.000Z","modified":"2026-09-10T03:51:09.567Z","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-269"],"affected":[{"ranges":[{"version":"< 6.6.10.18","status":"affected"},{"version":">= 6.7.0.0, < 6.7.10.1","status":"affected"}],"vendor":"shopware","product":"shopware","source":"cvelist"},{"ranges":[{"version":"< 6.6.10.18","status":"affected"},{"version":">= 6.7.0.0, < 6.7.10.1","status":"affected"}],"vendor":"shopware","product":"platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"6.7.0.0","status":"affected","fixed":"6.7.10.1"}],"ecosystem":"Packagist","package":"shopware/platform","purl":"pkg:composer/shopware/platform","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.6.10.18"}],"ecosystem":"Packagist","package":"shopware/platform","purl":"pkg:composer/shopware/platform","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.7.0.0","status":"affected","fixed":"6.7.10.1"}],"ecosystem":"Packagist","package":"shopware/core","purl":"pkg:composer/shopware/core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"6.6.10.18"}],"ecosystem":"Packagist","package":"shopware/core","purl":"pkg:composer/shopware/core","source":"ghsa"}],"references":[{"url":"https://github.com/shopware/shopware/security/advisories/GHSA-v39m-97p8-gqg7","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/shopware/shopware/commit/7f1cef324ca4edfa6369264cc1c41287d032624d","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/shopware/shopware/commit/d8d9a34a9255abf69c2798015a17cd6a80b08c25","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/shopware/shopware/releases/tag/v6.6.10.18","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/shopware/shopware/releases/tag/v6.7.10.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/shopware/shopware","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-07-17T21:09:22.885Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48010","url":"https://www.cve.org/CVERecord?id=CVE-2026-48010","licence":"CVE Terms of Use","modified":"2026-07-17T23:15:41.762Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v39m-97p8-gqg7","url":"https://github.com/advisories/GHSA-v39m-97p8-gqg7","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:09.567Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48010","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48010","licence":"Public domain","modified":"2026-07-18T00:16:48.220Z"}],"updatedAt":"2026-11-25T22:59:28.504Z","epss":{"score":0.00264,"percentile":0.1955,"date":"2026-12-02T12:00:21.000Z"}}