- What is CWE-1336?
- The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.
- What CVEs are caused by CWE-1336?
- 152 recorded CVEs are attributed to CWE-1336, including CVE-2024-23692, CVE-2024-4040, CVE-2026-33897. 2 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.
- How do you prevent CWE-1336?
- Choose a template engine that offers a sandbox or restricted mode, or at least limits the power of any available expressions, function calls, or commands.
- How is CWE-1336 detected?
- Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
- What are the consequences of CWE-1336?
- Exploiting CWE-1336 can lead to: Execute Unauthorized Code or Commands.
- Is CWE-1336 actively exploited?
- Yes. 2 CWE-1336 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 152 recorded CVEs.