CVE-2018-13818
Symfony Twig vulnerability
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
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Twig. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Symfony Twig runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/twigphp/Twig/commit/eddb97148ad779f27e670e1e3f19fb323aedafeb · Patch
- github.com/twigphp/Twig/issues/2743 · Exploit
- mobile.twitter.com/jameel_nabbo/status/1032593354704515072?s=20 · Exploit
- www.exploit-db.com/exploits/44102/ · Exploit
- github.com/twigphp/Twig/blob/2.x/CHANGELOG
- nvd.nist.gov/vuln/detail/CVE-2018-13818
- cve.org/CVERecord?id=CVE-2018-13818
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.