CVE-2022-25275 Drupal core Information Disclosure vulnerability
Attackers can access non-public image files if insecure derivative settings are enabled, requiring a patch to enforce proper access checks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-25275?
CVE-2022-25275 is a high-severity missing authorization vulnerability in Drupal Drupal, published on 26 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Which versions are affected by CVE-2022-25275?
8 open source packages ship an affected version, including drupal/core and drupal. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
drupal/core Packagist | From 7.0.0 | 7.91 |
drupal/core Packagist | From 7.0.0 | 7.91 |
drupal/core Packagist | From 8.0.0 | 9.3.19, 9.4.3 |
drupal/core Packagist | From 8.0.0 | 9.3.19 |
drupal/core Packagist | From 8.0.0 | 9.3.19 |
drupal/core Packagist | From 9.4.0 | 9.4.3 |
2 more packages
drupal/core Packagist | From 9.4.0 | 9.4.3 |
drupal Bitnami | From 7.0.0 | 7.91.0, 9.3.19, 9.4.3 |
Products include Drupal Drupal.
How do I fix CVE-2022-25275?
Upgrade drupal/core to a fixed version for your release line: 7.91, 9.3.19 or 9.4.3.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2022-25275 being exploited?
There is no known exploitation of CVE-2022-25275 in the wild and no public exploit code.
Other vulnerabilities in Drupal Drupal
Sources
Also known as BIT-drupal-2022-25275, DRUPAL-CORE-2022-012, GHSA-xh3v-6f9j-wxw3, UBUNTU-CVE-2022-25275.