High

eZ Publish Remote code execution in file uploads

  • Disclosed: 15.05.2024
  • Updated: 11.10.2026 10:22

This Security Advisory is about a vulnerability in the way eZ Platform and eZ Publish Legacy handles file uploads, which can in the worst case lead to remote code execution (RCE), a very serious threat. An attacker would need access to uploading files to be able to exploit the vulnerability, so if you have strict controls on this and trust all who have this permission, you're not affected. On the basis of the tests we have made, we also believe the vulnerability cannot be exploited as long as our recommended vhost configuration is used. Here is the v2.5 recommendation for Nginx, as an example:

https://github.com/ezsystems/ezplatform/blob/2.5/doc/nginx/vhost.template#L31

This vhost template specifies that only the file app.php in the web root is executed, while vulnerable configurations allow execution of any php file. Apache is affected in the same way as Nginx, and is also protected by using the recommended configuration. The build-in webserver in PHP stays vulnerable, as it doesn't use this type of configuration (this webserver should only be used for development, never for production). We cannot be 100% certain our configuration is not vulnerable. We also do not know if all our users use the recommended configuration, so we send out this fix to be on the safe side.

The fix includes a blacklist feature for uploaded filenames, such as ".php". The file types on the blacklist cannot be uploaded. The blacklist is configurable. In eZ Platform you will find it as ezsettings.default.io.file_storage.file_type_blacklist in eZ/Bundle/EzPublishCoreBundle/Resources/config/default_settings.yml in vendors/ezsystems/ezpublish-kernel. In eZ Publish Legacy you will find it as FileExtensionBlackList in settings/file.ini. By default it blocks these file types: php, php3, phar, phpt, pht, phtml, pgif. The fix also inclues a new block against path traversal attacks, though this kind of attack was not reproducible in our tests.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Composer package ezsystems/ezpublish-kernel >= 7.5.0, < 7.5.6.2, >= 6.13.0, < 6.13.6.2, >= 5.4.0, < 5.4.14.1 7.5.6.2, 6.13.6.2, 5.4.14.1

References

CVSS score -
Weakness (CWE)
CWE-94
Platform
Composer
Package
ezsystems/ezpublish-kernel
Disclosed
15.05.2024
Updated
11.10.2026 10:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-3vwr-jj4f-h98x - CC BY 4.0

Vulnerability history: ezsystems/ezpublish-kernel

All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (14) in the archive
Total entries
14
First → latest
03.2021 05.2024
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • Critical 5
  • High 5
  • Medium 2
  • Low 2

Disclosures per year

  1. 2021: 2
  2. 2022: 6
  3. 2023: 3
  4. 2024: 3
  5. 2025: 0
  6. 2026: 0
Severity:
  1. High ghsa-64vj-933f-6pm3 >= 7.5.0, < 7.5.8, >= 6.13.0, < 6.13.6.4, >= 5.4.0, < 5.4.15 7.5.8, 6.13.6.4, 5.4.15
  2. eZ Publish Remote code execution in file uploads this entry
    High ghsa-3vwr-jj4f-h98x >= 7.5.0, < 7.5.6.2, >= 6.13.0, < 6.13.6.2, >= 5.4.0, < 5.4.14.1 7.5.6.2, 6.13.6.2, 5.4.14.1
  3. High · 7.2 CVE-2022-48365 >= 7.5.0, < 7.5.30 7.5.30
  4. Critical ghsa-99r3-xmmq-7q7g >= 7.5.0, < 7.5.30 7.5.30
  5. Critical ghsa-xfqg-p48g-hh94 >= 7.5.0, < 7.5.29 7.5.29
  6. Critical · 9.8 CVE-2020-10806 < 5.4.14.1, >= 6.0, < 6.13.6.2, >= 7.0, < 7.5.6.2 5.4.14.1, 6.13.6.2, 7.5.6.2
  7. Critical · 9.8 CVE-2022-48367 >= 7.5.0, < 7.5.28 7.5.28
  8. Critical · 9.8 CVE-2022-25337 >= 7.5.0, < 7.5.26 7.5.26
  9. High ghsa-44m4-9cjp-j587 >= 7.5.0, < 7.5.26 7.5.26
  10. High CVE-2021-46875 < 6.13.8.2, >= 7.0.0, < 7.5.15.2 6.13.8.2, 7.5.15.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.