Security mailing lists by PureSourceCode

CVE-2022-25275

HIGH 7.5CVSS 3.1

Drupal core Information Disclosure vulnerability

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.

Published
26 Apr 2023
Last modified
19 Sep 2026
Assigned by
mlhess@drupal.org
NVD status
Modified
Also known as
BIT-drupal-2022-25275DRUPAL-CORE-2022-012GHSA-xh3v-6f9j-wxw3
Sources
NVDJSONOSV DRUPAL-CORE-2022-012JSONOSV GHSA-xh3v-6f9j-wxw3JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD drupal drupal
cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*
>= 7.0, < 7.91 7.91
NVD drupal drupal
cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*
>= 8.0.0, < 9.3.19 9.3.19
NVD drupal drupal
cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*
>= 9.4.0, < 9.4.3 9.4.3
OSV Packagist drupal/core >= 8.0.0, < 9.3.19; >= 9.4.0, < 9.4.3 9.3.19, 9.4.3
OSV Packagist drupal/core >= 7.0.0, < 7.91 7.91
OSV Packagist drupal/core >= 8.0.0, < 9.3.19 9.3.19
OSV Packagist drupal/core >= 9.4.0, < 9.4.3 9.4.3

References

History

  • 25 Nov 2026 20:36 UTC · NVD: first stored (published 26 Apr 2023)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 6 Aug 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 20 Jul 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.