
CVE-2022-39261 – Twig may load a template outside a configured directory when using the filesystem loader
https://notcve.org/view.php?id=CVE-2022-39261
28 Sep 2022 — Twig is a template language for PHP. Versions 1.x prior to 1.44.7, 2.x prior to 2.15.3, and 3.x prior to 3.4.3 encounter an issue when the filesystem loader loads templates for which the name is a user input. It is possible to use the `source` or `include` statement to read arbitrary files from outside the templates' directory when using a namespace like `@somewhere/../some.file`. In such a case, validation is bypassed. • https://github.com/twigphp/Twig/commit/35f3035c5deb0041da7b84daf02dea074ddc7a0b • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') •

CVE-2022-23614 – Code injection in Twig
https://notcve.org/view.php?id=CVE-2022-23614
04 Feb 2022 — Twig is an open source template language for PHP. When in a sandbox mode, the `arrow` parameter of the `sort` filter must be a closure to avoid attackers being able to run arbitrary PHP functions. In affected versions this constraint was not properly enforced and could lead to code injection of arbitrary PHP code. Patched versions now disallow calling non Closure in the `sort` filter as is the case for some other filters. Users are advised to upgrade. • https://github.com/davwwwx/CVE-2022-23614 • CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') CWE-94: Improper Control of Generation of Code ('Code Injection') •

CVE-2019-9942 – Ubuntu Security Notice USN-5947-1
https://notcve.org/view.php?id=CVE-2019-9942
23 Mar 2019 — A sandbox information disclosure exists in Twig before 1.38.0 and 2.x before 2.7.0 because, under some circumstances, it is possible to call the __toString() method on an object even if not allowed by the security policy in place. Existe una divulgación de información del sandbox en Twig, en versiones anteriores a la 1.38.0 y versiones 2.x anteriores a la 2.7.0 ya que, en ciertas circunstancias, es posible llamar al método __toString() en un objeto incluso aunque la política de seguridad existente no lo per... • https://github.com/twigphp/Twig/commit/eac5422956e1dcca89a3669a03a3ff32f0502077 •

CVE-2018-13818
https://notcve.org/view.php?id=CVE-2018-13818
10 Jul 2018 — Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter. NOTE: the vendor points out that Twig itself is not a web application and states that it is the responsibility of web applications using Twig to properly wrap input to it ** EN DISPUTA ** Twig en versiones anteriores a la 2.4.4 permite Server-Side Template Injection (SSTI) mediante el parámetro de búsqueda search_key. NOTA: el fabricante señala que Twig no es una aplicación web y sostiene que es la responsabi... • https://github.com/twigphp/Twig/blob/2.x/CHANGELOG • CWE-94: Improper Control of Generation of Code ('Code Injection') •

CVE-2015-7809
https://notcve.org/view.php?id=CVE-2015-7809
06 Nov 2015 — The displayBlock function Template.php in Sensio Labs Twig before 1.20.0, when Sandbox mode is enabled, allows remote attackers to execute arbitrary code via the _self variable in a template. La función displayBlock en Template.php en Sensio Labs Twig en versiones anteriores a 1.20.0 cuando el modo Sandbox está habilitado, permite a atacantes remotos ejecutar código arbitrario a través de la variable _self en una plantilla. • http://openwall.com/lists/oss-security/2015/08/21/3 • CWE-264: Permissions, Privileges, and Access Controls •

CVE-2001-1537
https://notcve.org/view.php?id=CVE-2001-1537
31 Dec 2001 — The default "basic" security setting' in config.php for TWIG webmail 2.7.4 and earlier stores cleartext usernames and passwords in cookies, which could allow attackers to obtain authentication information and gain privileges. • http://archives.neohapsis.com/archives/bugtraq/2001-11/0245.html • CWE-312: Cleartext Storage of Sensitive Information •