CVE-2018-13818: symfony twig Code Injection
Vulnerability summary
CVE-2018-13818 is a critical (CVSS 9.8) Code Injection vulnerability in symfony twig. EPSS estimates a 6.90% chance of exploitation in the next 30 days, higher than 94% of scored vulnerabilities. 3 public exploits are recorded.
Timeline
- 10-07-2018PublishedVulnerability first disclosed.
- 05-08-2024Last modifiedVulnerability information updated.
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 metrics
3 scores · 2 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
6.90%
Chance of exploitation in the next 30 days
Percentile
94%
Versus all other CVEs
30-day change
0.00 pp
From 6.90% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
3 foundTwig < 2.4.4 - Server Side Template Injection
Maturity: poc
Twig
Maturity: poc
Exploit Reference (mobile.twitter.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Symfony1 product
- twig< 2.4.4
Ubuntu1 product
- twig< 2.4.6-1
2 vendors · 2 products
References
7 links- github.com/twigphp/Twig/commit/eddb97148ad779f27e670e1e3f19fb323aedafebX Refsource MISCPatchThird Party Advisory
- mobile.twitter.com/jameel_nabbo/status/1032593354704515072?s=20X Refsource MISCExploitThird Party Advisory