{
    "data_version": "4.0",
    "data_type": "CVE",
    "data_format": "MITRE",
    "CVE_data_meta": {
        "ID": "CVE-2023-2017",
        "ASSIGNER": "info@starlabs.sg",
        "STATE": "PUBLIC"
    },
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "Server-side Template Injection (SSTI) in Shopware 6 (<= v6.4.20.0, v6.5.0.0-rc1 <= v6.5.0.0-rc4), affecting both shopware/core and shopware/platform GitHub repositories, allows remote attackers with access to a Twig environment without the Sandbox extension to bypass the validation checks in `Shopware\\Core\\Framework\\Adapter\\Twig\\SecurityExtension` and call any arbitrary PHP function and thus execute arbitrary code/commands via usage of fully-qualified names, supplied as array of strings, when referencing callables. Users are advised to upgrade to v6.4.20.1 to resolve this issue. This is a bypass of CVE-2023-22731.\n"
            }
        ]
    },
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-184 Incomplete List of Disallowed Inputs",
                        "cweId": "CWE-184"
                    }
                ]
            },
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine",
                        "cweId": "CWE-1336"
                    }
                ]
            }
        ]
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "vendor_name": "Shopware AG",
                    "product": {
                        "product_data": [
                            {
                                "product_name": "Shopware 6",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "<=",
                                            "version_name": "0",
                                            "version_value": "6.4.20.0"
                                        },
                                        {
                                            "version_affected": "<=",
                                            "version_name": "6.5.0.0-rc1",
                                            "version_value": "6.5.0.0-rc4"
                                        }
                                    ]
                                }
                            }
                        ]
                    }
                }
            ]
        }
    },
    "references": {
        "reference_data": [
            {
                "url": "https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023",
                "refsource": "MISC",
                "name": "https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023"
            },
            {
                "url": "https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f",
                "refsource": "MISC",
                "name": "https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f"
            },
            {
                "url": "https://starlabs.sg/advisories/23/23-2017/",
                "refsource": "MISC",
                "name": "https://starlabs.sg/advisories/23/23-2017/"
            }
        ]
    },
    "generator": {
        "engine": "Vulnogram 0.1.0-dev"
    },
    "source": {
        "discovery": "EXTERNAL"
    },
    "solution": [
        {
            "lang": "en",
            "supportingMedia": [
                {
                    "base64": false,
                    "type": "text/html",
                    "value": "\nUsers are advised to upgrade to v6.4.20.1 to resolve this issue.\n\n<br>"
                }
            ],
            "value": "Users are advised to upgrade to v6.4.20.1 to resolve this issue.\n\n\n"
        }
    ],
    "credits": [
        {
            "lang": "en",
            "value": "Ngo Wei Lin (@Creastery) of STAR Labs SG Pte. Ltd. (@starlabs_sg)"
        }
    ],
    "impact": {
        "cvss": [
            {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 8.8,
                "baseSeverity": "HIGH",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "LOW",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
            }
        ]
    }
}