{"schemaVersion":3,"id":"CVE-2018-13818","aliases":["UBUNTU-CVE-2018-13818"],"status":"published","duplicateOf":null,"title":null,"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","dates":{"published":"2018-07-10T14:00:00.000Z","modified":"2024-08-05T09:14:47.156Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":7.5,"severity":"high","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true}]},"epss":{"probability":0.06902,"percentile":0.94029,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.06902},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.05855,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.06902,"percentile":0.94029}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.05855,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.06902,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.06902,"percentile":0.94029}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"44102","name":"Twig < 2.4.4 - Server Side Template Injection","source":"exploit-database","url":"https://www.exploit-db.com/exploits/44102","maturity":"poc","reliabilityScore":0.5,"verified":false,"type":null,"platforms":["php"],"requiresAuth":null,"exploitdb":{"verified":false,"type":"webapps","platform":"php","file":"exploits/php/webapps/44102.txt","codes":[]},"metasploit":null},{"id":"GITHUB_TWIGPHP_TWIG","name":"Twig","source":"github","url":"https://github.com/twigphp/Twig/issues/2743","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null},{"id":"REF_444CDA8501F22B24","name":"Exploit Reference (mobile.twitter.com)","source":"reference","url":"https://mobile.twitter.com/jameel_nabbo/status/1032593354704515072?s=20","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":3,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"ubuntu","product":"twig","name":"twig","label":"twig","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/twig","purlType":"deb","versions":[{"text":"< 2.4.6-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.6-1","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"twig","label":"Twig","category":"framework"}},"hubHref":null},{"vendor":"symfony","product":"twig","name":"twig","label":"twig","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.4.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.4","eol":{"isEol":null,"eolDate":null,"matchMethod":"name_exact","cycle":null,"product":{"name":"twig","label":"Twig","category":"framework"}},"hubHref":"/vendor/symfony/twig"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/twigphp/Twig/blob/2.x/CHANGELOG","label":"github.com/twigphp/Twig/blob/2.x/CHANGELOG","hostname":"github.com","tags":["X Refsource MISC","Release Notes","REPORT"]},{"url":"https://github.com/twigphp/Twig/commit/eddb97148ad779f27e670e1e3f19fb323aedafeb","label":"github.com/twigphp/Twig/commit/eddb97148ad779f27e670e1e3f19fb323aedafeb","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://www.exploit-db.com/exploits/44102/","label":"www.exploit-db.com/exploits/44102/","hostname":"www.exploit-db.com","tags":["Exploit","X Refsource EXPLOIT DB","Third Party Advisory","VDB Entry","REPORT"]},{"url":"https://github.com/twigphp/Twig/issues/2743","label":"github.com/twigphp/Twig/issues/2743","hostname":"github.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://mobile.twitter.com/jameel_nabbo/status/1032593354704515072?s=20","label":"mobile.twitter.com/jameel_nabbo/status/1032593354704515072?s=20","hostname":"mobile.twitter.com","tags":["X Refsource MISC","Exploit","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-13818","label":"ubuntu.com/security/CVE-2018-13818","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-13818","label":"www.cve.org/CVERecord?id=CVE-2018-13818","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-07-10T14:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T09:14:47.156Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T11:12:56.413Z","stale":false,"partial":false}}