{"id":"UBUNTU-CVE-2018-13818","details":"** DISPUTED ** 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.","modified":"2025-07-16T07:37:58.047723Z","published":"2018-07-10T14:29:00Z","withdrawn":"2025-07-18T16:44:41Z","upstream":["CVE-2018-13818"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-13818"},{"type":"REPORT","url":"https://github.com/twigphp/Twig/blob/2.x/CHANGELOG"},{"type":"REPORT","url":"https://www.exploit-db.com/exploits/44102/"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-13818"}],"affected":[{"package":{"name":"twig","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/twig@2.4.6-1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.6-1"}]}],"versions":["1.24.0-2ubuntu1","2.4.4-2ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"php-twig","binary_version":"2.4.6-1"},{"binary_name":"php-twig-doc","binary_version":"2.4.6-1"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-13818.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}