Advisory

GHSA-jgcf-rf45-2f8v

Also known as: CVE-2026-24749

Summary

Silverstripe Assets Module has a DBFile::getURL() permission bypass

Details

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

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2026-04-16 20:40 UTC
Modified
2026-05-05 16:09 UTC

Affected packages and fixes

silverstripe/assets

Packagist · All systems

Affected

  • introduced 0, fixed 2.4.5 (ecosystem)

Fixed versions

2.4.5

Fix

The export has no generic command for this ecosystem.

silverstripe/assets

Packagist · All systems

Affected

  • introduced 3.0.0, fixed 3.1.3 (ecosystem)

Fixed versions

3.1.3

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