CVE-2022-25275
Drupal core Information Disclosure vulnerability
Also known as BIT-drupal-2022-25275, DRUPAL-CORE-2022-012, GHSA-xh3v-6f9j-wxw3
Mitigation
- Upgrade drupal/core to one of 9.3.19, 9.4.3, 7.91 (or later in the same release line).
Who should check
- Projects that depend on Packagist package drupal/core (>= 8.0.0, < 9.3.19; >= 9.4.0, < 9.4.3)
- Anyone running Drupal Core >= 9.4, < 9.4.3; >= 9.3, < 9.3.19; >= 7, < 7.91
Vulnerability facts
- Affected
- drupal/core >= 8.0.0, < 9.3.19; >= 9.4.0, < 9.4.3
- Fixed in
- 9.3.19, 9.4.3, 7.91
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.76% chance of exploitation in 30 days (percentile 51, 2026-11-26)
- 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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist drupal/core | >= 8.0.0, < 9.3.19; >= 9.4.0, < 9.4.3 | 9.3.19, 9.4.3, 7.91 | osv |
| Drupal Core | >= 9.4, < 9.4.3; >= 9.3, < 9.3.19; >= 7, < 7.91 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-25275. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-25275.md Affected: drupal/core >= 8.0.0, < 9.3.19; >= 9.4.0, < 9.4.3 Fixed in: 9.3.19, 9.4.3, 7.91 Steps: 1. Search this machine and project for drupal/core (Packagist), Drupal Core: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2022-25275 being exploited?
There is no confirmed exploitation: CVE-2022-25275 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.76% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-25275?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2022-25275?
drupal/core >= 8.0.0, < 9.3.19; >= 9.4.0, < 9.4.3.
Is there a fix for CVE-2022-25275?
Yes. Fixed in 9.3.19, 9.4.3, 7.91. Upgrade drupal/core to one of 9.3.19, 9.4.3, 7.91 (or later in the same release line).
How do I check if I'm affected by CVE-2022-25275?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.