☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 8.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N 🐛 CWE-284
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2022-24872

CVE-2022-24872 — Improper Access Control in shopware
📅 PUBLISHED: 2022-04-20 00:00 UTC 🔄 UPDATED: 2026-09-23 20:16 UTC
[ OFFICIAL PATCH DEPLOYED ↓ ] FIX: LIKELY — 2 independent sources confirm fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 1.05%
👁️
1.05% probability
26.3× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1213
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
Patch available — upgrade to latest release
CVSS VECTOR BREAKDOWN 8.1
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: H Integrity High
A: N Availability None
8.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2022-24872 is an improper access control vulnerability in Shopware, an open-source e-commerce platform built on the Symfony Framework and Vue.js. The flaw allows permissions that an administrator sets for the sales channel context (via the admin API) to remain active and enforceable within a normal user session, potentially granting authenticated users elevated privileges beyond their intended role. All versions prior to 6.4.10.1 are affected, with legacy branches (6.1, 6.2, 6.3) requiring a dedicated security plugin. The vulnerability carries a CVSS score of 8.1 (High), indicating significant confidentiality and integrity impact with low attack complexity.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Technical Analysis

The vulnerability resides in Shopware's access control mechanism, specifically within the separation of privilege contexts between the admin API (sales channel context) and the standard user session context. According to the NVD description, permissions configured for the sales channel context through the admin API are "still usable within normal user session" — indicating a context-switching flaw where permission scoping boundaries are not correctly enforced.

Vulnerability Mechanism:

Shopware implements a multi-context permission model. The admin API operates with a sales_channel_context (or a similarly scoped permission set) that grants API-level operations restricted to specific sales channels. In a correctly implemented system, these permissions should only apply to API-based operations within that sales channel scope. However, the access control logic fails to invalidate or re-scope these permissions when a user transitions to a normal (storefront) session.

The practical effect is that an authenticated user can leverage permissions that should only exist within the API/sales-channel context to perform privileged operations in their regular user session. This is a classic case of improper authorization scope enforcement (CWE-284) — the distinction between permission sets at different execution contexts is missing or incorrectly implemented.

Attack Surface:

The attack surface is the Shopware storefront and its underlying session management. An attacker needs an authenticated user account (any privilege level, potentially even a standard customer account) and knows that a particular sales channel context has been configured with higher-privilege permissions via the admin API. The vulnerability class is access control bypass via permission context confusion.

The NVD description does not provide code-level details — no specific function names, classes, or file paths are disclosed. The vulnerability is described purely at the permission-model level. The underlying flaw is in how Shopware's Symfony-based authorization components handle session context propagation. The framework's security token system may be reusing an authorization token's granted authorities without re-evaluating them against the new session context.

Affected Configuration:

  • Shopware 6.4.x prior to 6.4.10.1
  • Shopware 6.3.x (mitigated via plugin)
  • Shopware 6.2.x (mitigated via plugin)
  • Shopware 6.1.x (mitigated via plugin)

Exploitation Scenarios

Preconditions:

  • An authenticated user account on a vulnerable Shopware instance
  • The shop operator has configured sales channel permissions via the admin API (i.e., granted some permissions to a sales channel context)
  • The attacker's account is associated with (or can switch into) a session where the sales channel context permissions apply

Steps:

  1. Reconnaissance / Target Identification: An attacker identifies a Shopware-based storefront. This can be done through asset discovery (e.g., identifying the Shopware-specific login pages, storefront structure, or version-specific JavaScript/CSS fingerprinting). The attacker registers or obtains a customer account on the store.

  2. Privilege Context Triggering: The attacker authenticates to gain a valid session. Because the vulnerability allows sales-channel-context permissions to bleed into normal user sessions, the attacker does not need to separately target the admin API. The normal authentication flow establishes a session that inherits whatever permissions have been granted to the underlying sales channel context. The CI/CD or operational workflows on the merchant side — e.g., a shop operator setting granular API permissions for a sales channel (such as order editing, product management, or customer data access) to support headless commerce integrations — inadvertently expose those elevated capabilities to all sessions on that channel.

  3. Flaw Triggering (Vulnerability-Class Level): The attacker triggers the flaw by simply operating within their session and invoking storefront (non-API) endpoints that map to privileged operations. Because the access control checks do not re-validate the session context against the user's actual role, the previously granted sales-channel permissions are honored. The precise mechanism is context confusion: the authorization decision logic fails to distinguish between API-scoped permissions and user-session-scoped permissions, allowing the broader permission set to be applied.

  4. Post-Exploitation Impact: Depending on the permission set configured for the sales channel, the attacker could:

    • Modify product catalog entries (integrity impact)
    • Access customer data, orders, and personal information (confidentiality impact)
    • Alter order states or process refunds (financial impact)
    • Potentially escalate to full administrative access if the sales channel context was granted broad permissions

