Content object state fetch functions open to SQL injectionGHSA-jpwx-ffjq-wr4w
Fix: ezsystems/ezpublish-legacy@f8e3a97GHSA-jpwx-ffjq-wr4w is a security vulnerability in ezsystems/ezpublish-legacy. A fix is available for ezsystems/ezpublish-legacy — see the affected versions and patch details below.
Real-World Exposure
ezsystems/ezpublish-legacy🐘ezsystems/ezpublish-legacyReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
Impact
This Security Update is about a vulnerability in eZ Publish Legacy. The content object state code could be vulnerable to SQL injection. There is no known exploit, but one might be possible. If you use Legacy in any way, we strongly recommend that you install this update as soon as possible.
Patches
The fix is distributed via Composer, see "Patched versions".
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | ezsystems/ezpublish-legacy | ≥ 2018.06.0&&< 2019.03.6.1 | 2019.03.6.1composer require ezsystems/ezpublish-legacy:^2019.03.6.1 |
| 🐘Packagist | ezsystems/ezpublish-legacy | all versions | 2017.12.7.4composer require ezsystems/ezpublish-legacy:^2017.12.7.4 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for ezsystems/ezpublish-legacy, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update ezsystems/ezpublish-legacy to 2019.03.6.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-jpwx-ffjq-wr4w is resolved across your whole dependency graph.
Workarounds
Until you can upgrade, make sure every query built from user input uses parameterised statements or a prepared-statement API rather than string concatenation, and reduce the database account's privileges so an injected query cannot read or alter data beyond what the feature needs.
Frequently Asked Questions
Is GHSA-jpwx-ffjq-wr4w in your dependencies?
Find it across Packagist, including transitive dependencies.