CVE-2022-25275: High severity drupal vulnerability
Drupal core - Moderately critical - Information Disclosure - SA-CORE-2022-012
Other sources
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']['allowinsecurederivatives'] or (Drupal 7) $conf['imageallowinsecurederivatives'] 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.
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']['allowinsecurederivatives'] or (Drupal 7) $conf['imageallowinsecurederivatives'] 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.
Affected Software
Event History
Frequently Asked Questions
What is the vulnerability ID for this Drupal vulnerability?
The vulnerability ID for this Drupal vulnerability is CVE-2022-25275.
What is the severity level of CVE-2022-25275?
The severity level of CVE-2022-25275 is moderately critical.
What is the type of vulnerability associated with CVE-2022-25275?
CVE-2022-25275 is an information disclosure vulnerability.
Which software versions are affected by CVE-2022-25275?
Versions 7.0.0 to 7.91.0, 8.9.0 to 8.10.0, 9.0.0 to 9.1.0, 9.1.0 to 9.2.0, 9.2.0 to 9.3.0, and 9.3.0 to 9.3.19 of Drupal core are affected by CVE-2022-25275.
How can I fix CVE-2022-25275?
To fix CVE-2022-25275, it is recommended to update to the latest available version of Drupal core.