All reports
Medium

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

Affected versions

Version ranges need review.

Affected versions
< 2.4.5
Fixed version
2.4.5
Affected versions
>=2.0.0,<2.4.5|>=3.0.0,<3.1.3
Fixed version
Not reported
Affected versions
>= 3.0.0, < 3.1.3
Fixed version
3.1.3

Exploitation

CVE-2026-24749

Probability of exploitation in the next 30 days: 0.41%

FIRST EPSS · 2026-11-23

Description

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

Links