CVE-2024-27915: Sulu/sulu Sulu Grants Access To Pages Vulnerability

MODERATE
Advisory Identifier: GHSA-jr83-m233-gg6p
CVSS 6.8
CWE-863
Published
Advisory Summary

CVE-2024-27915 is a MODERATE (CVSS 6.8) sulu grants access to pages vulnerability (CWE-863: Incorrect Authorization) affecting Sulu/sulu libraries in the Packagist ecosystem. The issue involves sulu grants access to pages regardless of role permissions. Remediation is available by upgrading affected packages to version 2.4.17, 2.5.13.

CVE-2024-27915 at a Glance

CVE Identifier CVE-2024-27915
GHSA Identifier GHSA-jr83-m233-gg6p
Severity MODERATE
CVSS v3.1 Base Score 6.8
CWE Classification CWE-863: Incorrect Authorization
Affected Product Sulu/sulu
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.8

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

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

How to Fix CVE-2024-27915

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

sulu/sulu fixed: 2.4.17
Upgrade sulu/sulu to 2.4.17
sulu/sulu fixed: 2.5.13
Upgrade sulu/sulu to 2.5.13
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 sulu/sulu

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-27915, inspect your project dependencies for Sulu/sulu:

inspect dependencies for sulu/sulu

Analyze the terminal output to locate any version of Sulu/sulu in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.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-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Sulu/sulu, 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

### Impact _What kind of vulnerability is it? Who is impacted?_ Access to pages is granted regardless of role permissions for webspaces which have a security system configured and permission check enabled. Webspaces without do not have this issue. ### Patches Has the problem been patched? What versions should users upgrade to? The problem is patched with Version `2.4.17` and `2.5.13`. ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ Remove following lines from `vendor/symfony/security-http/HttpUtils.php`: ``` - // Shortcut if request has already been matched before - if ($request->attributes->has('_route')) { - return $path === $request->attributes->get('_route'); - } ``` Or do not install `symfony/security-http` versions greater equal than `v5.4.30` or `v6.3.6`. ### References _Are there any links users can visit to find out more?_ Currently no references.

CVE-2024-27915 Affected Sulu/sulu Versions

2 component(s)
Fixed Versions:
2.4.172.5.13
Product / Package Ecosystem Affected Versions Fixed Version
sulu/sulu
Packagist
≥ 2.2.0
< 2.4.17
2.4.17
sulu/sulu
Packagist
≥ 2.5.0-alpha1
< 2.5.13
2.5.13

References

Frequently Asked Questions

What is CVE-2024-27915?
CVE-2024-27915 is a security vulnerability in Sulu/sulu involving Sulu grants access to pages regardless of role permissions under CWE-863: Incorrect Authorization.
Which Sulu/sulu versions are affected?
Affected versions include releases prior to 2.4.17, 2.5.13 across affected packages: sulu/sulu.
What version fixes CVE-2024-27915?
Upgrading to 2.4.17, 2.5.13 (or the latest patched release for your respective branch) resolves the vulnerability.
Is sulu/sulu affected?
Yes, sulu/sulu is affected in releases prior to 2.4.17, 2.5.13. Upgrade your dependency to 2.4.17, 2.5.13 or later.
What is the CVSS score of CVE-2024-27915?
CVE-2024-27915 has a CVSS v3.1 base score of 6.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2024-27915?
CVE-2024-27915 is classified under CWE-863: Incorrect Authorization (The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.).
How can I check Packagist dependencies for CVE-2024-27915?
Run the dependency tree command: 'inspect dependencies for sulu/sulu'. 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-jr83-m233-gg6p",
  "modified" : "2024-03-06T21:37:49Z",
  "published" : "2024-03-04T20:45:08Z",
  "aliases" : [ "CVE-2024-27915" ],
  "summary" : "Sulu grants access to pages regardless of role permissions",
  "details" : "### Impact\n\n_What kind of vulnerability is it? Who is impacted?_\n\nAccess to pages is granted regardless of role permissions for webspaces which have a security system configured and permission check enabled. Webspaces without do not have this issue.\n\n### Patches\n\nHas the problem been patched? What versions should users upgrade to?\n\nThe problem is patched with Version `2.4.17` and `2.5.13`.\n\n### Workarounds\n\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nRemove  following lines from `vendor/symfony/security-http/HttpUtils.php`:\n\n```\n-            // Shortcut if request has already been matched before\n-            if ($request->attributes->has('_route')) {\n-                return $path === $request->attributes->get('_route');\n -           }\n```\n\nOr do not install `symfony/security-http` versions greater equal than `v5.4.30` or `v6.3.6`.\n\n### References\n\n_Are there any links users can visit to find out more?_\n\nCurrently no references.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sulu/sulu"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.2.0"
      }, {
        "fixed" : "2.4.17"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "sulu/sulu"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0-alpha1"
      }, {
        "fixed" : "2.5.13"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/sulu/sulu/security/advisories/GHSA-jr83-m233-gg6p"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-27915"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/sulu/sulu/commit/ec9c3f99e15336dc4f6877f512300f231c17c6da"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/sulu/sulu"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-04T20:45:08Z",
    "nvd_published_at" : "2024-03-06T20:15:47Z"
  }
}