{"id":"CVE-2022-25275","published":"2023-04-26T00:00:00Z","modified":"2025-02-03T18:45:50Z","title":"In some situations, the Image module does not correctly check access to image files not stored in the standard public…","vendor":"Drupal","product":"Core","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00758,"percentile":0.51474,"provenance":"source"},"cwes":[],"references":[{"url":"https://www.drupal.org/sa-core-2022-012","tags":[]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":10.29},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"drupal","affectedVersions":[{"vendor":"Drupal","product":"Core","versions":[">= 9.4, < 9.4.3",">= 9.3, < 9.3.19",">= 7, < 7.91"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-02-03T18:45:46.129331Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"drupal/core","vulnerableRanges":[">=7.0.0, <7.91",">=8.0.0, <9.3.19",">=9.4.0, <9.4.3"],"patched":["7.91","9.3.19","9.4.3"],"from":["GHSA-xh3v-6f9j-wxw3","DRUPAL-CORE-2022-012"],"provenance":"source"}],"summary":{"text":"The Image module in Drupal Core fails to correctly check access to non-public image files when generating derivative images through the image styles system, which matters mainly where contributed modules provide file schemes beyond the standard \"private\" file system. An attacker with network access and no authentication or user interaction could reach such files, but only on sites that have enabled the allow_insecure_derivatives setting, which is disabled by default and not changeable through the admin UI.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:27:01Z"},"euvd":{"id":"EUVD-2022-6645","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-25271","published":"2022-02-16","fixed":"9.3.6","kev":false,"link":{"from":"CVE-2022-25271","to":"CVE-2022-25275","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:drupal/core","fromFixed":"7.88","toFixed":"7.91","daysApart":434}]}},{"cve":"CVE-2022-29248","published":"2022-05-25","fixed":"9.3.14","kev":false},{"cve":"CVE-2022-31042","published":"2022-06-09","fixed":"9.3.16","kev":false},{"cve":"CVE-2022-31043","published":"2022-06-09","fixed":"9.3.16","kev":false},{"cve":"CVE-2022-25275","published":"2023-04-26","fixed":"9.4.3","kev":false},{"cve":"CVE-2022-25276","published":"2023-04-26","fixed":"9.4.3","kev":false},{"cve":"CVE-2022-25277","published":"2023-04-26","fixed":"9.4.3","kev":false},{"cve":"CVE-2022-25278","published":"2023-04-26","fixed":"9.4.3","kev":false},{"cve":"CVE-2023-31250","published":"2023-04-26","fixed":"10.0.8","kev":false,"link":{"from":"CVE-2022-25275","to":"CVE-2023-31250","relation":"successor","confidence":"medium","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:drupal/core","fromFixed":"7.91","toFixed":"7.96","daysApart":0},{"kind":"similar","provenance":"machine","score":0.38,"basis":"same product + description similarity"}]}}],"package":"Packagist:drupal/core"}}