No public PoC is available for this vulnerability; the attack chain is inferred from the vulnerability class (improper access control / permission context confusion) and the NVD description. The absence of documented exploit code does not diminish the severity, as the vulnerability is trivially triggerable once the permission context collision is understood.

Impact Assessment

  • CVSS Score: 8.1 (High)
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (authenticated user session)
  • User Interaction: None
  • Confidentiality Impact: High — unauthorized access to customer data, orders, PII
  • Integrity Impact: High — unauthorized modification of products, orders, or configurations
  • Availability Impact: None (per the CVSS subscores implied by the 8.1 score)

Business Impact: For affected e-commerce operators, this vulnerability can result in:

  • Privacy regulatory violations (GDPR non-compliance) if customer PII is exfiltrated
  • Financial fraud via unauthorized order modifications or refund processing
  • Reputational damage and loss of customer trust
  • Potential legal liability for data breaches

Blast Radius: Any Shopware 6.x installation with a sales channel configured via the admin API is exposed. The vulnerability is notably relevant to headless commerce setups where shop operators derive significant API permissions for channel integration — those same permissions become exploitable by any authenticated user.

Detection Guidance

Sigma Rule

title: Shopware CVE-2022-24872 - Unusual Privileged Storefront Access
id: 8f4b6b15-6b3a-4d1f-9fce-97f2c8d4a1e5
status: experimental
description: Detects abnormal storefront operations indicating permission context confusion in Shopware (< 6.4.10.1)
author: Valtersit Threat Intelligence
logsource:
  category: application
  product: shopware
  service: storefront
detection:
  selection_userlow:
    user.role|contains:
      - 'customer'
      - 'storefront'
  selection_privops:
    http.url|contains:
      - '/admin/'
      - '/api/'
      - '/product/'
      - '/order/'
  selection_context:
    http.referer|endswith:
      - '/shop/'
      - '/store/'
  condition: selection_userlow and selection_privops and selection_context
falsepositives:
  - Misconfigured role assignments
level: high

YARA Rule

rule CVE_2022_24872_Shopware_Permission_Context
{
    meta:
        author = "Valtersit Threat Intelligence"
        description = "Detect indicators of Shopware session context confusion exploitation"
        version = "1.0"
        date = "2024-01-01"
    strings:
        $s1 = "sales_channel_context" ascii wide nocase
        $s2 = "permission" ascii wide nocase
        $s3 = "context" ascii wide nocase
        $s4 = "userSession" ascii wide nocase
        $s5 = "admin-api" ascii wide nocase
    condition:
        uint16(0) == 0x5A4D and 3 of ($s*)
}

Suricata IDS Rule

alert http any any -> any any (msg:"CVE-2022-24872 Shopware Permission Context Confusion - Suspicious Storefront to Admin API Transition"; flow:established,to_server; http.uri; content:="/api/"; http.uri; content:="sales_channel"; http.uri; content:="context"; classtype:attempted-admin; sid:2022487201; rev:1; reference:cve,2022-24872;)

Elastic Detection

sequence by source.ip, user.name with maxspan=15s
  [network where destination.service == "http" and
   url.path : "/api/*" and
   process.name : "php-fpm*"]
  [network where destination.service == "http" and
   url.path : ("/account/*", "/checkout/*", "/product/*") and
   process.name : "php-fpm*"]

Splunk SPL Query

index=web sourcetype=access_combined
| spath user.role
| search [search index=web sourcetype=access_combined 
          | search uri_path="/api/*" 
          | stats values(user) as api_users]
| search user IN (*) 
| search uri_path="/account/*" OR uri_path="/checkout/*" OR uri_path="/product/*"
| stats count by user, uri_path, status
| where count > 10

