CVE-2026-48010: Shopware: Privilege escalation: non-admin user with user:create ACL can create admin accounts
UserController::upsertUser() writes user data in SYSTEMSCOPE 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.
Published Jun 4, 2026
Affected packages
shopware/platform
- Ecosystem
- Composer (PHP)
- Affected
- >= 6.7.0.0, < 6.7.10.1
- Fixed in
- 6.7.10.1
- Check
composer show shopware/platform
shopware/platform
- Ecosystem
- Composer (PHP)
- Affected
- < 6.6.10.18
- Fixed in
- 6.6.10.18
- Check
composer show shopware/platform
shopware/core
- Ecosystem
- Composer (PHP)
- Affected
- >= 6.7.0.0, < 6.7.10.1
- Fixed in
- 6.7.10.1
- Check
composer show shopware/core
shopware/core
- Ecosystem
- Composer (PHP)
- Affected
- < 6.6.10.18
- Fixed in
- 6.6.10.18
- Check
composer show shopware/core
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
The Problem
In src/Core/Framework/Api/Controller/UserController.php, line 210-234:
public function upsertUser(?string $userId, Request $request, Context $context, ResponseFactoryInterface $factory): Response
{
$data = $request->request->all(); // raw request data, no field filtering
// ...
$events = $context->scope(Context::SYSTEM_SCOPE, fn (Context $context) =>
$this->userRepository->upsert([$data], $context)
);
}SYSTEM_SCOPE bypasses AclWriteValidator entirely (line 52 of AclWriteValidator::preValidate() returns early for SYSTEM_SCOPE). The admin boolean field is accepted without restriction.
Compare with IntegrationController::upsertIntegration() in the same codebase, which correctly checks:
if ((!$source instanceof AdminApiSource)
|| (!$source->isAdmin()
&& isset($data['admin']))
) {
throw new PermissionDeniedException();
}UserController is missing this exact check.
Impact
Any 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.
Suggested Fix
Add the same isAdmin() check from IntegrationController:
$source = $context->getSource();
if ((!$source instanceof AdminApiSource) || (!$source->isAdmin() && isset($data['admin']))) {
throw new PermissionDeniedException();
}Best regards, Keyvan Hardani
Credited to Keyvanhardani.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-48008
Shopware: Privilege Escalation via Sync API Integration Admin Flag Bypass
medium6.5Jun 4, 2026CVE-2026-48009
Shopware: Admin Account Takeover via User Recovery Hash Exposure
medium6.8Jun 4, 2026CVE-2026-48011
Shopware: Timing-attack on admin panel allowing enumeration of administrator usernames
low3.7Jun 4, 2026CVE-2026-48012
Shopware SSO referer trust leading to an arbitrary redirect target
medium4.3Jun 4, 2026CVE-2026-48013
Shopware: SSRF in Media External-Link Endpoint Bypasses IP Validation
medium4.1Jun 4, 2026CVE-2026-48014
Shopware: Admin API ACL Bypass in Order State Transition Endpoints
medium6.5Jun 4, 2026
