DSA-5248: -1 php-twig -- security update

Published Oct 4, 2022
·
Updated

Marlon Starkloff discovered that twig, a template engine for PHP, did not correctly enforce sandboxing. This would allow a malicious user to execute arbitrary code.

Affected Software

2 affected components
debian/php-twig
debian/php-twig

Event History

Oct 4, 2022
Advisory Published
12:00 AM

Child vulnerabilities

Contains the following vulnerabilities.

Frequently Asked Questions

1

Who is exposed to this issue?

Deployments of the Debian php-twig package that use Twig sandboxing and allow malicious users to influence templates or sandboxed template behavior are exposed to arbitrary code execution.

2

What does an attacker need to exploit it?

The attacker needs to be able to act as a malicious user in a context where Twig sandboxing is relied upon. The issue is that the sandbox restrictions were not correctly enforced.

3

Are installations using Twig without sandboxing affected in the same way?

The available information specifically identifies incorrect enforcement of Twig sandboxing. It does not establish impact for deployments that do not use the sandbox feature.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203