VYPR

Vendor CVEs

Twigphp

All CVEs

25 total · sorted by risk
  • CVE-2026-48807CriJul 14, 2026
    risk 0.59cvss 9.1epss 0.00

    Twig is a template language for PHP. Prior to 3.27.0, the sandbox __toString() checks do not fully cover Traversable values passed to join and replace filters or operands evaluated by the in and not in operators, allowing contained Stringable objects to be coerced to strings…

  • CVE-2026-48806CriJul 14, 2026
    risk 0.59cvss 9.1epss 0.00

    Twig is a template language for PHP. Prior to 3.27.0, ArrayExpression does not guard dynamic mapping keys that are coerced to strings, allowing PHP to invoke __toString() on a Stringable object used as a mapping key without calling SandboxExtension::ensureToStringAllowed(). This…

  • CVE-2026-48805CriJul 14, 2026
    risk 0.59cvss 9.1epss 0.00

    Twig is a template language for PHP. Prior to 3.27.0, deprecated internal wrappers in src/Resources/core.php do not forward the current sandbox state to CoreExtension::checkArrow(), arraySome(), and arrayEvery(), allowing legacy calls such as twig_array_some(),…

  • CVE-2026-46634CriJul 14, 2026
    risk 0.57cvss 9.8epss 0.00

    Twig is a template language for PHP. From 3.9.0 until 3.26.0, template_from_string() compiles an inner template under a synthesized __string_template__ name that can fall outside a SourcePolicyInterface sandbox decision, allowing a sandboxed template that can call…

  • CVE-2026-46633CriJul 14, 2026
    risk 0.57cvss 9.8epss 0.01

    Twig is a template language for PHP. Prior to 3.26.0, Compiler::string() does not escape single quotes when a template name from a {% use %} tag is placed inside a PHP single-quoted string literal, allowing a crafted template name to terminate the string and inject arbitrary PHP…

  • CVE-2022-23614HigFeb 4, 2022
    risk 0.51cvss 8.8epss 0.08

    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…

  • CVE-2026-24425HigMay 20, 2026
    risk 0.50cvss 8.8epss 0.01

    Twig versions 2.16.x and 3.9.0 through 3.25.x contain a sandbox bypass vulnerability when using a SourcePolicyInterface that allows attackers with template rendering capabilities to pass arbitrary PHP callables to sort, filter, map, and reduce filters. Attackers can exploit the…

  • CVE-2026-48808HigJul 14, 2026
    risk 0.49cvss 7.5epss 0.00

    Twig is a template language for PHP. Prior to 3.27.0, the column filter passes the active sandbox state as a boolean but does not forward the current Source to SandboxExtension::checkPropertyAllowed(), so SourcePolicyInterface decisions are lost and a template author can read…

  • CVE-2024-45411HigSep 9, 2024
    risk 0.48cvss 8.5epss 0.01

    Twig is a template language for PHP. Under some circumstances, the sandbox security checks are not run which allows user-contributed templates to bypass the sandbox restrictions. This vulnerability is fixed in 1.44.8, 2.16.1, and 3.14.0.

  • CVE-2026-49981HigJul 14, 2026
    risk 0.46cvss 8.2epss 0.00

    Twig is a template language for PHP. Prior to 3.27.0, the per-template filter, tag, and function allow-list verdict is computed when a Template instance is constructed and can remain cached after sandbox state changes between renders, allowing a later sandboxed render to reuse a…

  • CVE-2026-46638HigJul 14, 2026
    risk 0.46cvss 8.1epss 0.00

    Twig is a template language for PHP. Prior to 3.26.0, {% sandbox %}{% include %} can include a template that was previously loaded outside the sandbox without re-invoking checkSecurity(), allowing the cached template to use tags, filters, and functions that should have been…

  • CVE-2026-46627MedJul 14, 2026
    risk 0.42cvss 6.5epss 0.00

    Twig is a template language for PHP. Prior to 3.26.0, the Twig sandbox does not prevent a template from consuming CPU, memory, or wall-clock time, even under the strictest allow-list, allowing untrusted templates to cause resource exhaustion. This issue is addressed in version…

  • CVE-2022-39261HigSep 28, 2022
    risk 0.42cvss 7.5epss 0.02

    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…

  • CVE-2026-47732MedJul 14, 2026
    risk 0.35cvss 6.5epss 0.00

    Twig is a template language for PHP. Prior to 3.26.0, several Twig language constructs trigger PHP string coercion on a Stringable operand without consulting SecurityPolicy::checkMethodAllowed(), allowing a sandboxed template author to invoke __toString() on objects reachable in…

  • CVE-2026-46639MedJul 14, 2026
    risk 0.35cvss 6.5epss 0.00

    Twig is a template language for PHP. From 3.24.0 until 3.26.0, object-destructuring assignment compiles CoreExtension::getAttribute() with the sandbox argument hardcoded to false, disabling property and method policy checks and allowing an attacker with write access to a…

  • CVE-2026-46629MedJul 14, 2026
    risk 0.35cvss 6.5epss 0.00

    Twig is a template language for PHP. Prior to 3.26.0, twig/intl-extra memoises IntlDateFormatter and NumberFormatter instances in arrays keyed by template-controlled filter arguments such as locale, pattern, and attrs, allowing a template to allocate many ICU formatter objects…

  • CVE-2026-47730MedJul 14, 2026
    risk 0.28cvss 5.4epss 0.00

    Twig is a template language for PHP. From 3.0.0 until 3.26.0, Twig\Profiler\Dumper\HtmlDumper writes Profile::getTemplate() and Profile::getName() into HTML output without escaping, allowing attacker-controlled template or profile names to inject arbitrary HTML when a browser…

  • CVE-2026-46637MedJul 14, 2026
    risk 0.28cvss 5.4epss 0.00

    Twig is a template language for PHP. Prior to 3.26.0, several filters in twig/markdown-extra and twig/cssinliner-extra are registered with is_safe => [all], causing Twig to treat plain text or HTML output as safe in HTML, JavaScript, CSS, URL, and other contexts where the output…

  • CVE-2026-46628MedJul 14, 2026
    risk 0.28cvss 5.4epss 0.00

    Twig is a template language for PHP. Prior to 3.26.0, the deprecated spaceless filter is registered as safe for HTML, causing Twig autoescaping to emit attacker-controlled markup unescaped when spaceless is applied to untrusted input. This issue is fixed in version 3.26.0.

  • CVE-2026-46635MedJul 14, 2026
    risk 0.21cvss 4.3epss 0.00

    Twig is a template language for PHP. Prior to 3.26.0, the column filter passes object arrays to PHP array_column(), which reads public and magic properties without reaching CoreExtension::getAttribute() or SandboxExtension::checkPropertyAllowed(), allowing an untrusted template…

  • CVE-2025-24374MedJan 29, 2025
    risk 0.21cvss 4.3epss 0.00

    Twig is a template language for PHP. When using the ?? operator, output escaping was missing for the expression on the left side of the operator. This vulnerability is fixed in 3.19.0.

  • CVE-2019-9942LowMar 23, 2019
    risk 0.17cvss 3.7epss 0.01

    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.

  • CVE-2024-51755LowNov 6, 2024
    risk 0.07cvss 2.2epss 0.00

    Twig is a template language for PHP. In a sandbox, an 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…

  • CVE-2024-51754LowNov 6, 2024
    risk 0.07cvss 2.2epss 0.00

    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).…

  • CVE-2018-13818CriJul 10, 2018
    risk 0.01cvss 9.8epss 0.07

    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