Read the docs
TI-2024-38648 Aliases GHSA-9895-26wr-4fgv

EZsystems Remote code execution in file uploads

Priority LOW 38CWE-94Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
Code execution
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-94.

Summary

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.

Why it matters now

Fix Fixed ezsystems/ezpublish-legacy (Packagist): 2019.3.4.2, 2017.12.7.2, 5.4.14.1

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—ezsystems/ezpublish-legacy (Packagist)2019.3.0 to before 2019.3.4.22019.3.4.2Patch availableGHSA-9895-26wr-4fgv
—ezsystems/ezpublish-legacy (Packagist)2017.12.0 to before 2017.12.7.22017.12.7.2Patch availableGHSA-9895-26wr-4fgv
—ezsystems/ezpublish-legacy (Packagist)5.4.0 to before 5.4.14.15.4.14.1Patch availableGHSA-9895-26wr-4fgv
  • ezsystems/ezpublish-legacy (Packagist) Vendor— Affected 2019.3.0 to before 2019.3.4.2 Fixed in 2019.3.4.2 Patch available GHSA-9895-26wr-4fgv
  • ezsystems/ezpublish-legacy (Packagist) Vendor— Affected 2017.12.0 to before 2017.12.7.2 Fixed in 2017.12.7.2 Patch available GHSA-9895-26wr-4fgv
  • ezsystems/ezpublish-legacy (Packagist) Vendor— Affected 5.4.0 to before 5.4.14.1 Fixed in 5.4.14.1 Patch available GHSA-9895-26wr-4fgv

Remediation

  • Fix · GHSA-9895-26wr-4fgv ezsystems/ezpublish-legacy (Packagist) Fixed in 2019.3.4.2 Advisory →
  • Fix · GHSA-9895-26wr-4fgv ezsystems/ezpublish-legacy (Packagist) Fixed in 2017.12.7.2 Advisory →
  • Fix · GHSA-9895-26wr-4fgv ezsystems/ezpublish-legacy (Packagist) Fixed in 5.4.14.1 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-9895-26wr-4fgv

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences