Vulnerability advisory
CVE-2022-25275
Also known as BIT-drupal-2022-25275DRUPAL-CORE-2022-012GHSA-xh3v-6f9j-wxw3
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/drupal/drupal ↗ | |
| 497914920385b7016ac9c9367e0198530787adf2 to before 4613508bb0778e9daf1bb9a7ab9a1f9539b567cc | 4613508bb0778e9daf1bb9a7ab9a1f9539b567cc |
| 35c2f3ca5c935f3d8bde15932a712677c9bbd50f to before 32680a4aef16035fd6c90014761dcad8de628120 | 32680a4aef16035fd6c90014761dcad8de628120 |
| 970c1b5cfa946f683de326a3f252b5371a42186a to before bf401c8d5c5a88d442ac7e95a9eb059d123a771c | bf401c8d5c5a88d442ac7e95a9eb059d123a771c |
Also listed as affected (63)
| |
Description
In some situations, the Image module does not correctly check access to image files not stored in the standard public files directory when generating derivative images using the image styles system. Access to a non-public file is checked only if it is stored in the "private" file system. However, some contributed modules provide additional file systems, or schemes, which may lead to this vulnerability. This vulnerability is mitigated by the fact that it only applies when the site sets (Drupal 9) $config['image.settings']['allow_insecure_derivatives'] or (Drupal 7) $conf['image_allow_insecure_derivatives'] to TRUE. The recommended and default setting is FALSE, and Drupal core does not provide a way to change that in the admin UI. Some sites may require configuration changes following this security release. Review the release notes for your Drupal version if you have issues accessing files or image styles after updating.