CVE-2022-25275 Drupal core Information Disclosure vulnerability

High 7.5 Published Updated

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.

PackageAffectedFixed in
drupal/core PackagistFrom 7.0.07.91
drupal/core PackagistFrom 7.0.07.91
drupal/core PackagistFrom 8.0.09.3.19, 9.4.3
drupal/core PackagistFrom 8.0.09.3.19
drupal/core PackagistFrom 8.0.09.3.19
drupal/core PackagistFrom 9.4.09.4.3
2 more packages
drupal/core PackagistFrom 9.4.09.4.3
drupal BitnamiFrom 7.0.07.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.

All Drupal Drupal vulnerabilities

Sources

Also known as BIT-drupal-2022-25275, DRUPAL-CORE-2022-012, GHSA-xh3v-6f9j-wxw3, UBUNTU-CVE-2022-25275.

Is CVE-2022-25275 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free