Drupal Security Advisory
DRUPAL-CORE-2025-008
Details
The core system module handles downloads of private and temporary files. Contrib modules can define additional kinds of files (schemes) that may also be handled by the system module.
In some cases, files may be served with the HTTP header Cache-Control: public when they should be uncacheable. This can lead to some users getting cached versions of files with information they should not be able to access. For example, files may be cached by Varnish or a CDN.
This vulnerability is mitigated by the following:
- Drupal must be configured to handle non-public files using a custom or contributed module providing an additional file scheme.
- An attacker must know to request a file that has previously been
requested by a more-privileged user, and that file must still be cached.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Packagist | drupal/core | From 8.0.0 before 10.4.9 (fixed in 10.4.9) From 10.5.0 before 10.5.6 (fixed in 10.5.6) From 11.0.0 before 11.1.9 (fixed in 11.1.9) From 11.2.0 before 11.2.8 (fixed in 11.2.8) |