# CVE-2022-25275: Drupal core Information Disclosure vulnerability

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.76% (percentile 51, 2026-11-26)
- **Aliases:** BIT-drupal-2022-25275, DRUPAL-CORE-2022-012, GHSA-xh3v-6f9j-wxw3
- **Published:** 2022-07-20T15:34:05.000Z
- **Modified:** 2026-09-19T18:15:19.000Z

## 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

## 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

- Packagist `drupal/core`: affected \>= 8.0.0, \< 9.3.19; \>= 9.4.0, \< 9.4.3; fixed 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)

## Mitigation

- Upgrade drupal/core to one of 9.3.19, 9.4.3, 7.91 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://www.drupal.org/sa-core-2022-012>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-25275>
- patch: <https://github.com/drupal/core/commit/2d5f47fc8a166115f56c2330a81e83abe22445cf>
- patch: <https://github.com/drupal/core/commit/e2fbf63700819cb470a1be425798f1a3f2020116>
- other: <https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2022-25275.yaml>
- other: <https://github.com/drupal/core>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-25275>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/DRUPAL-CORE-2022-012> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xh3v-6f9j-wxw3> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-25275> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-25275>
