CVE-2023-2017
Full vulnerability record from the local CVENow database.
Description
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.
Severity
HIGH
CVSS score
8.8
(v3.1)
Vulnerability status
Modified
Source identifier
Published
2023-04-17 11:15:42.160000
Last modified
2026-10-24 13:10:00.147000
View original CVE JSON
{
"id": "CVE-2023-2017",
"sourceIdentifier": "[email protected]",
"published": "2023-04-17T11:15:42.160",
"lastModified": "2026-10-24T13:10:00.147",
"vulnStatus": "Modified",
"cveTags": [],
"descriptions": [
{
"lang": "en",
"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"
},
{
"lang": "es",
"value": "Inyección de Plantillas del Lado del Servidor (SSTI) en Shopware 6 (menor o igual que v6.4.20.0, v6.5.0.0-rc1 menor o igual a v6.5.0.0-rc4), que afecta tanto a los repositorios de GitHub shopware/core como shopware/platform, permite a atacantes remotos con acceso a un entorno Twig sin la extensión Sandbox omitir las comprobaciones de validación en Shopware\\Core\\Framework\\Adapter\\Twig\\SecurityExtension y llamar a cualquier función PHP arbitraria y, por lo tanto, ejecutar código/comandos arbitrarios mediante el uso de nombres completamente cualificados, suministrados como array de cadenas, al referenciar elementos invocables. Se aconseja a los usuarios actualizar a la v6.4.20.1 para resolver este problema. Esto es un bypass de CVE-2023-22731."
}
],
"affected": [
{
"source": "[email protected]",
"affectedData": [
{
"vendor": "Shopware AG",
"product": "Shopware 6",
"defaultStatus": "unaffected",
"versions": [
{
"version": "0",
"lessThanOrEqual": "6.4.20.0",
"versionType": "semver",
"status": "affected"
},
{
"version": "6.5.0.0-rc1",
"lessThanOrEqual": "6.5.0.0-rc4",
"versionType": "semver",
"status": "affected"
}
]
}
]
}
],
"metrics": {
"cvssMetricV31": [
{
"source": "[email protected]",
"type": "Secondary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 2.8,
"impactScore": 5.9
},
{
"source": "[email protected]",
"type": "Primary",
"cvssData": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 8.8,
"baseSeverity": "HIGH",
"attackVector": "NETWORK",
"attackComplexity": "LOW",
"privilegesRequired": "LOW",
"userInteraction": "NONE",
"scope": "UNCHANGED",
"confidentialityImpact": "HIGH",
"integrityImpact": "HIGH",
"availabilityImpact": "HIGH"
},
"exploitabilityScore": 2.8,
"impactScore": 5.9
}
],
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"timestamp": "2025-02-05T20:46:34.501269Z",
"id": "CVE-2023-2017",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "total"
}
],
"role": "CISA Coordinator",
"version": "2.0.3"
}
}
]
},
"weaknesses": [
{
"source": "[email protected]",
"type": "Secondary",
"description": [
{
"lang": "en",
"value": "CWE-184"
},
{
"lang": "en",
"value": "CWE-1336"
}
]
},
{
"source": "[email protected]",
"type": "Primary",
"description": [
{
"lang": "en",
"value": "CWE-94"
}
]
}
],
"configurations": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:a:shopware:shopware:*:*:*:*:*:*:*:*",
"versionStartIncluding": "6.1.0",
"versionEndIncluding": "6.4.20.0",
"matchCriteriaId": "8FB9ED1C-3438-4CFA-8C79-0AB0E493954D"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:shopware:shopware:6.5.0.0:rc1:*:*:*:*:*:*",
"matchCriteriaId": "13452371-6436-4FC4-B535-B1064B3DA20A"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:shopware:shopware:6.5.0.0:rc2:*:*:*:*:*:*",
"matchCriteriaId": "4B0D3A28-E2CF-499E-BD2B-8655E3F09791"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:a:shopware:shopware:6.5.0.0:rc3:*:*:*:*:*:*",
"matchCriteriaId": "2F1201D0-0621-4744-9D53-C0B8C5FE00D2"
}
]
}
]
}
],
"references": [
{
"url": "https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
},
{
"url": "https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f",
"source": "[email protected]",
"tags": [
"Vendor Advisory"
]
},
{
"url": "https://starlabs.sg/advisories/23/23-2017/",
"source": "[email protected]",
"tags": [
"Exploit",
"Mitigation",
"Third Party Advisory"
]
},
{
"url": "https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023",
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Vendor Advisory"
]
},
{
"url": "https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f",
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Vendor Advisory"
]
},
{
"url": "https://starlabs.sg/advisories/23/23-2017/",
"source": "af854a3a-2127-422b-91ae-364da2661108",
"tags": [
"Exploit",
"Mitigation",
"Third Party Advisory"
]
}
]
}