← Vulnerability feed

Vulnerability record · CVE-2018-13818 · published 10 July 2018

CVE-2018-13818: Symfony twig code injection vulnerability

Symfony · Twig

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

9.8 CVSS 3.0 Critical EPSS 6.9% · top 6.1% CWE-94 · Code injection
9.8CVSS 3.0 base score, v2 7.5
6.9%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
10References, 6 tagged exploit
17 Jun 2026Last modified by NVD

Description

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

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2018-13818 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2022-23614Symfony twig injection vulnerabilityTwig 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 attac…EPSS 8.2%8.7CVE-2026-46640Symfony twig code injection vulnerabilityTwig 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…EPSS 0.64%8.7CVE-2026-46633Symfony twig code injection vulnerabilityTwig 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 p…EPSS 0.69%8.7CVE-2026-24425Symfony twig vulnerabilityTwig 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 te…EPSS 0.76%8.6CVE-2024-45411Symfony twig vulnerabilityTwig is a template language for PHP. Under some circumstances, the sandbox security checks are not run which allows user-contributed templates to byp…EPSS 0.85%7.7CVE-2026-46634Symfony twig vulnerabilityTwig 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…EPSS 0.62%7.5CVE-2022-39261Symfony twig path traversal vulnerabilityTwig 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…EPSS 3.2%7.5CVE-2001-1537Symfony twig cleartext storage of sensitive data vulnerabilityThe default "basic" security setting' in config.php for TWIG webmail 2.7.4 and earlier stores cleartext usernames and passwords in cookies, which cou…EPSS 1.1%

Source: NIST National Vulnerability Database (record CVE-2018-13818), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.