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

CVE-2022-23614 Code injection in Twig

Twig의 코드 주입

설명

Twig is an open source template language for PHP. When in a sandbox mode, the `arrow` parameter of the `sort` filter must be a closure to avoid attackers being able to run arbitrary PHP functions. In affected versions this constraint was not properly enforced and could lead to code injection of arbitrary PHP code. Patched versions now disallow calling non Closure in the `sort` filter as is the case for some other filters. Users are advised to upgrade.

Twig는 PHP를위한 오픈 소스 템플릿 언어입니다. 샌드박스 모드에서, `sort` 필터의 `arrow` 파라미터는 공격자가 임의의 PHP 함수를 실행할 수 없도록 클로저여야 한다. 영향을 받는 버전에서는 이 제약이 제대로 적용되지 않았고 임의 PHP 코드의 코드 삽입으로 이어질 수 있습니다. 패치된 버전들은 이제 다른 필터들의 경우처럼 `sort` 필터에서 클로저가 아닌 호출을 허용하지 않는다. 사용자는 업그레이드하는 것이 좋습니다.

영향 받는 제품 제품 1개

  • twigphp

    Twig

    해결 버전 있음

    영향 받는 버전

    • 3.0.0 이상 3.3.8 미만
    • 2.0.0 이상 2.14.11 미만

    해결 버전

    • 3.3.8 이상
    • 2.14.11 이상

참고 자료 8건

‹ 목록

점검 지원 범위 문의

도입 문의