Read Time:1 Minute, 58 Second
Project: 
Date: 
2023-April-19
Vulnerability: 
Access bypass
Description: 

The file download facility doesn’t sufficiently sanitize file paths in certain situations. This may result in users gaining access to private files that they should not have access to.

Some sites may require configuration changes following this security release. Review the release notes for your Drupal version if you have issues accessing private files after updating.

This advisory is covered by Drupal Steward.

We would normally not apply for a release of this severity. However, in this case we have chosen to apply Drupal Steward security coverage to test our processes.

Drupal 7

All Drupal 7 sites on Windows web servers are vulnerable.
Drupal 7 sites on Linux web servers are vulnerable with certain file directory structures, or if a vulnerable contributed or custom file access module is installed.

Drupal 9 and 10

Drupal 9 and 10 sites are only vulnerable if certain contributed or custom file access modules are installed.

Solution: 

Install the latest version:

If you are using Drupal 10.0, update to Drupal 10.0.8.
If you are using Drupal 9.5, update to Drupal 9.5.8.
If you are using Drupal 9.4, update to Drupal 9.4.14.
If you are using Drupal 7, update to Drupal 7.96.

All versions of Drupal 9 prior to 9.4.x are end-of-life and do not receive security coverage. Note that Drupal 8 has reached its end of life.

Reported By: 
Heine of the Drupal Security Team
Conrad Lara
Guy Elsmore-Paddock
Fixed By: 
Michael Hess of the Drupal Security Team
Heine of the Drupal Security Team
Lee Rowlands of the Drupal Security Team
David Rothstein of the Drupal Security Team
xjm of the Drupal Security Team
Wim Leers
Damien McKenna of the Drupal Security Team
Alex Bronstein of the Drupal Security Team
Conrad Lara
Peter Wolanin of the Drupal Security Team
Drew Webber of the Drupal Security Team
Benji Fisher of the Drupal Security Team
Juraj Nemec, provisional member of the Drupal Security Team
Jen Lampton, provisional member of the Drupal Security Team
Dave Long of the Drupal Security Team
Kim Pepper
Alex Pott of the Drupal Security Team
Neil Drumm of the Drupal Security Team

Read More