Advisory Published

USN-7456-1: Twig vulnerabilities

First published: Thu Apr 24 2025(Updated: )

Fabien Potencier discovered that Twig did not run sandbox security checks in some circumstances. An attacker could possibly use this issue to cause a denial of service or execute arbitrary commands. This issue only affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2024-45411) Jamie Schouten discovered that Twig could bypass the security policy for an object call. An attacker could possibly use this issue to obtain sensitive information. (CVE-2024-51754)

Affected SoftwareAffected VersionHow to fix
All of
ubuntu/php-twig<3.8.0-2ubuntu0.1~esm1
3.8.0-2ubuntu0.1~esm1
Ubuntu=24.04
All of
ubuntu/php-twig<3.3.8-2ubuntu4+esm2
3.3.8-2ubuntu4+esm2
Ubuntu=22.04
All of
ubuntu/php-twig<2.12.5-1ubuntu0.1~esm2
2.12.5-1ubuntu0.1~esm2
Ubuntu=20.04

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Child vulnerabilities

(Contains the following vulnerabilities)

Frequently Asked Questions

  • What is the severity of USN-7456-1?

    The severity of USN-7456-1 is considered critical due to the potential for denial of service or execution of arbitrary commands.

  • How do I fix USN-7456-1?

    To fix USN-7456-1, upgrade the php-twig package to the recommended versions 3.8.0-2ubuntu0.1~esm1 for Ubuntu 24.04, 3.3.8-2ubuntu4+esm2 for Ubuntu 22.04, or 2.12.5-1ubuntu0.1~esm2 for Ubuntu 20.04.

  • Which versions of Ubuntu are affected by USN-7456-1?

    USN-7456-1 affects Ubuntu 22.04 LTS and Ubuntu 24.04 LTS.

  • Who discovered the vulnerability leading to USN-7456-1?

    The vulnerability leading to USN-7456-1 was discovered by Fabien Potencier.

  • What could an attacker potentially achieve by exploiting USN-7456-1?

    An attacker could potentially cause a denial of service or execute arbitrary commands by exploiting USN-7456-1.

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.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203