Live threats

All CVEs / Drupal

CVE-2022-25275Drupal

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
0.7%
probability of exploitation in 30 days · percentile 53
Auth required
No
Published
Apr 26, 2023
Updated
Jun 17, 2026
Category
Web application · Cross-platform
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Drupal.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist drupal/core ≥ 8.0.0 < 9.3.19 9.3.19 composer require "drupal/core:^9.3.19"
Packagist drupal/core ≥ 9.4.0 < 9.4.3 9.4.3 composer require "drupal/core:^9.4.3"
Packagist drupal/core ≥ 7.0.0 < 7.91 7.91 composer require "drupal/core:^7.91"
Packagist drupal/core ≥ 8.0.0 < 9.3.19 9.3.19 composer require "drupal/core:^9.3.19"
Packagist drupal/core ≥ 9.4.0 < 9.4.3 9.4.3 composer require "drupal/core:^9.4.3"

Per OSV / GitHub Advisories (DRUPAL-CORE-2022-012, GHSA-xh3v-6f9j-wxw3). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
drupaldrupal≥ 7.0 < 7.91
drupaldrupal≥ 8.0.0 < 9.3.19
drupaldrupal≥ 9.4.0 < 9.4.3

Official sources

References

Links published by the sources. Open them with care.