# DRUPAL-CORE-2023-004: Drupal core provides a page that outputs the markup from \`phpinfo()\` to assist with diagnosing PHP configuration. If an…

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2023-03-15T16:26:24.000Z
- **Modified:** 2026-09-19T18:22:52.000Z

## Who should check

- Projects that depend on Packagist package drupal/core (\>= 8.0.0, \< 9.4.12; \>= 9.5.0, \< 9.5.5; \>= 10.0.0, \< 10.0.5)

## Description

Drupal core provides a page that outputs the markup from \`phpinfo()\` to assist with diagnosing PHP configuration.

If an attacker was able to achieve an XSS exploit against a privileged user, they may be able to use the phpinfo page to access sensitive information that could be used to escalate the attack.

This vulnerability is mitigated by the fact that a successful XSS exploit is required in order to exploit it.

## Affected and fixed versions

- Packagist `drupal/core`: affected \>= 8.0.0, \< 9.4.12; \>= 9.5.0, \< 9.5.5; \>= 10.0.0, \< 10.0.5; fixed 9.4.12, 9.5.5, 10.0.5 (osv)

## Mitigation

- Upgrade drupal/core to one of 9.4.12, 9.5.5, 10.0.5 (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 DRUPAL-CORE-2023-004. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/DRUPAL-CORE-2023-004.md
Affected: drupal/core >= 8.0.0, < 9.4.12; >= 9.5.0, < 9.5.5; >= 10.0.0, < 10.0.5
Fixed in: 9.4.12, 9.5.5, 10.0.5

Steps:
1. Search this machine and project for drupal/core (Packagist): 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 DRUPAL-CORE-2023-004 being exploited?

There is no confirmed exploitation: DRUPAL-CORE-2023-004 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is DRUPAL-CORE-2023-004?

It has no CVSS score yet. Unknown.

### Which versions are affected by DRUPAL-CORE-2023-004?

drupal/core \>= 8.0.0, \< 9.4.12; \>= 9.5.0, \< 9.5.5; \>= 10.0.0, \< 10.0.5.

### Is there a fix for DRUPAL-CORE-2023-004?

Yes. Fixed in 9.4.12, 9.5.5, 10.0.5. Upgrade drupal/core to one of 9.4.12, 9.5.5, 10.0.5 (or later in the same release line).

### How do I check if I'm affected by DRUPAL-CORE-2023-004?

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

- other: <https://www.drupal.org/sa-core-2023-004>

## Attribution

- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/DRUPAL-CORE-2023-004> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/DRUPAL-CORE-2023-004> · JSON: <https://flawdb.com/api/v1/entries/DRUPAL-CORE-2023-004>
