CVE-2019-12799

HIGH

Shopware 5.3.0-5.6.x - Remote Code Execution via PHP Object Instantiation Bypass

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2019-12799. PoCs published by Karim Ouerghemmi, mr_me <[email protected]>, including Metasploit module exploits/multi/http/shopware_createinstancefromnamedarguments_rce.

AI-analyzed exploit summary This Metasploit module exploits a PHP object instantiation vulnerability in Shopware's `createInstanceFromNamedArguments` function, leading to remote code execution via deserialization of a malicious PHAR file. It includes authentication, CSRF token leakage, PHAR generation, and payload delivery.

Description

In createInstanceFromNamedArguments in Shopware through 5.6.x, a crafted web request can trigger a PHP object instantiation vulnerability, which can result in an arbitrary deserialization if the right class is instantiated. An attacker can leverage this deserialization to achieve remote code execution. NOTE: this issue is a bypass for a CVE-2017-18357 whitelist patch.

Exploits (1)

metasploit WORKING POC EXCELLENT
by Karim Ouerghemmi, mr_me <[email protected]> · rubypocphp
https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/shopware_createinstancefromnamedarguments_rce.rb

This Metasploit module exploits a PHP object instantiation vulnerability in Shopware's `createInstanceFromNamedArguments` function, leading to remote code execution via deserialization of a malicious PHAR file. It includes authentication, CSRF token leakage, PHAR generation, and payload delivery.

Classification
Working Poc 100%
Attack Type
Rce
Complexity
Moderate
Reliability
Reliable
Target: Shopware (tested on 5.3, 5.4, 5.5, 5.6)
Auth required
Prerequisites: Authenticated backend user credentials · Access to the Shopware backend
devstral-2 · analyzed Apr 24, 2026 Full analysis →

References (1)

Core 1
Core References
Issue Tracking, Patch, Third Party Advisory x_refsource_misc
https://github.com/rapid7/metasploit-framework/pull/11828

Scores

CVSS v3 8.8
EPSS 0.5468
EPSS Percentile 98.9%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Details

CWE
CWE-502
Status published
Products (2)
shopware/shopware < 5.6.0
shopware/shopware 5.3.0Packagist
Published Jun 13, 2019
Tracked Since Feb 18, 2026