{"id":"CVE-2026-48008","aliases":["CVE-2026-48008","GHSA-gv8p-48fr-4fxg"],"related":[],"kind":"vulnerability","state":"published","title":"Shopware: Privilege Escalation via Sync API Integration Admin Flag Bypass","summary":"Shopware is an open commerce platform. Prior to 6.6.10.18 and 6.7.10.1, a non-admin API user with integration:create ACL privilege can escalate to full administrator by creating an integration with admin: true through the Sync API POST /api/_action/sync; the regular integration endpoint POST /api/integration blocks this, but SyncController::sync() routes writes through SyncService to EntityWriter::upsert(), and src/Core/Framework/Integration/IntegrationDefinition.php lacks WriteProtection on the admin field. 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, a non-admin API user with integration:create ACL privilege can escalate to full administrator by creating an integration with admin: true through the Sync API POST /api/_action/sync; the regular integration endpoint POST /api/integration blocks this, but SyncController::sync() routes writes through SyncService to EntityWriter::upsert(), and src/Core/Framework/Integration/IntegrationDefinition.php lacks WriteProtection on the admin field. This issue is fixed in versions 6.6.10.18 and 6.7.10.1.","source":"cvelist"},{"lang":"en","text":"## Summary\n\nA non-admin API user with `integration:create` ACL privilege can escalate to full administrator by creating an integration with `admin: true` through the Sync API (`POST /api/_action/sync`). The regular integration endpoint (`POST /api/integration`) correctly blocks this, but the Sync API bypasses the controller-level check by writing directly through the DAL EntityWriter. The `integration` entity definition lacks `WriteProtection`, and the `admin` field has no field-level restriction flag.\n\n**OWASP:** A01:2021 — Broken Access Control\n\n## Root Cause\n\n`IntegrationController::upsertIntegration()` checks `$source->isAdmin()` before allowing the `admin` field to be set. However, `SyncController::sync()` routes writes through `SyncService → EntityWriter`, which only applies:\n\n1. `AclWriteValidator` — checks entity-level ACL (`integration:create` is sufficient)\n2. `EntityProtectionValidator` — checks `WriteProtection` on entity definitions, but `IntegrationDefinition` has none\n\nThe `admin` field in `IntegrationDefinition` is a plain `BoolField` with no `WriteProtection` or special flag. The Sync API writes it without restriction.\n\n**Vulnerable code path:**\n- `src/Core/Framework/Api/Controller/SyncController.php` → `SyncService` → `EntityWriter::upsert()`\n- **Missing protection:** `src/Core/Framework/Integration/IntegrationDefinition.php` — `admin` field has no `WriteProtection(Context::SYSTEM_SCOPE)`\n\n**Working protection (bypassed):**\n- `src/Core/Framework/Integration/IntegrationController.php:46-56` — `isAdmin()` check only applies to the dedicated controller endpoint\n\n## Impact\n\n- **Complete admin API access** — the escalated integration has full read/write on every entity: users, customers, orders, system configuration, integrations, plugins\n- **PII exfiltration** — read all customer records (names, emails, addresses, order history)\n- **Persistent backdoor** — the admin integration survives password changes and user deactivation\n\n## Remediation\n\nAdd `WriteProtection(Context::SYSTEM_SCOPE)` to `IntegrationDefinition`, matching how `UserDefinition` and `AclRoleDefinition` are already protected:\n\n```php\n// src/Core/Framework/Integration/IntegrationDefinition.php\n(new BoolField('admin', 'admin'))\n    ->addFlags(new WriteProtection(Context::SYSTEM_SCOPE)),\n```","format":"markdown","source":"ghsa"}],"published":"2026-06-04T19:23:33.000Z","modified":"2026-09-10T03:51:08.823Z","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"],"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-gv8p-48fr-4fxg","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/shopware/shopware/commit/1e047f6d7fd9129271e28c1c9f1c272983c6f48f","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/shopware/shopware/commit/db5adff33ec30b648979cd1938c87f164f7b3073","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-17T19:47:42.338Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48008","url":"https://www.cve.org/CVERecord?id=CVE-2026-48008","licence":"CVE Terms of Use","modified":"2026-07-17T19:47:56.823Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gv8p-48fr-4fxg","url":"https://github.com/advisories/GHSA-gv8p-48fr-4fxg","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:08.823Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48008","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48008","licence":"Public domain","modified":"2026-07-17T20:17:19.337Z"}],"updatedAt":"2026-11-25T22:59:28.503Z","epss":{"score":0.00472,"percentile":0.33032,"date":"2026-11-30T12:00:22.000Z"}}