Логотип 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

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

5.8 Medium

CVSS4

8.5 High

CVSS3

Дефекты

CWE-693

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

CVSS3: 8.5
ubuntu
9 месяцев назад

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
9 месяцев назад

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
9 месяцев назад

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

CVSS3: 8.6
redos
около 1 месяца назад

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

CVSS3: 8.6
redos
около 1 месяца назад

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

EPSS

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

5.8 Medium

CVSS4

8.5 High

CVSS3

Дефекты

CWE-693