Katalog CVE

CVE-2026-100668

ŚrednieCVSS 6.5
Opublikowano: Zaktualizowano: Przetłumaczono: NVD NIST

Streszczenie

Grav 2.0.0 do 2.0.24 zawiera lukę w sandboxie Twig, która pozwala na ominięcie zabezpieczeń. Filtr `array` jest dozwolony w sandboxie, ale nie sprawdza listy dozwolonych metod, co umożliwia odczytanie prywatnych danych kontenera DI, w tym pełnej konfiguracji z sekretami (hasła, klucze OAuth, SMTP, Redis, proxy).

Ocena ryzyka

Atakujący, który może tworzyć treści stron (np. autor z uprawnieniami), może ujawnić anonimowym odwiedzającym wrażliwe dane konfiguracyjne, w tym poświadczenia i sekrety, co prowadzi do pełnej kompromitacji systemu.

Rekomendacja

Niezwłocznie zaktualizuj Grav do wersji 2.0.25 lub nowszej, która zawiera poprawkę. Jeśli aktualizacja nie jest możliwa, ogranicz zaufanie do autorów treści i monitoruj logi pod kątem nietypowych żądań.

Inne podatności w Grav

Zobacz wszystkie
Oryginalny opis (angielski, źródło NVD)

Grav 2.0.0 through 2.0.24 contain a Twig content sandbox escape. The `array` filter (and its identical function form) is on the sandbox allowlist but is registered without the needs_is_sandboxed guard that print_r, vardump, json_encode, yaml_encode and string carry, and its implementation calls toArray() — or falls back to an (array) cast — without consulting the sandbox method allowlist. Because the `grav` Twig global is the raw Pimple-based dependency injection container, a user who can author Twig in page content can evaluate `grav|array` to read the container's private $values array, including the un-redacted Config service; a second array cast returns the entire configuration tree, disclosing plugin credentials, SMTP and OAuth secrets, Redis passwords, proxy URLs and the security.* subtree that the sandbox's redaction is meant to hide. Because the payload is stored in page content, the disclosed configuration is rendered to anonymous visitors. Grav 1.7 is not affected as it has no Twig content sandbox. Fixed in Grav 2.0.25.

Dane podatności pochodzą z NVD (NIST) · CISA KEV · EPSS