Critical severity · published Jul 10, 2018
CVE-2018-13818
Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter
9.8
CVSS
6.9%
EPSS
No
On KEV
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 vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)6.9% · higher than 94% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
TW
Twig · Symfony
before 2.4.4 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-13818
CVE.org
https://www.cve.org/CVERecord?id=CVE-2018-13818
Release Notes
https://github.com/twigphp/Twig/blob/2.x/CHANGELOG
Patch
https://github.com/twigphp/Twig/commit/eddb97148ad779f27e670e1e3f19fb323aedafeb
Exploit
https://github.com/twigphp/Twig/issues/2743
Exploit
https://mobile.twitter.com/jameel_nabbo/status/1032593354704515072?s=20
Exploit
https://www.exploit-db.com/exploits/44102/
More from Twig
9.9
CVE-2026-24425
Twig 2.16.x & 3.9.0-3.25.x Sandbox Bypass via SourcePolicyInterface
9.8
CVE-2026-46634
Twig: `template_from_string()` escapes a SourcePolicy-driven sandbox via synthesized template name
9.8
CVE-2026-46633
Twig: PHP code injection via `{% use %}` template name
9.8
CVE-2022-23614
Twig is an open source template language for PHP
9.1
CVE-2026-48807
Twig: Sandbox `__toString()` policy bypass via `Traversable` in `join` and `replace` filters
