Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as Shopware admin
-
DeliveryPOST to /api/_action/media/external-link with internal IP URL
-
ExploitServer issues HEAD request bypassing IP validation
-
ExecutionRead content-length from API response or media database
-
ImpactRedirect 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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():
// 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:
// 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():
// 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:
- Probe cloud metadata services - HEAD requests to
169.254.169.254reveal whether cloud metadata endpoints exist and leak content-length values - 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
- Leak internal service information - The
fileSizefield stored in the database reflects thecontent-lengthheader from internal services - 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:
// 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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
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
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
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
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
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
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
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-48378
GHSA-gq96-5pfx-f4vc
NVD
CVE.org
EPSS
Exploit-DB