# CVE-2026-38739: ezsystems/ezpublish-legacy has a SQL injection in dfscleanup

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

- **Severity:** HIGH
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **CWE:** CWE-89
- **Aliases:** GHSA-xg9x-h37w-h3r3
- **Published:** 2026-05-29T19:07:38.000Z
- **Modified:** 2026-09-10T03:50:47.968Z

## Who should check

- Projects that depend on Packagist package ezsystems/ezpublish-legacy (2019.03)

## Description

NB: All tags and branches in this repository are past their end of life, so the vulnerability will not be fixed. The advisory is posted on the request of the researcher, for the information of anyone who might still use this software.

\#\#\# Impact
There is a security vulnerability in eZ Publish Legacy, affecting the dfscleanup.php script and the \`\_getFileList\` function of the \`eZDFSFileHandlerMySQLiBackend\` class (kernel/private/classes/clusterfilehandlers/dfsbackends/mysqli.php). The vulnerability allows an attacker with local shell access and sufficient privileges to run dfscleanup.php to perform a union-based SQL injection against the eZ Publish MySQL database, potentially exposing sensitive data such as user credentials.

It is known to affect the branch 2019.03, and it may well affect other branches.

\#\#\# Credit
The issue was found and reported by security auditor Timothé Ridel from Advens:
https://www.advens.com/

\#\#\# Patches
None, the software is past its end of life.

\#\#\# Workarounds
None.

\#\#\# Resources
- Report by Advens: https://github.com/Goaterino/ezpublish-legacy-lab/blob/main/SQL%20injection%20and%20arbitrary%20file%20deletion%20in%20dfscleanup.md

## Affected and fixed versions

- Packagist `ezsystems/ezpublish-legacy`: affected 2019.03; fixed no fix listed yet (osv)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-38739. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-38739.md
Affected: ezsystems/ezpublish-legacy 2019.03
Fixed in: no fixed version listed yet

Steps:
1. Search this machine and project for ezsystems/ezpublish-legacy (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 CVE-2026-38739 being exploited?

There is no confirmed exploitation: CVE-2026-38739 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-38739?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-38739?

ezsystems/ezpublish-legacy 2019.03.

### Is there a fix for CVE-2026-38739?

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-38739?

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://github.com/ezsystems/ezpublish-legacy/security/advisories/GHSA-xg9x-h37w-h3r3>
- other: <https://github.com/ezsystems/ezpublish-legacy>

## 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>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-xg9x-h37w-h3r3> (license: <https://creativecommons.org/licenses/by/4.0/>)

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