CVE-2026-48009: Shopware: Admin Account Takeover via User Recovery Hash Exposure
Summary A low-privilege admin user with userrecovery:read ACL can take over any admin account. The attacker triggers password recovery for the victim (unauthenticated endpoint), reads the recovery hash from the Admin API search endpoint, then uses the hash to reset the victim's password (another unauthenticated endpoint).
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).
Summary
A low-privilege admin user with user_recovery:read ACL can take over any admin account. The attacker triggers password recovery for the victim (unauthenticated endpoint), reads the recovery hash from the Admin API search endpoint, then uses the hash to reset the victim's password (another unauthenticated endpoint). The recovery hash — intended to be secret and delivered only via email — is fully readable through the standard entity search API.
OWASP: A01:2021 — Broken Access Control
Root Cause
The user_recovery entity exposes its hash field through the Admin API search endpoint (POST /api/search/user-recovery). The hash field lacks ApiAware(false) or ReadProtection, so any user with user_recovery:read ACL can read it.
The password recovery flow assumes the hash is delivered exclusively via email. The Admin API provides an alternative channel to obtain it, breaking this assumption.
Three endpoints combine to form the attack:
POST /api/_action/user/user-recovery— triggers recovery, creates hash in DB (no auth required)POST /api/search/user-recovery— reads the hash (requires only `user_recovery:read` ACL)PATCH /api/_action/user/user-recovery/password— resets password using hash (no auth required)
Vulnerable code:
src/Core/System/User/Recovery/UserRecoveryDefinition.php—hashfield isApiAwarewith noReadProtection
Impact
- Full admin account takeover — attacker gains the highest privilege level in the system
- All admin capabilities — user/role management, system configuration, plugin management, customer data access
- Cascading compromise — taken-over admin account can be used to pivot to other attacks
- Low barrier —
user_recovery:readis a seemingly harmless permission that grants devastating access
Remediation
Remove the hash field from API responses:
// src/Core/System/User/Recovery/UserRecoveryDefinition.php
(new StringField('hash', 'hash'))
->addFlags(new Required(), new ApiAware(false)),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-48010
Shopware: Privilege escalation: non-admin user with user:create ACL can create admin accounts
medium6.5Jun 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
