Advisory

GHSA-prg5-hg25-8grq

Also known as: CVE-2020-5218, CVE-2020-5220, GHSA-8vp7-j5cj-vvm2

Summary

Ability to switch channels via GET parameter enabled in production environments

Details

Impact

This 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.

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.

Patches

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.

Workarounds

Unsupported versions could be patched by adding the following configuration to run in production:

sylius_channel:
    debug: false

Severity

Low Basis: The source's own band: LOW

Dates

Published
2020-01-31 18:00 UTC
Modified
2026-07-08 06:49 UTC

Affected packages and fixes

sylius/sylius

Packagist · All systems

Affected

  • introduced 0, fixed 1.3.16 (ecosystem)

Fixed versions

1.3.16

Fix

The export has no generic command for this ecosystem.

sylius/sylius

Packagist · All systems

Affected

  • introduced 1.4.0, fixed 1.4.12 (ecosystem)

Fixed versions

1.4.12

Fix

The export has no generic command for this ecosystem.

sylius/sylius

Packagist · All systems

Affected

  • introduced 1.5, fixed 1.5.9 (ecosystem)

Fixed versions

1.5.9

Fix

The export has no generic command for this ecosystem.

sylius/sylius

Packagist · All systems

Affected

  • introduced 1.6.0, fixed 1.6.5 (ecosystem)

Fixed versions

1.6.5

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences