Skip to main content

Shopware CVE-2026-48013

| EUVDEUVD-2026-48378 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-06-04 https://github.com/shopware/shopware GHSA-gq96-5pfx-f4vc
4.1
CVSS 3.1 · Vendor: https://github.com/shopware/shopware
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as Shopware admin
  2. Delivery
    POST to /api/_action/media/external-link with internal IP URL
  3. Exploit
    Server issues HEAD request bypassing IP validation
  4. Execution
    Read content-length from API response or media database
  5. Impact
    Redirect via attacker-controlled server to enumerate further internal hosts

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires an authenticated session with Shopware admin-level privileges (CVSS PR:H), meaning the attacker must either hold or have compromised valid admin credentials. The affected endpoint /api/_action/media/external-link must be reachable over the network (AV:N). The vulnerability is present in all Shopware deployments running shopware/core or shopware/platform at versions >= 6.7.0.0 and < 6.7.10.1 - no non-default configuration or specific feature flag is required beyond the standard media management functionality being enabled (which is on by default). Exploitation impact is limited to HTTP HEAD requests only; full GET-based content exfiltration is not possible through this path. The redirect-based escalation vector additionally requires the attacker to control an externally accessible HTTP server capable of issuing 3xx redirects to internal addresses.

Impact

The CVSS 3.1 base score of 4.1 (Medium) reflects the constrained real-world impact: AV:N/AC:L indicates remote exploitation over the network with low complexity, but PR:H means only users with high-privilege (admin-level) access can trigger the vulnerability. The S:C (Scope Changed) component is notable - the vulnerable Shopware application can affect internal systems beyond its own trust boundary, such as cloud metadata services (169.254.169.254) or segmented internal hosts. The C:L/I:N/A:N vector confirms impact is limited to information disclosure with no write or availability impact. No EPSS data was provided in the source intelligence. The vulnerability is not listed in the CISA KEV catalog, and no public exploit code has been identified, indicating no confirmed mass exploitation or opportunistic use at time of analysis. The practical risk is highest in cloud-hosted deployments (AWS, GCP, Azure) where IMDS endpoints are reachable from the application layer, or in multi-tenant environments where admin credentials could be shared or compromised. The admin authentication requirement substantially limits exploitability in most deployments, but the redirect-following behavior of Symfony HttpClient represents an escalation path that could undermine network-level controls intended to block direct internal access.

Exploit ScenarioDerived

An attacker with compromised or legitimately held Shopware admin credentials sends a POST request to /api/_action/media/external-link with the url parameter set to http://169.254.169.254/latest/meta-data/ on a cloud-hosted instance. The server issues a HEAD request to the IMDS endpoint, and the returned content-length value is stored in the Shopware media database and returned in the API response, confirming IMDS reachability and leaking size metadata. The attacker can then redirect subsequent requests through a controlled external server to probe internal services on 10.x.x.x or 172.16.x.x ranges, differentiating open versus closed ports by response timing and error type.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 04, 2026

Server-side request forgery in Shopware's media subsystem allows authenticated admin users to make arbitrary HTTP HEAD requests to internal network addresses and cloud metadata endpoints via the /api/_action/media/external-link endpoint. The root cause is an inconsistency between two URL-handling flows in MediaUploadService: the uploadFromURL flow correctly validates resolved IPs against private/reserved ranges, while the linkURL flow only checks that the URL begins with http:// or https://. Exploiting this, an admin can probe cloud metadata services, enumerate internal ports, and leak content-length values from internal services; no public exploit has been identified at time of analysis, and a vendor-released patch exists in version 6.7.10.1.

RemediationAI

Upgrade shopware/core and shopware/platform to version 6.7.10.1 or later, which aligns the external-link endpoint's URL validation with the existing upload-from-url flow by applying FileUrlValidator to the linkURL code path. The static MediaUploadService::validateExternalUrl() method is deprecated in this release in favor of the new assertValidExternalUrl() method; see UPGRADE-6.8.md for migration details. The vendor release is available at https://github.com/shopware/shopware/releases/tag/v6.7.10.1 and the advisory is at https://github.com/shopware/shopware/security/advisories/GHSA-gq96-5pfx-f4vc. If immediate patching is not possible, a compensating control is to restrict access to the /api/_action/media/external-link endpoint at the web server or API gateway level for all but trusted admin IP ranges, reducing the network attack surface despite the PR:H requirement. Additionally, consider configuring the Symfony HttpClient instance used in this flow with max_redirects: 0 to prevent redirect-based SSRF bypasses, at the trade-off of breaking any legitimate media linking workflows that rely on URL redirects.

Affected VersionsENISA

shopware 6.7.0.0, < 6.7.10.1
platform < 6.6.10.18
platform 6.7.0.0, < 6.7.10.1
shopware < 6.6.10.18

Affected Packages

