{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.4.4"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "eddb97148ad779f27e670e1e3f19fb323aedafeb"
            }
          ],
          "repo": "https://github.com/twigphp/twig",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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",
  "id": "CVE-2018-13818",
  "modified": "2026-04-01T23:08:21.726315196Z",
  "published": "2018-07-10T14:29:00.480Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/twigphp/Twig/blob/2.x/CHANGELOG"
    },
    {
      "type": "FIX",
      "url": "https://github.com/twigphp/Twig/commit/eddb97148ad779f27e670e1e3f19fb323aedafeb"
    },
    {
      "type": "EVIDENCE",
      "url": "https://mobile.twitter.com/jameel_nabbo/status/1032593354704515072?s=20"
    },
    {
      "type": "EVIDENCE",
      "url": "https://www.exploit-db.com/exploits/44102/"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/twigphp/Twig/issues/2743"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}