Vulnerability DatabaseGHSA-9895-26wr-4fgv

GHSA-9895-26wr-4fgv
PHP vulnerability analysis and mitigation

Overview

A remote code execution (RCE) vulnerability was discovered in eZ Platform and eZ Publish Legacy's file upload handling mechanism. The vulnerability, identified as EZSA-2020-001, was disclosed on March 3, 2020, affecting multiple versions including ezsystems/ezpublish-kernel (v7.5.6, v6.13.6, v5.4.14) and ezsystems/ezpublish-legacy (v2019.03.4, v2017.12.7, v5.4.14). The vulnerability could potentially allow attackers with file upload permissions to execute malicious code remotely (EZ Platform).

Technical details

The vulnerability stems from improper handling of file uploads that could lead to remote code execution. While the vulnerability requires access to file upload functionality, it primarily affects systems not using the recommended vhost configuration. The issue is mitigated in systems using the recommended Nginx or Apache configurations, which restrict PHP file execution to specific files. However, the PHP built-in webserver remains vulnerable as it doesn't support these configuration restrictions (EZ Platform).

Impact

If exploited, the vulnerability could allow attackers to execute arbitrary code remotely on affected systems. The severity is rated as High, though the impact is limited to environments where attackers have file upload permissions and where recommended security configurations are not in place (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in versions ezsystems/ezpublish-kernel (v7.5.6.2, v6.13.6.2, v5.4.14.1) and ezsystems/ezpublish-legacy (v2019.03.4.2, v2017.12.7.2, v5.4.14.1). The fix implements a configurable blacklist feature for uploaded filenames, blocking potentially dangerous file extensions including php, php3, phar, phpt, pht, phtml, and pgif. Additionally, protection against path traversal attacks was implemented (EZ Platform).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management