kcve.ai취약점 정보 · 내 자산 확인

CVE-2026-133763 Sandbox `__toString()` policy bypass via the `is true` test

설명

The sandbox checks that a template may call toString() on an object before converting it to a string. For an object, the is true test evaluates to the object itself, and that result wasn't checked. A sandboxed template could therefore print an object through a denied toString() method: {{ obj is true }} The same applies when the result is concatenated or passed to a filter. No tag needs to be allowed. A test in a boolean context, like {% if obj is true %}, isn't affected, since it doesn't convert the object to a string. The sandbox now checks the result of tests like the result of filters and functions.

영향 받는 제품 제품 1개

  • Twig

    twig/twig

    해결 버전 있음

    영향 받는 버전

    • 3.21.0 이상 3.31.1 미만

    해결 버전

    • 3.31.1 이상

참고 자료 3건

‹ 목록

점검 지원 범위 문의

도입 문의