GSD-2023-2017
Vulnerability from gsd - Updated: 2023-12-13 01:20Details
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.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2023-2017",
"id": "GSD-2023-2017"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"aliases": [
"CVE-2023-2017"
],
"details": "Server-side Template Injection (SSTI) in Shopware 6 (\u003c= v6.4.20.0, v6.5.0.0-rc1 \u003c= 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",
"id": "GSD-2023-2017",
"modified": "2023-12-13T01:20:31.998710Z",
"schema_version": "1.4.0"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "info@starlabs.sg",
"ID": "CVE-2023-2017",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "Shopware 6",
"version": {
"version_data": [
{
"version_affected": "\u003c=",
"version_name": "0",
"version_value": "6.4.20.0"
},
{
"version_affected": "\u003c=",
"version_name": "6.5.0.0-rc1",
"version_value": "6.5.0.0-rc4"
}
]
}
}
]
},
"vendor_name": "Shopware AG"
}
]
}
},
"credits": [
{
"lang": "en",
"value": "Ngo Wei Lin (@Creastery) of STAR Labs SG Pte. Ltd. (@starlabs_sg)"
}
],
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "Server-side Template Injection (SSTI) in Shopware 6 (\u003c= v6.4.20.0, v6.5.0.0-rc1 \u003c= 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"
}
]
},
"generator": {
"engine": "Vulnogram 0.1.0-dev"
},
"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"
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"cweId": "CWE-184",
"lang": "eng",
"value": "CWE-184 Incomplete List of Disallowed Inputs"
}
]
},
{
"description": [
{
"cweId": "CWE-1336",
"lang": "eng",
"value": "CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023",
"refsource": "MISC",
"url": "https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023"
},
{
"name": "https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f",
"refsource": "MISC",
"url": "https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f"
},
{
"name": "https://starlabs.sg/advisories/23/23-2017/",
"refsource": "MISC",
"url": "https://starlabs.sg/advisories/23/23-2017/"
}
]
},
"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\u003cbr\u003e"
}
],
"value": "Users are advised to upgrade to v6.4.20.1 to resolve this issue.\n\n\n"
}
],
"source": {
"discovery": "EXTERNAL"
}
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003e=6.1.0,\u003c=6.4.20.0||=6.5.0.0",
"affected_versions": "All versions starting from 6.1.0 up to 6.4.20.0, version 6.5.0.0",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-937",
"CWE-94"
],
"date": "2023-04-28",
"description": "Server-side Template Injection (SSTI) in Shopware 6 (\u003c= v6.4.20.0, v6.5.0.0-rc1 \u003c= 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",
"fixed_versions": [
"6.4.20.1"
],
"identifier": "CVE-2023-2017",
"identifiers": [
"CVE-2023-2017",
"GHSA-7v2v-9rm4-7m8f"
],
"not_impacted": "All versions before 6.1.0, all versions after 6.4.20.0 before 6.5.0.0, all versions after 6.5.0.0",
"package_slug": "packagist/shopware/core",
"pubdate": "2023-04-17",
"solution": "Upgrade to version 6.4.20.1 or above.",
"title": "Improper Control of Generation of Code in Twig rendered views",
"urls": [
"https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f",
"https://nvd.nist.gov/vuln/detail/CVE-2023-2017",
"https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023",
"https://github.com/shopware/platform/releases/tag/v6.4.20.1",
"https://github.com/advisories/GHSA-7v2v-9rm4-7m8f"
],
"uuid": "a9f0fe49-cfb0-4291-8c46-ef427d396509"
},
{
"affected_range": "\u003e=6.1.0,\u003c=6.4.20.0||=6.5.0.0",
"affected_versions": "All versions starting from 6.1.0 up to 6.4.20.0, version 6.5.0.0",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-937",
"CWE-94"
],
"date": "2023-04-28",
"description": "Server-side Template Injection (SSTI) in Shopware 6 (\u003c= v6.4.20.0, v6.5.0.0-rc1 \u003c= 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",
"fixed_versions": [
"6.4.20.1"
],
"identifier": "CVE-2023-2017",
"identifiers": [
"CVE-2023-2017",
"GHSA-7v2v-9rm4-7m8f"
],
"not_impacted": "All versions before 6.1.0, all versions after 6.4.20.0 before 6.5.0.0, all versions after 6.5.0.0",
"package_slug": "packagist/shopware/platform",
"pubdate": "2023-04-17",
"solution": "Upgrade to version 6.4.20.1 or above.",
"title": "Improper Control of Generation of Code in Twig rendered views",
"urls": [
"https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f",
"https://nvd.nist.gov/vuln/detail/CVE-2023-2017",
"https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023",
"https://github.com/shopware/platform/releases/tag/v6.4.20.1",
"https://github.com/advisories/GHSA-7v2v-9rm4-7m8f"
],
"uuid": "f867c962-80a6-42b6-ba7c-ca5c79b58111"
},
{
"affected_range": "\u003e=6.1.0,\u003c=6.4.20.0||=6.5.0.0",
"affected_versions": "All versions starting from 6.1.0 up to 6.4.20.0, version 6.5.0.0",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"cwe_ids": [
"CWE-1035",
"CWE-937",
"CWE-94"
],
"date": "2023-04-28",
"description": "Server-side Template Injection (SSTI) in Shopware 6 (\u003c= v6.4.20.0, v6.5.0.0-rc1 \u003c= 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",
"fixed_versions": [],
"identifier": "CVE-2023-2017",
"identifiers": [
"CVE-2023-2017",
"GHSA-7v2v-9rm4-7m8f"
],
"not_impacted": "",
"package_slug": "packagist/shopware/shopware",
"pubdate": "2023-04-17",
"solution": "Unfortunately, there is no solution available yet.",
"title": "Improper Control of Generation of Code (\u0027Code Injection\u0027)",
"urls": [
"https://nvd.nist.gov/vuln/detail/CVE-2023-2017",
"https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023",
"https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f",
"https://starlabs.sg/advisories/23/23-2017/"
],
"uuid": "f48d8085-e46c-4c00-97cf-9d4a556dc739"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:shopware:shopware:6.5.0.0:rc2:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:shopware:shopware:6.5.0.0:rc3:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:shopware:shopware:6.5.0.0:rc1:*:*:*:*:*:*",
"cpe_name": [],
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:shopware:shopware:*:*:*:*:*:*:*:*",
"cpe_name": [],
"versionEndIncluding": "6.4.20.0",
"versionStartIncluding": "6.1.0",
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "info@starlabs.sg",
"ID": "CVE-2023-2017"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "Server-side Template Injection (SSTI) in Shopware 6 (\u003c= v6.4.20.0, v6.5.0.0-rc1 \u003c= 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": "en",
"value": "CWE-94"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023",
"refsource": "MISC",
"tags": [
"Vendor Advisory"
],
"url": "https://docs.shopware.com/en/shopware-6-en/security-updates/security-update-04-2023"
},
{
"name": "https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f",
"refsource": "MISC",
"tags": [
"Vendor Advisory"
],
"url": "https://github.com/shopware/platform/security/advisories/GHSA-7v2v-9rm4-7m8f"
},
{
"name": "https://starlabs.sg/advisories/23/23-2017/",
"refsource": "MISC",
"tags": [
"Exploit",
"Mitigation",
"Third Party Advisory"
],
"url": "https://starlabs.sg/advisories/23/23-2017/"
}
]
}
},
"impact": {
"baseMetricV3": {
"cvssV3": {
"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"
},
"exploitabilityScore": 2.8,
"impactScore": 5.9
}
},
"lastModifiedDate": "2023-04-28T14:27Z",
"publishedDate": "2023-04-17T11:15Z"
}
}
}
Loading…
Loading…
Sightings
| Author | Source | Type | Date |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…