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

CVE-2026-46636 Twig: Sandbox method allowlist bypass via `Markup` subclass

설명

Twig is a template language for PHP. From version 1.0.0 to before version 3.27.0, SecurityPolicy::checkMethodAllowed() unconditionally whitelists all method calls on instances of Twig\Markup. Twig\Markup is not final, so subclasses inherit the bypass. An application that passes an object of a Markup-derived class into a sandboxed template (typically to mark a chunk of HTML as safe) inadvertently exposes every public method of that subclass to template authors, regardless of the configured allowedMethods list. This issue has been patched in version 3.27.0.

영향 받는 제품 제품 1개

  • twigphp

    Twig

    해결 버전 있음

    영향 받는 버전

    • 1.0.0 이상 3.27.0 미만

    해결 버전

    • 3.27.0 이상

참고 자료 5건

‹ 목록

점검 지원 범위 문의

도입 문의