CVE-2026-24749: Silverstripe/assets :getURL() Permission Bypass Vulnerability

MODERATE
Advisory Identifier: GHSA-jgcf-rf45-2f8v
CVSS 5.3
CWE-266 CWE-863
Published
Advisory Summary

CVE-2026-24749 is a MODERATE (CVSS 5.3) :geturl() permission bypass vulnerability (CWE-266: Incorrect Privilege Assignment) affecting Silverstripe/assets libraries in the Packagist ecosystem. The issue involves :geturl() permission bypass. Remediation is available by upgrading affected packages to version 2.4.5, 3.1.3.

CVE-2026-24749 at a Glance

CVE Identifier CVE-2026-24749
GHSA Identifier GHSA-jgcf-rf45-2f8v
Severity MODERATE
CVSS v3.1 Base Score 5.3
CWE Classification CWE-266: Incorrect Privilege Assignment
Affected Product Silverstripe/assets
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.3

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:N/S:U/C:L/I:N/A:N).

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

How to Fix CVE-2026-24749

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

silverstripe/assets fixed: 2.4.5
Upgrade silverstripe/assets to 2.4.5
silverstripe/assets fixed: 3.1.3
Upgrade silverstripe/assets to 3.1.3
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 silverstripe/assets

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-24749, inspect your project dependencies for Silverstripe/assets:

inspect dependencies for silverstripe/assets

Analyze the terminal output to locate any version of Silverstripe/assets in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.5), 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-266: Incorrect Privilege Assignment, where a product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor. In Silverstripe/assets, 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 Images rendered in templates or otherwise accessed via `DBFile::getURL()` or `DBFile::getSourceURL()` incorrectly add an access grant to the current session, which bypasses file permissions. This usually happens when creating an image variant, for example using a manipulation method like `ScaleWidth()` or `Convert()`. Note that if you use `DBFile` directly in the `$db` configuration for a `DataObject` class that doesn't subclass `File`, and if you were setting the visibility of those files to "protected", those files will now need an explicit access grant to be accessed. If you do not want to explicitly provide access grants for these files (i.e. you want these files to be accessible by default), you should use the "public" visibility. ### Reported by Restruct web & apps

CVE-2026-24749 Affected Silverstripe/assets Versions

2 component(s)
Fixed Versions:
2.4.53.1.3
Product / Package Ecosystem Affected Versions Fixed Version
silverstripe/assets
Packagist
< 2.4.5
2.4.5
silverstripe/assets
Packagist
≥ 3.0.0
< 3.1.3
3.1.3

References

Frequently Asked Questions

What is CVE-2026-24749?
CVE-2026-24749 is a security vulnerability in Silverstripe/assets involving :getURL() permission bypass under CWE-266: Incorrect Privilege Assignment.
Which Silverstripe/assets versions are affected?
Affected versions include releases prior to 2.4.5, 3.1.3 across affected packages: silverstripe/assets.
What version fixes CVE-2026-24749?
Upgrading to 2.4.5, 3.1.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is silverstripe/assets affected?
Yes, silverstripe/assets is affected in releases prior to 2.4.5, 3.1.3. Upgrade your dependency to 2.4.5, 3.1.3 or later.
What is the CVSS score of CVE-2026-24749?
CVE-2026-24749 has a CVSS v3.1 base score of 5.3 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2026-24749?
CVE-2026-24749 is classified under CWE-266: Incorrect Privilege Assignment (A product incorrectly assigns a privilege to a particular actor, creating an unintended sphere of control for that actor.).
How can I check Packagist dependencies for CVE-2026-24749?
Run the dependency tree command: 'inspect dependencies for silverstripe/assets'. 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-jgcf-rf45-2f8v",
  "modified" : "2026-04-27T14:20:04Z",
  "published" : "2026-04-16T20:40:37Z",
  "aliases" : [ "CVE-2026-24749" ],
  "summary" : "Silverstripe Assets Module has a DBFile::getURL() permission bypass",
  "details" : "### Impact\n\nImages rendered in templates or otherwise accessed via `DBFile::getURL()` or `DBFile::getSourceURL()` incorrectly add an access grant to the current session, which bypasses file permissions.\n\nThis usually happens when creating an image variant, for example using a manipulation method like `ScaleWidth()` or `Convert()`.\n\nNote that if you use `DBFile` directly in the `$db` configuration for a `DataObject` class that doesn't subclass `File`, and if you were setting the visibility of those files to \"protected\", those files will now need an explicit access grant to be accessed. If you do not want to explicitly provide access grants for these files (i.e. you want these files to be accessible by default), you should use the \"public\" visibility.\n\n### Reported by\n\nRestruct web & apps",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/assets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.4.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "silverstripe/assets"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.1.3"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/silverstripe/silverstripe-assets/security/advisories/GHSA-jgcf-rf45-2f8v"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-24749"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/silverstripe/assets/CVE-2026-24749.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/silverstripe/silverstripe-assets"
  }, {
    "type" : "WEB",
    "url" : "https://www.silverstripe.org/download/security-releases/cve-2026-24749"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-266", "CWE-863" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-16T20:40:37Z",
    "nvd_published_at" : "2026-04-16T18:16:44Z"
  }
}