Shopware Insecure Deserialization Vulnerability
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 5.3.0 through 5.6.0 (inclusive)Ecosystem versions | Not recorded |
Version evidence: OSV · GHSA-rf8f-hqjv-986p
View original version evidence (28 explicit versions)
Original source 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.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2019-12799
- Patch github.com/rapid7/metasploit-framework/pull/11828
- Security advisory github.com/advisories/GHSA-6m27-7cqj-2mxw
- Source reference github.com/shopware5/shopware
- Source reference web.archive.org/web/20171112153855/https://blog.ripstech.com/2017/shopware-php-object-instantiation-to-blind-xxe