USN-7549-1: Twig vulnerability

Publication date

2 June 2025

Overview

Twig could be made to expose sensitive information if it opened a specially crafted file.


Packages

  • php-twig - Flexible, fast, and secure template engine for PHP

Details

It was discovered that Twig did not correctly handle securing
user input. An attacker could possibly use this issue to cause
Twig to expose sensitive information if it opened a specially
crafted file. (CVE-2024-45411)

It was discovered that Twig did not correctly handle securing
user input. An attacker could possibly use this issue to cause
Twig to expose sensitive information if it opened a specially
crafted file. (CVE-2024-45411)

Update instructions

In general, a standard system update will make all the necessary changes.

Learn more about how to get the fixes.

The problem can be corrected by updating your system to the following package versions:

Ubuntu Release Package Version
24.10 oracular php-twig –  3.8.0-3ubuntu1
24.04 noble php-twig –  3.8.0-2ubuntu1

Reduce your security exposure

Ubuntu Pro provides ten-year security coverage to 25,000+ packages in Main and Universe repositories, and it is free for up to five machines.


Have additional questions?

Talk to a member of the team ›