GHSA-65v7-wg35-2qpm: Sylius/resource bundle Remote Code Execution Vulnerability

MODERATE
CVSS 6.5
CWE-352
Published
Advisory Summary

GHSA-65v7-wg35-2qpm is a MODERATE (CVSS 6.5) remote code execution vulnerability (CWE-352: Cross-Site Request Forgery (CSRF)) affecting Sylius/resource bundle libraries in the Packagist ecosystem. The issue involves sylius resource bundle cross-site request forgery vulnerability. Remediation is available by upgrading affected packages to version 1.0.17, 1.1.9, 1.2.2.

GHSA-65v7-wg35-2qpm at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-65v7-wg35-2qpm
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-352: Cross-Site Request Forgery (CSRF)
Affected Product Sylius/resource bundle
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix GHSA-65v7-wg35-2qpm

To remediate this vulnerability, upgrade all affected Sylius/resource bundle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

sylius/resource-bundle fixed: 1.0.17
Upgrade sylius/resource-bundle to 1.0.17
sylius/resource-bundle fixed: 1.1.9
Upgrade sylius/resource-bundle to 1.1.9
sylius/resource-bundle fixed: 1.2.2
Upgrade sylius/resource-bundle to 1.2.2
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for sylius/resource-bundle

How to Check if You Are Affected

To determine whether your application is affected by GHSA-65v7-wg35-2qpm, inspect your project dependencies for Sylius/resource bundle:

inspect dependencies for sylius/resource-bundle

Analyze the terminal output to locate any version of Sylius/resource bundle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.17), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-352: Cross-Site Request Forgery (CSRF), where the web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor. In Sylius/resource bundle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

Sylius 1.0.0 to 1.0.16, 1.1.0 to 1.1.8, 1.2.0 to 1.2.1 versions of AdminBundle and ResourceBundle are affected by this security issue. This issue has been fixed in Sylius 1.0.17, 1.1.9 and 1.2.2. Development branch for 1.3 release has also been fixed. ### Description The following actions in the admin panel did not require a CSRF token: - marking order’s payment as completed - marking order’s payment as refunded - marking product review as accepted - marking product review as rejected ### Resolution The issue is fixed by adding a required CSRF token to those actions. We also fixed `ResourceController`‘s `applyStateMachineTransitionAction` method by adding a CSRF token check. If you use that action in the API context, you can disable it by adding `csrf_protection:` false to its routing configuration

GHSA-65v7-wg35-2qpm Affected Sylius/resource bundle Versions

3 component(s)
Fixed Versions:
1.0.171.1.91.2.2
Product / Package Ecosystem Affected Versions Fixed Version
sylius/resource-bundle
Packagist
≥ 1.0.0
< 1.0.17
1.0.17
sylius/resource-bundle
Packagist
≥ 1.1.0
< 1.1.9
1.1.9
sylius/resource-bundle
Packagist
≥ 1.2.0
< 1.2.2
1.2.2

References

Frequently Asked Questions

What is GHSA-65v7-wg35-2qpm?
GHSA-65v7-wg35-2qpm is a security vulnerability in Sylius/resource bundle involving Sylius Resource Bundle Cross-Site Request Forgery vulnerability under CWE-352: Cross-Site Request Forgery (CSRF).
Which Sylius/resource bundle versions are affected?
Affected versions include releases prior to 1.0.17, 1.1.9, 1.2.2 across affected packages: sylius/resource-bundle.
What version fixes GHSA-65v7-wg35-2qpm?
Upgrading to 1.0.17, 1.1.9, 1.2.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sylius/resource-bundle affected?
Yes, sylius/resource-bundle is affected in releases prior to 1.0.17, 1.1.9, 1.2.2. Upgrade your dependency to 1.0.17, 1.1.9, 1.2.2 or later.
What is the CVSS score of GHSA-65v7-wg35-2qpm?
GHSA-65v7-wg35-2qpm has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N.
What CWE is associated with GHSA-65v7-wg35-2qpm?
GHSA-65v7-wg35-2qpm is classified under CWE-352: Cross-Site Request Forgery (CSRF) (The web application does not, or cannot, sufficiently verify whether a request was intentionally provided by the user who sent the request, which could have originated from an unauthorized actor.).
How can I check Packagist dependencies for GHSA-65v7-wg35-2qpm?
Run the dependency tree command: 'inspect dependencies for sylius/resource-bundle'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-65v7-wg35-2qpm",
  "modified" : "2024-05-29T18:50:22Z",
  "published" : "2024-05-29T18:50:22Z",
  "aliases" : [ ],
  "summary" : "Sylius Resource Bundle Cross-Site Request Forgery vulnerability",
  "details" : "Sylius 1.0.0 to 1.0.16, 1.1.0 to 1.1.8, 1.2.0 to 1.2.1 versions of AdminBundle and ResourceBundle are affected by this security issue.\n\nThis issue has been fixed in Sylius 1.0.17, 1.1.9 and 1.2.2. Development branch for 1.3 release has also been fixed.\n\n### Description\n\nThe following actions in the admin panel did not require a CSRF token:\n\n- marking order’s payment as completed\n- marking order’s payment as refunded\n- marking product review as accepted\n- marking product review as rejected\n\n### Resolution\n\nThe issue is fixed by adding a required CSRF token to those actions.\n\nWe also fixed `ResourceController`‘s  `applyStateMachineTransitionAction` method by adding a CSRF token check. If you use that action in the API context, you can disable it by adding `csrf_protection:` false to its routing configuration",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sylius/resource-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.0.17"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sylius/resource-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.1.0"
      }, {
        "fixed" : "1.1.9"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sylius/resource-bundle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.2.0"
      }, {
        "fixed" : "1.2.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Sylius/SyliusResourceBundle/commit/9720ac5a0a39ea2c2a395ef16a94a00aa86c418b"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/sylius/sylius/2018-07-09.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Sylius/SyliusResourceBundle"
  }, {
    "type" : "WEB",
    "url" : "https://sylius.com/blog/csrf-vulnerability-in-admin-panel"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-352" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-29T18:50:22Z",
    "nvd_published_at" : null
  }
}