Średnia

Twig: Sandbox property allowlist bypass via the `column` filter under `SourcePolicyInterface`

  • Ujawniono: 30.06.2026
  • Aktualizacja: 11.10.2026 10:22

Description

This is a residual bypass of CVE-2026-46635 / GHSA-vcc8-phrv-43wj that only affects sandboxing enabled through SourcePolicyInterface (and not the regular global sandbox mode).

CoreExtension::column() receives the active sandbox state via the needs_is_sandboxed channel as a boolean $isSandboxed, but then routes the per-element property reads through SandboxExtension::checkPropertyAllowed() without forwarding the current Source. SandboxExtension::checkPropertyAllowed() re-evaluates isSandboxed($source) internally; with $source = null the SourcePolicyInterface-driven decision is lost, the method short-circuits to "not sandboxed", and the property allowlist is never consulted.

A template author whose sandbox is gated by a SourcePolicyInterface and who has column on their allowedFilters list can therefore read any public or magic property of any object reachable in the render context, regardless of SecurityPolicy::$allowedProperties. Direct attribute access to the same property is blocked, and the same payload is also blocked under global sandbox mode, which makes this a clear policy enforcement gap rather than a configuration issue.

Resolution

CoreExtension::column() no longer goes through the SandboxExtension wrapper for the property check. It calls the security policy directly: the per-source decision is already captured by the $isSandboxed boolean computed at the call site, so the property allowlist is enforced consistently for both global and source-policy sandboxing.

Credits

Twig would like to thank Vincent55 Yang for reporting the issue and Fabien Potencier for providing the fix.

Czego dotyczy

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

PlatformaPaczkaPodatne wersjePoprawka w wersji
Paczka Composer twig/twig < 3.27.0 3.27.0

Odnośniki

Ocena CVSS -
Słabość (CWE)
CWE-693, CWE-863
Platforma
Composer
Paczka
twig/twig
Ujawniono
30.06.2026
Aktualizacja
11.10.2026 10:22

Źródła i licencje

OSV / GitHub Advisory Database - GHSA-h8vq-8gpg-mhcg - CC BY 4.0

Historia podatności: twig/twig

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

Wszystkie (24) w archiwum
Wszystkich wpisów
24
Pierwsza → ostatnia
02.2022 07.2026
Bez poprawki
0
Wykorzystywana w atakach
0

Rozkład istotności

  • Krytyczna 1
  • Wysoka 8
  • Średnia 8
  • Niska 7

Ujawnienia w latach

  1. 2022: 4
  2. 2023: 0
  3. 2024: 4
  4. 2025: 1
  5. 2026: 15
Istotność:
  1. Twig: Sandbox property allowlist bypass via the `column` filter under `SourcePolicyInterface` ten wpis
    Średnia CVE-2026-48808 < 3.27.0 3.27.0
  2. Wysoka · 8.8 CVE-2026-24425 >= 2.16.0, <= 2.16.1, >= 3.9.0, < 3.26.0 3.26.0
  3. Wysoka CVE-2026-46639 >= 3.24.0, < 3.26.0 3.26.0
  4. Krytyczna CVE-2026-46633 < 3.26.0 3.26.0
  5. Wysoka · 7.5 CVE-2022-39261 >= 1.0.0, < 1.44.7, >= 2.0.0, < 2.15.3, >= 3.0.0, < 3.4.3 1.44.7, 2.15.3, 3.4.3
  6. Wysoka · 8.1 CVE-2015-7809 < 1.20.0 1.20.0
  7. Wysoka · 8.8 CVE-2022-23614 >= 2.0.0, < 2.14.11, >= 3.0.0, < 3.3.8 2.14.11, 3.3.8

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.