Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-6j75-5wfj-gh66

Опубликовано: 09 сент. 2024
Источник: github
Github: Прошло ревью
CVSS4: 5.8
CVSS3: 8.5

Описание

Twig has a possible sandbox bypass

Description

Under some circumstances, the sandbox security checks are not run which allows user-contributed templates to bypass the sandbox restrictions.

The security issue happens when all these conditions are met:

  • The sandbox is disabled globally;
  • The sandbox is enabled via a sandboxed include() function which references a template name (like included.twig) and not a Template or TemplateWrapper instance;
  • The included template has been loaded before the include() call but in a non-sandbox context (possible as the sandbox has been globally disabled).

Resolution

The patch ensures that the sandbox security checks are always run at runtime.

Credits

We would like to thank Fabien Potencier for reporting and fixing the issue.

Пакеты

Наименование

twig/twig

composer
Затронутые версииВерсия исправления

>= 1.0.0, < 1.44.8

1.44.8

Наименование

twig/twig

composer
Затронутые версииВерсия исправления

>= 2.0.0, < 2.16.1

2.16.1

Наименование

twig/twig

composer
Затронутые версииВерсия исправления

>= 3.12.0, < 3.14.0

3.14.0

Наименование

twig/twig

composer
Затронутые версииВерсия исправления

>= 3.0.0, < 3.11.1

3.11.1

EPSS

Процентиль: 37%
0.00156
Низкий

5.8 Medium

CVSS4

8.5 High

CVSS3

Дефекты

CWE-693

Связанные уязвимости

CVSS3: 8.5
ubuntu
больше 1 года назад

Twig is a template language for PHP. Under some circumstances, the sandbox security checks are not run which allows user-contributed templates to bypass the sandbox restrictions. This vulnerability is fixed in 1.44.8, 2.16.1, and 3.14.0.

CVSS3: 8.5
nvd
больше 1 года назад

Twig is a template language for PHP. Under some circumstances, the sandbox security checks are not run which allows user-contributed templates to bypass the sandbox restrictions. This vulnerability is fixed in 1.44.8, 2.16.1, and 3.14.0.

CVSS3: 8.5
debian
больше 1 года назад

Twig is a template language for PHP. Under some circumstances, the san ...

CVSS3: 8.6
fstec
больше 1 года назад

Уязвимость функции include() компилирующего обработчика шаблонов Twig, позволяющая нарушителю обойти существующие ограничения безопасности

CVSS3: 8.6
redos
8 месяцев назад

Уязвимость php-twig2

EPSS

Процентиль: 37%
0.00156
Низкий

5.8 Medium

CVSS4

8.5 High

CVSS3

Дефекты

CWE-693