Loading...
Skip to main content

CVE-2020-15146 — Remote Code Execution in sylius/resource-bundle —...

CRITICAL

Remote Code Execution in SyliusResourceBundle

Published August 19, 2020Updated September 10, 2026Source: osv

Summary

### Impact Request parameters injected inside an expression evaluated by `symfony/expression-language` package haven't been sanitized properly. This allows the attacker to access any public service by manipulating that request parameter, allowing for Remote Code Execution. The vulnerable versions include: `<=1.3.13 || >=1.4.0 <=1.4.6 || >=1.5.0 <=1.5.1 || >=1.6.0 <=1.6.3`. ### Example ```yaml sylius_grid: grids: foo: fields: bar: options: baz: "expr:service('sylius.repository.product').find($id)" ``` In this case, `$id` can be prepared in a way that calls other services. If you visit `/route?id="~service('doctrine').getManager().getConnection().executeQuery("DELETE * FROM TABLE")~"`, it will result in a following expression `expr:service('repository').find(""~service('doctrine').getManager().getConnection().executeQuery("DELETE * FROM TABLE")~"")`, which will execute a query on the currently connected database. To find a vulnerability in your application, look for any routing definition that uses request parameters inside expression language. ### Patches This issue has been patched for versions 1.3.14, 1.4.7, 1.5.2 and 1.6.4. Versions prior to 1.3 were not patched. ### Workarounds The fix requires adding `addslashes` in `OptionsParser::parseOptionExpression` to sanitize user input before evaluating it using the expression language. ```php - return is_string($variable) ? sprintf('"%s"', $variable) : $variable; + return is_string($variable) ? sprintf('"%s"', addslashes($variable)) : $variable; ``` ### Acknowledgements This security issue has been reported by Craig Blanchette (@isometriks), thanks a lot! ### For more information If you have any questions or comments about this advisory: * Email us at [security@sylius.com](mailto:security@sylius.com)

Advisory Timeline

  • First published August 19, 2020 (2245 days ago).
  • Last revised September 10, 2026 — 2212 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update sylius/resource-bundle to 1.5.2 or later
composer require "sylius/resource-bundle:^1.5.2"
Composer
Update sylius/resource-bundle to 1.4.7 or later
composer require "sylius/resource-bundle:^1.4.7"
Composer
Update sylius/resource-bundle to 1.6.4 or later
composer require "sylius/resource-bundle:^1.6.4"
Composer
Update sylius/resource-bundle to 1.3.14 or later
composer require "sylius/resource-bundle:^1.3.14"

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (4)

Affects 1 ecosystem: packagist (1).

PackageEcosystemAffectedFixed In
sylius/resource-bundle
packagist
v1.5.0, v1.5.11.5.2
sylius/resource-bundle
packagist
v1.4.0, v1.4.1, v1.4.2, v1.4.3 (+3 more)1.4.7
sylius/resource-bundle
packagist
v1.6.0, v1.6.1, v1.6.2, v1.6.31.6.4
sylius/resource-bundle
packagist
v1.0.0, v1.0.1, v1.0.10, v1.0.11 (+69 more)1.3.14

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N

Frequently Asked Questions

What is CVE-2020-15146?
Remote Code Execution in SyliusResourceBundle This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.6/10).
How do I check if my project is affected by CVE-2020-15146?
CVE-2020-15146 affects sylius/resource-bundle. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2020-15146 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.6

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-h6m7-j4h3-9rf5

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies