Symfony Twig

25 CVEs affecting Symfony Twig. Latest disclosed: 2026-07-14. Critical: 6, High: 9.

Top CVEs affecting Symfony Twig
CVESeverityScorePublishedSummary
CVE-2026-46634Critical9.82026-07-14Twig 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__<hash> n…
CVE-2026-46633Critical9.82026-07-14Twig 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 insi…
CVE-2018-13818Critical9.82018-07-10Twig 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 a…
CVE-2026-48807Critical9.12026-07-14Twig 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…
CVE-2026-48806Critical9.12026-07-14Twig 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 _…
CVE-2026-48805Critical9.12026-07-14Twig 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 CoreEx…
CVE-2026-46640High8.82026-07-14Twig is a template language for PHP. From 3.15.0 until 3.26.0, _self.(<string>) and import-alias dynamic attribute syntax can concatenate an attacker-controlle…
CVE-2026-24425High8.82026-05-20Twig 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 ren…
CVE-2022-23614High8.82022-02-04Twig 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…
CVE-2024-45411High8.52024-09-09Twig is a template language for PHP. Under some circumstances, the sandbox security checks are not run which allows user-contributed templates to bypass the sa…
CVE-2026-49981High8.22026-07-14Twig 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 con…
CVE-2026-46638High8.12026-07-14Twig 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…
CVE-2026-48808High7.52026-07-14Twig 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…
CVE-2022-39261High7.52022-09-28Twig 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 lo…
CVE-2001-1537High7.52001-12-31The 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 a…
CVE-2026-47732Medium6.52026-07-14Twig 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 S…
CVE-2026-46639Medium6.52026-07-14Twig is a template language for PHP. From 3.24.0 until 3.26.0, object-destructuring assignment compiles CoreExtension::getAttribute() with the sandbox argument…
CVE-2026-46629Medium6.52026-07-14Twig is a template language for PHP. Prior to 3.26.0, twig/intl-extra memoises IntlDateFormatter and NumberFormatter instances in arrays keyed by template-cont…
CVE-2026-46627Medium6.52026-07-14Twig 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 t…
CVE-2026-47730Medium5.42026-07-14Twig 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 ou…