CVE-2018-13818 json
Twig before 2.4.4 allows Server-Side Template Injection (SSTI) via the search search_key parameter.
published 2018-07-10 8 y ago modified 2026-06-17 4 mo ago also EUVD-2018-5754
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.9%
- EPSS 6.9% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
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
Patch / fix
Exploit prediction
6.90% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- exploit-db.com https://www.exploit-db.com/exploits/44102/ referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/twigphp/Twig/issues/2743 referenced PoC, tagged "exploit" by a source, unverified
- mobile.twitter.com https://mobile.twitter.com/jameel_nabbo/status/1032593354704515072?s=20 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/twigphp/Twig/commit/eddb97148ad779f27e670e1e3f19fb323aedafeb
patch, third-party-advisory
-
exploit-db.com
/exploits/44102/
exploit, third-party-advisory, vdb-entry
-
github.com
/twigphp/Twig/issues/2743
exploit, third-party-advisory
-
mobile.twitter.com
/jameel_nabbo/status/1032593354704515072?s=20
exploit, third-party-advisory
-
github.com
/twigphp/Twig/blob/2.x/CHANGELOG
release-notes
Sources
- CVE List CVE-2018-13818
- NVD CVE-2018-13818
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.