CVE-2022-25275
CVE-2022-25275 is a high-severity vulnerability in Drupal with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- EPSS exploit prediction: 1% (47th percentile)
- Actively exploited: Not listed in CISA KEV
- Affected product: Drupal
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2022-25275?
- 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.
- How severe is CVE-2022-25275?
- CVE-2022-25275 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2022-25275 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (47th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2022-25275?
- CVE-2022-25275 affects Drupal. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2022-25275?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2022-25275 published?
- CVE-2022-25275 was published on 2023-04-26 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:drupal:drupal:*:*:*:*:*:*:*:*
More vulnerabilities in Drupal
- CVE-2009-3352 — Critical (CVSS 10.0): Multiple unspecified vulnerabilities in the quota_by_role (Quota by role) module for Drupal have unknown impact and…
- CVE-2026-9082 — Critical (CVSS 9.8): Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') vulnerability in Drupal Drupal…
- CVE-2024-55638 — Critical (CVSS 9.8): Deserialization of Untrusted Data vulnerability in Drupal Core allows Object Injection.This issue affects Drupal Core:…
- CVE-2024-55637 — Critical (CVSS 9.8): Deserialization of Untrusted Data vulnerability in Drupal Core allows Object Injection.This issue affects Drupal Core:…
- CVE-2024-55636 — Critical (CVSS 9.8): Deserialization of Untrusted Data vulnerability in Drupal Core allows Object Injection.This issue affects Drupal Core:…
- CVE-2020-13675 — Critical (CVSS 9.8): Drupal's JSON:API and REST/File modules allow file uploads through their HTTP APIs. The modules do not correctly run…