Vulnerability advisory

CVE-2022-25275

Published Updated OSV record ↗

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

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/drupal/drupal ↗
497914920385b7016ac9c9367e0198530787adf2 to before 4613508bb0778e9daf1bb9a7ab9a1f9539b567cc4613508bb0778e9daf1bb9a7ab9a1f9539b567cc
35c2f3ca5c935f3d8bde15932a712677c9bbd50f to before 32680a4aef16035fd6c90014761dcad8de62812032680a4aef16035fd6c90014761dcad8de628120
970c1b5cfa946f683de326a3f252b5371a42186a to before bf401c8d5c5a88d442ac7e95a9eb059d123a771cbf401c8d5c5a88d442ac7e95a9eb059d123a771c
Also listed as affected (63)
  • 7.90
  • 9.3.18
  • 9.4.2
  • 9.3.17
  • 9.4.1
  • 9.4.0
  • 9.3.15
  • 9.3.13
  • 9.3.11
  • 9.3.10
  • 9.3.7
  • 7.89
  • 7.87
  • 9.3.4
  • 7.85
  • 9.3.2
  • 7.84
  • 9.3.0
  • 7.83
  • 9.3.0-rc1
  • 9.3.0-beta3
  • 9.3.0-beta2
  • 9.3.0-beta1
  • 9.3.0-alpha1
  • 7.81
  • 7.79
  • 7.77
  • 7.76
  • 7.71
  • 9.0.0-alpha2
  • 9.0.0-alpha1
  • 7.68
  • 7.64
  • 7.61
  • 7.56
  • 7.55
  • 7.54
  • 7.51
  • 7.50
  • 7.43
  • 8.1.0-beta1
  • 7.42
  • 8.0.0
  • 7.40
  • 7.37
  • 7.36
  • 7.33
  • 7.30
  • 7.28
  • 7.25
  • 7.23
  • 7.22
  • 7.17
  • 7.15
  • 7.14
  • 7.12
  • 7.10
  • 7.9
  • 7.8
  • 7.7
  • 7.6
  • 7.4
  • 7.0

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.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools