[From nobody Tue Jun  2 20:19:41 2026
Received: (at submit) by bugs.debian.org; 7 Nov 2024 05:48:04 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.6-bugs.debian.org_2005_01_02
 (2021-04-09) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-9.9 required=4.0 tests=BAYES_00, FOURLA,
 FROMDEVELOPER, 
 FVGT_m_MULTI_ODD,SPF_HELO_NONE,SPF_NONE,XMAILER_REPORTBUG
 autolearn=ham autolearn_force=no
 version=3.4.6-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 32; hammy, 149; neutral, 58; spammy,
 1. spammytokens:0.944-+--H*r:bugs.debian.org
 hammytokens:0.000-+--H*F:U*carnil, 0.000-+--XDebbugsCc,
 0.000-+--X-Debbugs-Cc, 0.000-+--H*M:valinor, 0.000-+--H*M:reportbug
Return-path: &lt;carnil@debian.org&gt;
Received: from elende.valinor.li ([2a01:4f9:6a:1c47::2]:56108)
 by buxtehude.debian.org with esmtp (Exim 4.94.2)
 (envelope-from &lt;carnil@debian.org&gt;) id 1t8vND-00EtKM-Qh
 for submit@bugs.debian.org; Thu, 07 Nov 2024 05:48:04 +0000
Content-Type: text/plain; charset=&quot;us-ascii&quot;
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Salvatore Bonaccorso &lt;carnil@debian.org&gt;
To: Debian Bug Tracking System &lt;submit@bugs.debian.org&gt;
Subject: php-twig: CVE-2024-51754 CVE-2024-51755
Message-ID: &lt;173095848291.1384970.11830427330568117449.reportbug@elende.valinor.li&gt;
X-Mailer: reportbug 13.0.1
Date: Thu, 07 Nov 2024 06:48:02 +0100
Delivered-To: submit@bugs.debian.org

Source: php-twig
Version: 3.14.0-4
Severity: important
Tags: security upstream
X-Debbugs-Cc: carnil@debian.org, Debian Security Team &lt;team@security.debian.org&gt;

Hi,

The following vulnerabilities were published for php-twig.

CVE-2024-51754[0]:
| Twig is a template language for PHP. In a sandbox, an attacker can
| call `__toString()` on an object even if the `__toString()` method
| is not allowed by the security policy when the object is part of an
| array or an argument list (arguments to a function or a filter for
| instance). This issue has been patched in versions 3.11.2 and
| 3.14.1. All users are advised to upgrade. There are no known
| workarounds for this issue.


CVE-2024-51755[1]:
| Twig is a template language for PHP. In a sandbox, and attacker can
| access attributes of Array-like objects as they were not checked by
| the security policy. They are now checked via the property policy
| and the `__isset()` method is now called after the security check.
| This is a BC break. This issue has been patched in versions 3.11.2
| and 3.14.1. All users are advised to upgrade. There are no known
| workarounds for this issue.


If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities &amp; Exposures) ids in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2024-51754
    https://www.cve.org/CVERecord?id=CVE-2024-51754
    https://github.com/twigphp/Twig/security/advisories/GHSA-6377-hfv9-hqf6
[1] https://security-tracker.debian.org/tracker/CVE-2024-51755
    https://www.cve.org/CVERecord?id=CVE-2024-51755
    https://github.com/twigphp/Twig/security/advisories/GHSA-jjxq-ff2g-95vh

Please adjust the affected versions in the BTS as needed.

Regards,
Salvatore
]