{"id":"CVE-2020-5218","aliases":["CVE-2020-5218","GHSA-8vp7-j5cj-vvm2","GHSA-prg5-hg25-8grq"],"related":["CVE-2020-5220"],"kind":"vulnerability","state":"published","title":"Ability in Sylius to switch channels via GET parameter enabled in production environments","summary":"Affected versions of Sylius give attackers the ability to switch channels via the _channel_code GET parameter in production environments. This was meant to be enabled only when kernel.debug is set to true. However, if no sylius_channel.debug is set explicitly in the configuration, the default value which is kernel.debug will be not resolved and cast to boolean, enabling this debug feature even if that parameter is set to false. Patch has been provided for Sylius 1.3.x and newer - 1.3.16, 1.4.12, 1.5.9, 1.6.5. Versions older than 1.3 are not covered by our security support anymore.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Affected versions of Sylius give attackers the ability to switch channels via the _channel_code GET parameter in production environments. This was meant to be enabled only when kernel.debug is set to true. However, if no sylius_channel.debug is set explicitly in the configuration, the default value which is kernel.debug will be not resolved and cast to boolean, enabling this debug feature even if that parameter is set to false. Patch has been provided for Sylius 1.3.x and newer - 1.3.16, 1.4.12, 1.5.9, 1.6.5. Versions older than 1.3 are not covered by our security support anymore.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nResourceBundle accepts and uses any serialisation groups to be passed via a HTTP header. This might lead to data exposure by using an unintended serialisation group - for example it could make Shop API use a more permissive group from Admin API.\n\nAnyone exposing an API with ResourceBundle's controller is affected. The vulnerable versions are: `<1.3 || >=1.3.0 <=1.3.12 || >=1.4.0 <=1.4.5 || >=1.5.0 <=1.5.0 || >=1.6.0 <=1.6.2`.\n\n### Patches\n\nThe patch is provided for ResourceBundle 1.3.13, 1.4.6, 1.5.1 and 1.6.3, but not for any versions below 1.3.\n\nAfter it is applied, It allows to choose only the groups that are defined in `serialization_groups` or `allowed_serialization_groups` route definition. Any group not defined in those will not be used.\n\nThis behaviour might be a BC break for those using custom groups via the HTTP header, please adjust `allowed_serialization_groups` accordingly.\n\n### Workarounds\n\nService `sylius.resource_controller.request_configuration_factory` can be overridden with an implementation copied from `\\Sylius\\Bundle\\ResourceBundle\\Controller\\RequestConfigurationFactory` where the part that handles custom serialisation groups is deleted.","format":"markdown","source":"ghsa"},{"lang":"en","text":"### Impact\n\nThis vulnerability gives the ability to switch channels via the `_channel_code` GET parameter in production environments. This was meant to be enabled only when `%kernel.debug%` is set to true. \n\nHowever, if no `sylius_channel.debug` is set explicitly in the configuration, the default value which is `%kernel.debug%` will be not resolved and cast to boolean, enabling this debug feature even if that parameter is set to false.\n\n### Patches\n\nPatch has been provided for Sylius 1.3.x and newer - **1.3.16, 1.4.12, 1.5.9, 1.6.5**. Versions older than 1.3 are not covered by our security support anymore.\n\n### Workarounds\n\nUnsupported versions could be patched by adding the following configuration to run in production:\n\n```yaml\nsylius_channel:\n    debug: false\n```","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones afectadas de Sylius otorgan a atacantes la capacidad de cambiar canales por medio del parámetro GET de _channel_code en entornos de producción. Esto estaba destinado a ser habilitado solo cuando kernel.debug es seteado en verdadero. Sin embargo, si no se establece explícitamente sylius_channel.debug en la configuración, el valor predeterminado que es kernel.debug no se resolverá y se convertirá en booleano, habilitando esta funcionalidad de depuración incluso si ese parámetro se establece en falso. El path se ha proporcionado para Sylius versiones 1.3.x y posteriores; versiones 1.3.16, 1.4.12, 1.5.9, 1.6.5. Las versiones anteriores a la 1.3 ya no están cubiertas por nuestro soporte de seguridad.","source":"nvd"}],"published":"2020-01-27T20:25:13.000Z","modified":"2026-07-08T06:49:46.850Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N","score":4.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","score":4,"rating":"MEDIUM"}],"cwes":["CWE-200","CWE-444"],"affected":[{"ranges":[{"version":"< 1.3.13","status":"affected"},{"version":">= 1.4.0, < 1.4.6","status":"affected"},{"version":">= 1.5.0, < 1.5.1","status":"affected"},{"version":">= 1.6.0, < 1.6.3","status":"affected"}],"vendor":"Sylius","product":"Sylius","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.4.0","status":"affected","fixed":"1.4.6"}],"ecosystem":"Packagist","package":"sylius/resource-bundle","purl":"pkg:composer/sylius/resource-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.5.0","status":"affected","fixed":"1.5.1"}],"ecosystem":"Packagist","package":"sylius/resource-bundle","purl":"pkg:composer/sylius/resource-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.6.0","status":"affected","fixed":"1.6.3"}],"ecosystem":"Packagist","package":"sylius/resource-bundle","purl":"pkg:composer/sylius/resource-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.12"}],"ecosystem":"Packagist","package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.4.0","status":"affected","fixed":"1.4.4"}],"ecosystem":"Packagist","package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.0.0","status":"affected","fixed":"1.3.13"}],"ecosystem":"Packagist","package":"sylius/resource-bundle","purl":"pkg:composer/sylius/resource-bundle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.3.16"}],"ecosystem":"Packagist","package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.4.0","status":"affected","fixed":"1.4.12"}],"ecosystem":"Packagist","package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.5","status":"affected","fixed":"1.5.9"}],"ecosystem":"Packagist","package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.6.0","status":"affected","fixed":"1.6.5"}],"ecosystem":"Packagist","package":"sylius/sylius","purl":"pkg:composer/sylius/sylius","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.3.0","fixed":"1.3.13"},{"status":"affected","introduced":"1.4.0","fixed":"1.4.6"},{"status":"affected","introduced":"1.6.0","fixed":"1.6.3"},{"status":"affected","version":"1.5.0"}],"vendor":"sylius","product":"sylius","cpe":"cpe:2.3:a:sylius:sylius:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/Sylius/SyliusResourceBundle/security/advisories/GHSA-8vp7-j5cj-vvm2","tags":["patch","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/sylius/resource-bundle/CVE-2020-5220.yaml","tags":["third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5220","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/sylius/sylius/CVE-2020-5220.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Sylius/Sylius/security/advisories/GHSA-prg5-hg25-8grq","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5218","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-5218","url":"https://www.cve.org/CVERecord?id=CVE-2020-5218","licence":"CVE Terms of Use","modified":"2024-08-04T08:22:08.934Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8vp7-j5cj-vvm2","url":"https://github.com/advisories/GHSA-8vp7-j5cj-vvm2","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:46.850Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-prg5-hg25-8grq","url":"https://github.com/advisories/GHSA-prg5-hg25-8grq","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:46.850Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-5218","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5218","licence":"Public domain","modified":"2026-06-17T03:21:02.833Z"}],"updatedAt":"2026-11-25T22:57:50.686Z","epss":{"score":0.00595,"percentile":0.49799,"date":"2026-12-01T12:00:22.000Z"}}