CVE-2022-25275 in Drupal
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 mo...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Drupal | Drupal | ≥ 7.0, < 7.91 ≥ 8.0.0, < 9.3.19 ≥ 9.4.0, < 9.4.3 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-25275 |
|---|---|
| BreachSpider ID | BS-2023-GLOBAL-314711-H |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Published | 2023-04-26 |
| Last modified | 2026-06-17 |
| Source | NVD |
Analysis AI-written, not human-reviewed
The Image module in certain configurations does not properly verify access to image files outside the standard public directory, potentially allowing unauthorized access to non-public files when generating derivative images.
An attacker could exploit this vulnerability by requesting a derivative image of a file stored in a non-standard, non-public file system. This could lead to unauthorized disclosure of sensitive information contained in the image files.
Questions
What is CVE-2022-25275?
The Image module in certain configurations does not properly verify access to image files outside the standard public directory, potentially allowing unauthorized access to non-public files when generating derivative images.
What is the CVSS score for CVE-2022-25275?
CVE-2022-25275 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.8%.
Is CVE-2022-25275 actively exploited?
No confirmed active exploitation of CVE-2022-25275 as of 2026-09-25.
How do I remediate CVE-2022-25275?
Priority: HIGH. Advisory: https://www.drupal.org/sa-core-2022-012 PSIRT: [email protected]
What systems are affected by CVE-2022-25275?
CVE-2022-25275 affects Drupal Drupal.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Drupal","product":"Drupal","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.