Średnia

Ez Platform and Legacy are prone to an insecure interpretation of PHP/PHAR uploads

  • Ujawniono: 15.05.2024
  • Aktualizacja: 11.10.2026 10:22

The eZ Platform and Legacy are affected by an issue related to how uploaded PHP and PHAR files are handled, and consists of two parts: 1. Web server configuration, and 2. Disabling the PHAR stream wrapper.

1. WEB SERVER CONFIGURATION The sample web server configuration in our documentation can in some cases allow the execution of uploaded PHP/PHAR code. This can be abused to allow priviledge escalation and breach of content access controls, among other things. Please ensure that your web server will not execute files in directories were files may be uploaded, such as web/var/ and ezpublish_legacy/var/

As an example, here is how you can make Apache return HTTP 403 Forbidden for a number of executable file types in your eZ Platform var directory. Please adapt it to your needs. It is then possible to enable logging of HTTP 403 in a separate log file if you wish, you could do this to see if someone is trying to abuse the server.

RewriteEngine On

# disable .php(3) and other extensions in the var directory
RewriteRule ^var/.*(?i)\.(php3?|phar|phtml|sh|exe|pl|bin)$ - [F]

Here is the same configuration, but for the Nginx web server:

location ~ ^/var/.*(?i)\.(php3?|phar|phtml|sh|exe|pl|bin)$ {
  return 403;
}

2. DISABLE PHAR STREAM WRAPPER PHAR archives may be crafted such that its stream wrapper will execute them without being specifically asked to. With such files, any PHP file operation may cause deserialisation and execution. This may happen even if the file name suffix isn't ".phar". Any site that allows file uploads is at risk. Normally eZ Platform has no need for PHAR support. It's only used by Composer, and that is executed separately from eZ Platform. So one way to avoid this vulnerability is to disable the PHAR stream wrapper within eZ Platform. (If you know you need PHAR support, please consider other means to deal with this vulnerability. For example, enabling the wrapper only in those scripts/bundles that have to deal with such files.)

Disabling the stream wrapper should be done in:

eZ Platform (web/app.php) CLI scripts (bin/console) Legacy (index.php and CLI scripts)

To install, use Composer to update to one of the "Resolving versions" mentioned above, or apply these patches manually: https://github.com/ezsystems/ezplatform/commit/9a0c52dc4535e4b3ce379f80222dc53f705a2cfd https://github.com/ezsystems/ezpublish-legacy/commit/d21957bf202b091ab39dfb5be300f6c30be3933e

Czego dotyczy

Kliknij technologię, aby zobaczyć wszystkie dotyczące jej podatności.

PlatformaPaczkaPodatne wersjePoprawka w wersji
Paczka Composer ezsystems/ezpublish-legacy >= 2018.9.0, < 2018.9.1.3, >= 2018.6.0, < 2018.6.1.4, >= 2011.0.0, < 2017.12.4.3, >= 5.4.0, < 5.4.12.3, >= 5.3.0, < 5.3.12.6 2018.9.1.3, 2018.6.1.4, 2017.12.4.3, 5.4.12.3, 5.3.12.6

Odnośniki

Ocena CVSS -
Słabość (CWE)
CWE-94
Platforma
Composer
Paczka
ezsystems/ezpublish-legacy
Ujawniono
15.05.2024
Aktualizacja
11.10.2026 10:22

Źródła i licencje

OSV / GitHub Advisory Database - GHSA-pqjm-xcp8-wgmm - CC BY 4.0

Historia podatności: ezsystems/ezpublish-legacy

Wszystkie opisane podatności tej paczki (Paczka Composer), od najnowszej. Widać, czy to jednorazowa wpadka, czy paczka, której trzeba pilnować.

Wszystkie (11) w archiwum
Wszystkich wpisów
11
Pierwsza → ostatnia
09.2021 05.2026
Bez poprawki
1
Wykorzystywana w atakach
0

Rozkład istotności

  • Krytyczna 1
  • Wysoka 6
  • Średnia 4

Ujawnienia w latach

  1. 2021: 1
  2. 2022: 2
  3. 2023: 0
  4. 2024: 7
  5. 2025: 0
  6. 2026: 1
Istotność:
  1. Wysoka · 7.1 CVE-2026-38739 = 2019.03 brak poprawki
  2. Wysoka ghsa-9895-26wr-4fgv >= 2019.3.0, < 2019.3.4.2, >= 2017.12.0, < 2017.12.7.2, >= 5.4.0, < 5.4.14.1 2019.3.4.2, 2017.12.7.2, 5.4.14.1
  3. Ez Platform and Legacy are prone to an insecure interpretation of PHP/PHAR uploads ten wpis
    Średnia ghsa-pqjm-xcp8-wgmm >= 2018.9.0, < 2018.9.1.3, >= 2018.6.0, < 2018.6.1.4, >= 2011.0.0, < 2017.12.4.3, >= 5.4.0, < 5.4.12.3, >= 5.3.0, < 5.3.12.6 2018.9.1.3, 2018.6.1.4, 2017.12.4.3, 5.4.12.3, 5.3.12.6
  4. Wysoka ghsa-p9mp-vq4v-v5m5 >= 2018.9.0, < 2018.9.1.1, >= 2018.6.0, < 2018.6.1.2, >= 2011.0.0, < 2017.12.4.1, >= 5.4.0, < 5.4.12.1, >= 5.3.0, < 5.3.12.4 2018.9.1.1, 2018.6.1.2, 2017.12.4.1, 5.4.12.1, 5.3.12.4
  5. Wysoka ghsa-82rv-45pc-v28w >= 2011.0.0, < 2017.12.2.1, >= 5.4.0, < 5.4.11.3, >= 5.3.0, < 5.3.12.3 2017.12.2.1, 5.4.11.3, 5.3.12.3
  6. Wysoka ghsa-cc2j-92jq-wgjg >= 2011.0.0, < 2017.8.1.1, >= 5.4.0, < 5.4.10.1, >= 5.3.0, < 5.3.12.2 2017.8.1.1, 5.4.10.1, 5.3.12.2
  7. Krytyczna · 9.8 CVE-2020-10806 < 5.4.14.1, >= 2017, < 2017.12.7.2, >= 2019, < 2019.03.4.2 5.4.14.1, 2017.12.7.2, 2019.03.4.2
  8. Wysoka ghsa-jpwx-ffjq-wr4w >= 2018.06.0, < 2019.03.6.1, < 2017.12.7.4 2019.03.6.1, 2017.12.7.4

Dowiedz się, które podatności dotyczą Twojej aplikacji

Po podłączeniu integracji DockRay i włączeniu raportowania oprogramowania DockRay porównuje zgłoszone wersje komponentów ze znanymi podatnościami i powiadamia o potwierdzonych dopasowaniach. Zakres zależy od obsługiwanej technologii i dostępnych biuletynów.

Podłącz swoją aplikację
Newsletter DockRay

Bezpieczeństwo aplikacji w Twojej skrzynce

Najważniejsze podatności, konkretne zalecenia i praktyczne wskazówki dla Twoich aplikacji. Wybierz technologie i śledź to, co ma znaczenie dla Twojego projektu.

  • Codzienne zestawienie nowych podatności, także krytycznych.
  • Powiadomienia o ważnych aktualizacjach.
  • Praktyczne porady o bezpieczeństwie i monitoringu aplikacji.

Pozostaw puste, aby otrzymywać informacje o wszystkich technologiach.

Zapis jest bezpłatny. Wypiszesz się jednym kliknięciem w wiadomości.