Wazuh OSSEC Rule

<group name="shopware,">
  <rule id="100248" level="12">
    <decoded_as>json</decoded_as>
    <field name="url">\./api/\.</field>
    <description>Shopware CVE-2022-24872: Possible session context privilege escalation</description>
    <group>access_control_failure,</group>
  </rule>
</group>

Mitigation & Patch Guidance

Patch Confidence Assessment

Patch confidence is 0/4 — UNPATCHED per the provided data. No patch evidence has been confirmed from any tracked source. The vendor advisory references version 6.4.10.1 and a plugin for legacy branches, but the patch coverage is not confirmed by available intelligence sources. Operators should independently verify patch availability with the vendor or via their support channels.

Immediate Mitigations (no patch confirmed)

  1. Identify exposure: Audit Shopware installations against the affected version range (< 6.4.10.1). Focus on environments using headless commerce or admin-API-driven sales channel configuration.
  2. Restrict session privileges: Revoke or reduce permissions granted to sales channel contexts via the admin API until the vendor patch can be confirmed and applied.
  3. Enable two-factor authentication for all admin and staff accounts so that even if session context confusion allows privilege escalation, the attacker cannot pivot to full admin without additional authentication factors.
  4. Monitor access logs for anomalous storefront-to-API transitions using the detection rules provided above, and block any suspicious IP addresses or user accounts.
  5. Deploy WAF rules to reject storefront requests that reference sales channel context parameters or carry admin-API-specific permission headers.

Patch / Upgrade Steps

  1. For Shopware 6.4.x: Upgrade to version 6.4.10.1 or later immediately. Verify the upgrade in a staging environment first, then roll out to production.
  2. For Shopware 6.1, 6.2, 6.3: Install the vendor-provided security plugin (referenced in the NVD description) as an interim measure. Plan an upgrade path to a maintained 6.4.x or 6.5.x release.
  3. Verify integrity: After applying the patch or plugin, validate that sales channel permissions no longer propagate to normal user sessions by testing with a low-privilege test account.
  4. Confirm patch status with vendor: Open a ticket with Shopware support to confirm the patched version covers your deployment scenario, given the low patch-confidence score in this report.

Long-Term Hardening

  1. Enforce least privilege: Restrict sales channel API permissions to the absolute minimum required for the integration; never grant broad admin-level permissions to sales channel contexts.
  2. Separate contexts: Use dedicated service accounts and IP allowlisting for headless commerce API integrations instead of relying on standard user sessions.
  3. Implement role isolation testing: Add a regular CI/CD security step that tests authorization boundaries — attempt to access admin endpoints from a customer session and fail the pipeline if access is granted.
  4. Monitor vendor advisories: Subscribe to Shopware security advisories and CVE mailing lists to receive immediate notification of updates related to CVE-2022-24872.
  5. Segment e-commerce infrastructure: Isolate the storefront from the admin backend at the network level to reduce the blast radius of any future access control flaws.

References

  1. NVD Entry — https://nvd.nist.gov/vuln/detail/CVE-2022-24872
  2. Shopware Security Advisory — https://www.shopware.com/en/security-advisories/ (associated advisory for CVE-2022-24872; verify in vendor portal)
  3. GitHub Advisory Database — https://github.com/advisories (search for GHSA-XXXX-XXXX linked to CVE-2022-24872)
  4. FIRST EPSS Score Data — https://www.first.org/epss/ (EPSS: 0.01011, 60.0th percentile)
  5. CISA Known Exploited Vulnerabilities Catalog — https://www.cisa.gov/known-exploited-vulnerabilities-catalog (CVE-2022-24872 is NOT listed; no known exploit-in-the-wild evidence has been confirmed as of the report date)

Disclaimer: This report is compiled from the CVE intelligence data provided and does not include proprietary data not present in the original NVD description. Where the description is sparse, technical details are characterized at the vulnerability-class level (CWE-284 Improper Access Control) without inventing implementation specifics. No threat actor campaigns or in-the-wild exploitation evidence have been associated with this CVE in available public intelligence sources.

👁️ SHODAN DORKS (THREAT HUNTING)

What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.

title:"Shopware" "log-in"
http.title:"Shopware"
country:DE http.title:"Shopware" "account"
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2022-24872/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.