composer shopware/core fix: 6.7.10.1
composer shopware/platform fix: 6.7.10.1
euvd platform fix: 6.6.10.18, 6.7.10.1
euvd shopware fix: 6.6.10.18, 6.7.10.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Shopware is a PHP-based e-commerce platform built on Symfony. The affected packages are composer/shopware/core and composer/shopware/platform (CPE: pkg:composer/shopware_core, pkg:composer/shopware_platform). The vulnerability is classified as CWE-918 (Server-Side Request Forgery). The root cause is a missing security control: MediaUploadV2Controller::externalLink() (MediaUploadV2Controller.php:66) accepts a url parameter and routes it through MediaUploadService::linkURL() (MediaUploadService.php:134), which calls validateExternalUrl() - a static method that only applies a regex check for http:// or https:// prefixes. The sibling flow uploadFromURL uses FileFetcher::fetchFromURL(), which delegates to FileUrlValidator::isValid(), resolving the hostname via gethostbyname() and filtering against private/reserved IP ranges using filter_var() with FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE. This protection layer is entirely absent from the linkURL code path. Additionally, Symfony HttpClient follows up to 20 redirects by default, meaning an attacker-controlled external server can redirect HEAD requests to arbitrary internal destinations, bypassing hostname-level controls.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/shopware/shopware) PRIMARY 4.1 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N

Primary rating from Vendor (https://github.com/shopware/shopware) · only source for this CVE.

CVSS VectorVendor: https://github.com/shopware/shopware

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
None

DescriptionCVE.org

Summary

The /api/_action/media/external-link endpoint allows authenticated admin users to make server-side HTTP HEAD requests to arbitrary internal IP addresses. While the parallel uploadFromURL flow validates target IPs against private/reserved ranges via FileUrlValidator, the linkURL flow only performs a URL format check (regex for http:// or https:// prefix), allowing SSRF to internal network services and cloud metadata endpoints.

Details

The vulnerability is an inconsistency between two URL-handling flows in MediaUploadService.

Vulnerable path (external-link):

MediaUploadV2Controller::externalLink() at src/Core/Content/Media/Api/MediaUploadV2Controller.php:66 takes a user-supplied url parameter and passes it to MediaUploadService::linkURL() at src/Core/Content/Media/Upload/MediaUploadService.php:134.

linkURL() calls getContentSizeFromValidExternalUrl($url) at line 159, which only validates via validateExternalUrl():

php
// src/Core/Content/Media/Upload/MediaUploadService.php:207-212
public static function validateExternalUrl(string $url): void
{
    if (!preg_match('/^https?:\/\/.+/', $url)) {
        throw MediaException::invalidUrl($url);
    }
}

Then makes a server-side HEAD request with no IP filtering:

php
// src/Core/Content/Media/Upload/MediaUploadService.php:292-300
private function getContentSizeFromValidExternalUrl(string $url): int
{
    $this->validateExternalUrl($url);

    $headers = $this->httpClient->request('HEAD', $url)->getHeaders();
    if (!\array_key_exists('content-length', $headers)) {
        throw MediaException::fileNotFound($url);
    }

    return (int) $headers['content-length'][0];
}

Protected path (upload_by_url):

In contrast, uploadFromURL uses FileFetcher::fetchFromURL() which calls FileUrlValidator::isValid():

php
// src/Core/Content/Media/File/FileFetcher.php:64
if ($this->enableUrlValidation && !$this->fileUrlValidator->isValid($url)) {
    throw MediaException::illegalUrl($url);
}

FileUrlValidator::isValid() resolves the hostname via gethostbyname() and validates the IP against private and reserved ranges using filter_var() with FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE. This protection is entirely absent from the linkURL flow.

Impact

An authenticated admin user can:

  1. Probe cloud metadata services - HEAD requests to 169.254.169.254 reveal whether cloud metadata endpoints exist and leak content-length values
  2. Scan internal networks - Differentiate open/closed/filtered ports on internal hosts (10.x, 172.16.x, 192.168.x) based on response timing and error types
  3. Leak internal service information - The fileSize field stored in the database reflects the content-length header from internal services
  4. Redirect-based escalation - Symfony HttpClient follows redirects by default (max_redirects=20), allowing an attacker-controlled external server to redirect the HEAD request to arbitrary internal destinations

Impact is limited to information disclosure via HEAD requests. The admin authentication requirement (PR:H) reduces exploitability, but in multi-tenant or compromised-credential scenarios this allows network reconnaissance from the server's perspective.

Recommended Fix

Apply FileUrlValidator to the linkURL flow, consistent with the uploadFromURL flow. In MediaUploadService:

php
// src/Core/Content/Media/Upload/MediaUploadService.php

// Add constructor dependency:
private readonly FileUrlValidatorInterface $fileUrlValidator;

// In getContentSizeFromValidExternalUrl(), add IP validation:
private function getContentSizeFromValidExternalUrl(string $url): int
{
    $this->validateExternalUrl($url);

    if (!$this->fileUrlValidator->isValid($url)) {
        throw MediaException::illegalUrl($url);
    }

    $headers = $this->httpClient->request('HEAD', $url)->getHeaders();
    if (!\array_key_exists('content-length', $headers)) {
        throw MediaException::fileNotFound($url);
    }

    return (int) $headers['content-length'][0];
}

Additionally, consider setting max_redirects: 0 on the HttpClient request to prevent redirect-based SSRF bypasses.

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +20
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy